1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

math/openfst-vosk: New port: Library for working with weighted finite-state transducers

This is a fork of math/openfst to support audio/vosk-api.
This commit is contained in:
Yuri Victorovich 2023-12-22 20:15:12 -08:00
parent 2953e4a9de
commit 4df77d75c2
5 changed files with 254 additions and 0 deletions

View File

@ -661,6 +661,7 @@
SUBDIR += onednn252
SUBDIR += openblas
SUBDIR += openfst
SUBDIR += openfst-vosk
SUBDIR += openlibm
SUBDIR += openmesh
SUBDIR += openscop

View File

@ -0,0 +1,29 @@
PORTNAME= openfst # openfst-vosk is for audio/vosk-api
DISTVERSION= 20210207
CATEGORIES= math
PKGNAMESUFFIX= -vosk
MAINTAINER= yuri@FreeBSD.org
COMMENT= Library for working with weighted finite-state transducers
WWW= https://www.openfst.org/
LICENSE= APACHE20
USES= autoreconf compiler:c++17-lang gmake libtool
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-shared \
--enable-far \
--enable-ngram-fsts \
--enable-lookahead-fsts \
--with-pic \
--disable-bin
CXXFLAGS_i386= -msse -msse2 -mfpmath=sse
USE_GITHUB= yes
GH_ACCOUNT= alphacep
GH_TAGNAME= 7dfd808
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1703296254
SHA256 (alphacep-openfst-20210207-7dfd808_GH0.tar.gz) = d63946cf43b39cfd9543c354e376d91b4103d737ce61416de40b7b171d888a7f
SIZE (alphacep-openfst-20210207-7dfd808_GH0.tar.gz) = 923787

View File

@ -0,0 +1,18 @@
OpenFst is a library for constructing, combining, optimizing, and searching
weighted finite-state transducers (FSTs). Weighted finite-state transducers
are automata where each transition has an input label, an output label, and
a weight. The more familiar finite-state acceptor is represented as a
transducer with each transition's input and output label equal.
Finite-state acceptors are used to represent sets of strings (specifically,
regular or rational sets); finite-state transducers are used to represent
binary relations between pairs of strings (specifically, rational
transductions). The weights can be used to represent the cost of taking
a particular transition.
FSTs have key applications in speech recognition and synthesis, machine
translation, optical character recognition, pattern matching, string
processing, machine learning, information extraction and retrieval
among others. Often a weighted transducer is used to represent a
probabilistic model (e.g., an n-gram model, pronunciation model). FSTs can
be optimized by determinization and minimization, models can be applied to
hypothesis sets (also represented as automata) or cascaded by finite-state
composition, and the best results can be selected by shortest-path algorithms.

203
math/openfst-vosk/pkg-plist Normal file
View File

