HomeSort by relevance Sort by last modified time
    Searched defs:fst (Results 126 - 150 of 313) sorted by null

1 2 3 4 56 7 8 91011>>

  /external/srec/tools/thirdparty/OpenFst/fst/lib/
expanded-fst.h 1 // expanded-fst.h
17 // Generic FST augmented with state count - interface class definition.
22 #include "fst/lib/fst.h"
24 namespace fst { namespace
26 // A generic FST plus state count.
28 class ExpandedFst : public Fst<A> {
56 LOG(ERROR) << "ExpandedFst::Read: Unknown FST type \"" << hdr.FstType()
61 Fst<A> *fst = reader(strm, ropts) local
    [all...]
invert.h 17 // Functions and classes to invert an Fst.
22 #include "fst/lib/map.h"
23 #include "fst/lib/mutable-fst.h"
25 namespace fst { namespace
41 // Inverts the transduction corresponding to an FST by exchanging the
42 // FST's input and output labels. This version modifies its input.
49 void Invert(MutableFst<Arc> *fst) { Map(fst, InvertMapper<Arc>()); }
52 // Inverts the transduction corresponding to an FST by exchanging th
    [all...]
reverse.h 17 // Functions and classes to sort arcs in an FST.
22 #include "fst/lib/cache.h"
24 namespace fst { namespace
26 // Reverses an FST. The reversed result is written to an output
36 void Reverse(const Fst<Arc> &ifst, MutableFst<RevArc> *ofst) {
48 for (StateIterator< Fst<Arc> > siter(ifst);
64 for (ArcIterator< Fst<Arc> > aiter(ifst, is);
80 } // namespace fst
rmfinalepsilon.h 24 #include "fst/lib/connect.h"
25 #include "fst/lib/mutable-fst.h"
27 namespace fst { namespace
30 void RmFinalEpsilon(MutableFst<A>* fst) {
39 DfsVisit(*fst, &scc_visitor);
45 for (StateIterator<Fst<A> > siter(*fst); !siter.Done(); siter.Next()) {
47 if (fst->Final(s) != Weight::Zero()) {
49 for (ArcIterator<Fst<A> > aiter(*fst, s); !aiter.Done(); aiter.Next())
    [all...]
statesort.h 17 // Function to sort states of an Fst.
24 #include "fst/lib/mutable-fst.h"
26 namespace fst { namespace
28 // Sorts the input states of an FST, modifying it. ORDER[i] gives the
30 // sorting. ORDER must be a permutation of FST's states ID sequence:
31 // (1, 2, ..., fst->NumStates() - 1).
33 void StateSort(MutableFst<Arc> *fst,
38 CHECK_EQ(order.size(), fst->NumStates());
40 if (fst->Start() == kNoStateId
    [all...]
union-find.h 26 namespace fst { namespace
verify.h 22 #include "fst/lib/fst.h"
23 #include "fst/lib/test-properties.h"
25 namespace fst { namespace
27 // Verifies that an Fst's contents are sane.
29 bool Verify(const Fst<Arc> &fst) {
34 StateId start = fst.Start();
35 const SymbolTable *isyms = fst.InputSymbols();
36 const SymbolTable *osyms = fst.OutputSymbols()
    [all...]
  /external/openfst/src/include/fst/
closure.h 19 // Functions and classes to compute the concatenative closure of an Fst.
28 #include <fst/mutable-fst.h>
29 #include <fst/rational.h>
32 namespace fst { namespace
35 // MutableFst input. If FST transduces string x to y with weight a,
46 void Closure(MutableFst<Arc> *fst, ClosureType closure_type) {
51 uint64 props = fst->Properties(kFstProperties, false);
52 StateId start = fst->Start();
53 for (StateIterator< MutableFst<Arc> > siter(*fst);
    [all...]
compat.h 37 #include <fst/config.h>
38 #include <fst/types.h>
39 #include <fst/lock.h>
40 #include <fst/flags.h>
41 #include <fst/log.h>
42 #include <fst/icu.h>
52 namespace fst { namespace
113 } // namespace fst
difference.h 28 #include <fst/cache.h>
29 #include <fst/compose.h>
30 #include <fst/complement.h>
33 namespace fst { namespace
36 class M = Matcher<Fst<A> >,
49 // Fst. Only strings that are in the first automaton but not in second
72 DifferenceFst(const Fst<A> &fst1, const Fst<A> &fst2,
74 typedef RhoMatcher< Matcher<Fst<A> > > R;
90 DifferenceFst(const Fst<A> &fst1, const Fst<A> &fst2
    [all...]
expectation-weight.h 28 // ShortestDistance[Fst<ArcTpl<ExpectationWeight<P, V> > >]
36 #include <fst/pair-weight.h>
39 namespace fst { namespace
140 } // namespace fst
intersect.h 28 #include <fst/cache.h>
29 #include <fst/compose.h>
32 namespace fst { namespace
35 class M = Matcher<Fst<A> >,
48 // version is a delayed Fst. Only strings that are in both automata
70 IntersectFst(const Fst<A> &fst1, const Fst<A> &fst2,
82 IntersectFst(const Fst<A> &fst1, const Fst<A> &fst2,
93 // See Fst<>::Copy() for doc
    [all...]
invert.h 19 // Functions and classes to invert an Fst.
24 #include <fst/arc-map.h>
25 #include <fst/mutable-fst.h>
28 namespace fst { namespace
48 // Inverts the transduction corresponding to an FST by exchanging the
49 // FST's input and output labels. This version modifies its input.
56 void Invert(MutableFst<Arc> *fst) {
57 SymbolTable *input = fst->InputSymbols() ? fst->InputSymbols()->Copy() : 0
    [all...]
lexicographic-weight.h 33 #include <fst/pair-weight.h>
34 #include <fst/weight.h>
37 namespace fst { namespace
149 } // namespace fst
map.h 26 #include <fst/arc-map.h>
29 namespace fst { namespace
32 void Map(MutableFst<A> *fst, C* mapper) {
33 ArcMap(fst, mapper);
37 void Map(MutableFst<A> *fst, C mapper) {
38 ArcMap(fst, mapper);
42 void Map(const Fst<A> &ifst, MutableFst<B> *ofst, C* mapper) {
47 void Map(const Fst<A> &ifst, MutableFst<B> *ofst, C mapper) {
61 MapFst(const Fst<A> &fst, const C &mapper, const MapFstOptions& opts
    [all...]
product-weight.h 27 #include <fst/pair-weight.h>
28 #include <fst/weight.h>
31 namespace fst { namespace
113 } // namespace fst
push.h 19 // Class to reweight/push an FST.
27 #include <fst/factor-weight.h>
28 #include <fst/fst.h>
29 #include <fst/arc-map.h>
30 #include <fst/reweight.h>
31 #include <fst/shortest-distance.h>
34 namespace fst { namespace
45 const Fst<Arc> &fst,
    [all...]
register.h 28 #include <fst/compat.h>
32 #include <fst/util.h>
33 #include <fst/generic-register.h>
36 #include <fst/types.h>
38 namespace fst { namespace
40 template <class A> class Fst;
46 typedef Fst<A> *(*Reader)(istream &strm, const FstReadOptions &opts);
47 typedef Fst<A> *(*Converter)(const Fst<A> &fst);
    [all...]
topsort.h 29 #include <fst/dfs-visit.h>
30 #include <fst/fst.h>
31 #include <fst/statesort.h>
34 namespace fst { namespace
44 // otherwise unchanged. ACYCLIC will be true iff the FST has
49 void InitVisit(const Fst<A> &fst) {
91 bool TopSort(MutableFst<Arc> *fst) {
98 DfsVisit(*fst, &top_order_visitor)
    [all...]
  /external/openfst/src/include/fst/extensions/far/
extract.h 30 #include <fst/extensions/far/far.h>
32 namespace fst { namespace
35 inline void FarWriteFst(const Fst<Arc>* fst, string key,
62 fst->Write(filename_prefix + ofilename + filename_suffix);
98 const Fst<Arc> &fst = far_reader->GetFst(); local
99 FarWriteFst(&fst, key, &okey, &nrep, generate_filenames, i,
115 const Fst<Arc> &fst = far_reader->GetFst() local
131 const Fst<Arc> &fst = far_reader->GetFst(); local
    [all...]
info.h 27 #include <fst/extensions/far/far.h>
28 #include <fst/extensions/far/main.h> // For FarTypeToString
30 namespace fst { namespace
33 void CountStatesAndArcs(const Fst<Arc> &fst, size_t *nstate, size_t *narc) {
34 StateIterator<Fst<Arc> > siter(fst);
36 ArcIterator<Fst<Arc> > aiter(fst, siter.Value());
68 const Fst<Arc> &fst = far_reader->GetFst() local
    [all...]
  /external/openfst/src/include/fst/script/
arg-packs.h 35 namespace fst { namespace
238 } // namespace fst
compile.h 20 #include <fst/script/arg-packs.h>
21 #include <fst/script/fst-class.h>
22 #include <fst/script/compile-impl.h>
24 namespace fst { namespace
32 fst::istream &istrm;
36 const fst::SymbolTable *isyms;
37 const fst::SymbolTable *osyms;
38 const fst::SymbolTable *ssyms;
46 const string &fst_type, const fst::SymbolTable *isyms
69 const Fst<Arc> *fst = &fstcompiler.Fst(); local
    [all...]
prune.h 23 #include <fst/script/arg-packs.h>
24 #include <fst/script/fst-class.h>
25 #include <fst/script/weight-class.h>
26 #include <fst/prune.h>
27 #include <fst/arcfilter.h>
29 namespace fst { namespace
48 // converts a script::PruneOptions into a fst::PruneOptions.
54 fst::PruneOptions<A, AnyArcFilter<A> > ConvertPruneOptions(
70 return fst::PruneOptions<A, AnyArcFilter<A> >
125 MutableFst<Arc> *fst = args->arg1->GetMutableFst<Arc>(); local
    [all...]
script-impl.h 18 // These operations are designed to enable scripts to work with FST classes
55 // const Fst<Arc> &ifst = args->arg1.GetFst<Arc>();
103 #include <fst/script/fst-class.h>
104 #include <fst/generic-register.h>
105 #include <fst/script/arg-packs.h>
107 #include <fst/types.h>
109 namespace fst { namespace
139 // Just use the old-style FST for now.
172 static fst::script::Operation<ArgPack>::Registerer
    [all...]

Completed in 202 milliseconds

1 2 3 4 56 7 8 91011>>