@ -0,0 +1,203 @@
include/fst/accumulator.h
include/fst/add-on.h
include/fst/arc-arena.h
include/fst/arc-map.h
include/fst/arc.h
include/fst/arcfilter.h
include/fst/arcsort.h
include/fst/bi-table.h
include/fst/cache.h
include/fst/closure.h
include/fst/compact-fst.h
include/fst/compat.h
include/fst/complement.h
include/fst/compose-filter.h
include/fst/compose.h
include/fst/concat.h
include/fst/config.h
include/fst/connect.h
include/fst/const-fst.h
include/fst/determinize.h
include/fst/dfs-visit.h
include/fst/difference.h
include/fst/disambiguate.h
include/fst/edit-fst.h
include/fst/encode.h
include/fst/epsnormalize.h
include/fst/equal.h
include/fst/equivalent.h
include/fst/error-weight.h
include/fst/expanded-fst.h
include/fst/expander-cache.h
include/fst/expectation-weight.h
include/fst/extensions/far/compile-strings.h
include/fst/extensions/far/convert.h
include/fst/extensions/far/create.h
include/fst/extensions/far/equal.h
include/fst/extensions/far/extract.h
include/fst/extensions/far/far-class.h
include/fst/extensions/far/far.h
include/fst/extensions/far/farlib.h
include/fst/extensions/far/farscript.h
include/fst/extensions/far/getters.h
include/fst/extensions/far/info.h
include/fst/extensions/far/isomorphic.h
include/fst/extensions/far/print-strings.h
include/fst/extensions/far/script-impl.h
include/fst/extensions/far/stlist.h
include/fst/extensions/far/sttable.h
include/fst/extensions/ngram/bitmap-index.h
include/fst/extensions/ngram/ngram-fst.h
include/fst/extensions/ngram/nthbit.h
include/fst/factor-weight.h
include/fst/filter-state.h
include/fst/flags.h
include/fst/float-weight.h
include/fst/fst-decl.h
include/fst/fst.h
include/fst/fstlib.h
include/fst/generic-register.h
include/fst/heap.h
include/fst/icu.h
include/fst/intersect.h
include/fst/interval-set.h
include/fst/invert.h
include/fst/isomorphic.h
include/fst/label-reachable.h
include/fst/lexicographic-weight.h
include/fst/lock.h
include/fst/log.h
include/fst/lookahead-filter.h
include/fst/lookahead-matcher.h
include/fst/map.h
include/fst/mapped-file.h
include/fst/matcher-fst.h
include/fst/matcher.h
include/fst/memory.h
include/fst/minimize.h
include/fst/mutable-fst.h
include/fst/pair-weight.h
include/fst/partition.h
include/fst/power-weight-mappers.h
include/fst/power-weight.h
include/fst/product-weight.h
include/fst/project.h
include/fst/properties.h
include/fst/prune.h
include/fst/push.h
include/fst/queue.h
include/fst/randequivalent.h
include/fst/randgen.h
include/fst/rational.h
include/fst/register.h
include/fst/relabel.h
include/fst/replace-util.h
include/fst/replace.h
include/fst/reverse.h
include/fst/reweight.h
include/fst/rmepsilon.h
include/fst/rmfinalepsilon.h
include/fst/script/arc-class.h
include/fst/script/arciterator-class.h
include/fst/script/arcsort.h
include/fst/script/arg-packs.h
include/fst/script/closure.h
include/fst/script/compile-impl.h
include/fst/script/compile.h
include/fst/script/compose.h
include/fst/script/concat.h
include/fst/script/connect.h
include/fst/script/convert.h
include/fst/script/decode.h
include/fst/script/determinize.h
include/fst/script/difference.h
include/fst/script/disambiguate.h
include/fst/script/draw-impl.h
include/fst/script/draw.h
include/fst/script/encode.h
include/fst/script/encodemapper-class.h
include/fst/script/epsnormalize.h
include/fst/script/equal.h
include/fst/script/equivalent.h
include/fst/script/fst-class.h
include/fst/script/fstscript-decl.h
include/fst/script/fstscript.h
include/fst/script/getters.h
include/fst/script/info-impl.h
include/fst/script/info.h
include/fst/script/intersect.h
include/fst/script/invert.h
include/fst/script/isomorphic.h
include/fst/script/map.h
include/fst/script/minimize.h
include/fst/script/print-impl.h
include/fst/script/print.h
include/fst/script/project.h
include/fst/script/prune.h
include/fst/script/push.h
include/fst/script/randequivalent.h
include/fst/script/randgen.h
include/fst/script/relabel.h
include/fst/script/replace.h
include/fst/script/reverse.h
include/fst/script/reweight.h
include/fst/script/rmepsilon.h
include/fst/script/script-impl.h
include/fst/script/shortest-distance.h
include/fst/script/shortest-path.h
include/fst/script/stateiterator-class.h
include/fst/script/synchronize.h
include/fst/script/text-io.h
include/fst/script/topsort.h
include/fst/script/union.h
include/fst/script/verify.h
include/fst/script/weight-class.h
include/fst/set-weight.h
include/fst/shortest-distance.h
include/fst/shortest-path.h
include/fst/signed-log-weight.h
include/fst/sparse-power-weight.h
include/fst/sparse-tuple-weight.h
include/fst/state-map.h
include/fst/state-reachable.h
include/fst/state-table.h
include/fst/statesort.h
include/fst/string-weight.h
include/fst/string.h
include/fst/symbol-table-ops.h
include/fst/symbol-table.h
include/fst/synchronize.h
include/fst/test-properties.h
include/fst/test/algo_test.h
include/fst/test/compactors.h
include/fst/test/fst_test.h
include/fst/test/rand-fst.h
include/fst/test/weight-tester.h
include/fst/topsort.h
include/fst/tuple-weight.h
include/fst/types.h
include/fst/union-find.h
include/fst/union-weight.h
include/fst/union.h
include/fst/util.h
include/fst/vector-fst.h
include/fst/verify.h
include/fst/visit.h
include/fst/weight.h
include/fst/windows_defs.inc
lib/fst/arc_lookahead-fst.so
lib/fst/ilabel_lookahead-fst.so
lib/fst/ngram-fst.so
lib/fst/olabel_lookahead-fst.so
lib/libfst.so
lib/libfst.so.23
lib/libfst.so.23.0.0
lib/libfstfar.so
lib/libfstfar.so.23
lib/libfstfar.so.23.0.0
lib/libfstlookahead.so
lib/libfstlookahead.so.23
lib/libfstlookahead.so.23.0.0
lib/libfstngram.so
lib/libfstngram.so.23
lib/libfstngram.so.23.0.0