/external/openfst/src/include/fst/script/ |
H A D | randequivalent.h | 20 #include <fst/script/arg-packs.h> 21 #include <fst/script/fst-class.h> 22 #include <fst/script/randgen.h> // for RandArcSelection 23 #include <fst/randequivalent.h> 25 namespace fst { namespace 88 float delta = fst::kDelta, 97 const fst::RandGenOptions< 98 fst::script::RandArcSelection> &opts); 101 } // namespace fst [all...] |
H A D | randgen.h | 20 #include <fst/script/arg-packs.h> 21 #include <fst/script/fst-class.h> 22 #include <fst/randgen.h> 24 namespace fst { namespace 68 fst::RandGenOptions<fst::script::RandArcSelection>( 69 fst::script::UNIFORM_ARC_SELECTOR)); 72 } // namespace fst
|
H A D | relabel.h | 26 #include <fst/script/arg-packs.h> 27 #include <fst/script/fst-class.h> 28 #include <fst/relabel.h> 30 namespace fst { namespace 75 MutableFst<Arc> *fst = args->arg1->GetMutableFst<Arc>(); local 76 Relabel(fst, args->arg2, args->arg3); 94 void Relabel(MutableFstClass *fst, 100 } // namespace fst
|
H A D | arg-packs.h | 35 namespace fst { namespace 238 } // namespace fst
|
H A D | 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 69 const Fst<Arc> *fst = &fstcompiler.Fst(); local [all...] |
/external/openfst/src/include/fst/ |
H A D | statesort.h | 28 #include <fst/mutable-fst.h> 31 namespace fst { namespace 36 // (0, 1, 2, ..., fst->NumStates() - 1). 38 void StateSort(MutableFst<Arc> *fst, argument 43 if (order.size() != fst->NumStates()) { 45 fst->SetProperties(kError, kError); 49 if (fst->Start() == kNoStateId) 52 uint64 props = fst->Properties(kStateSortProperties, false); 58 fst [all...] |
H A D | arcfilter.h | 25 #include <fst/fst.h> 26 #include <fst/util.h> 29 namespace fst { namespace 97 } // namespace fst
|
H A D | reverse.h | 28 #include <fst/cache.h> 31 namespace fst { namespace 89 } // namespace fst
|
H A D | union-find.h | 27 #include <fst/types.h> 29 namespace fst { namespace 108 } // namespace fst
|
H A D | verify.h | 24 #include <fst/fst.h> 25 #include <fst/test-properties.h> 28 namespace fst { namespace 32 bool Verify(const Fst<Arc> &fst, bool allow_negative_labels = false) { argument 37 StateId start = fst.Start(); 38 const SymbolTable *isyms = fst.InputSymbols(); 39 const SymbolTable *osyms = fst.OutputSymbols(); 43 for (StateIterator< Fst<Arc> > siter(fst); 56 for (StateIterator< Fst<Arc> > siter(fst); [all...] |
/external/openfst/src/script/ |
H A D | compile.cc | 19 #include <fst/script/fst-class.h> 20 #include <fst/script/script-impl.h> 21 #include <fst/script/compile.h> 23 namespace fst { namespace 43 } // namespace fst
|
H A D | relabel.cc | 17 #include <fst/script/fst-class.h> 18 #include <fst/script/script-impl.h> 19 #include <fst/script/relabel.h> 21 namespace fst { namespace 45 void Relabel(MutableFstClass *fst, argument 48 RelabelArgs3 args(fst, new_isymbols, new_osymbols); 49 Apply<Operation<RelabelArgs3> >("Relabel", fst->ArcType(), &args); 68 } // namespace fst
|
H A D | rmepsilon.cc | 17 #include <fst/script/fst-class.h> 18 #include <fst/script/script-impl.h> 19 #include <fst/script/rmepsilon.h> 21 namespace fst { namespace 33 void RmEpsilon(MutableFstClass *fst, bool connect, argument 36 RmEpsilonArgs2 args(fst, connect, weight_threshold, state_threshold, delta); 38 Apply<Operation<RmEpsilonArgs2> >("RmEpsilon", fst->ArcType(), &args); 41 void RmEpsilon(MutableFstClass *fst, vector<WeightClass> *distance, argument 43 RmEpsilonArgs3 args(fst, distanc [all...] |
H A D | shortest-path.cc | 17 #include <fst/script/fst-class.h> 18 #include <fst/script/script-impl.h> 19 #include <fst/script/shortest-path.h> 21 namespace fst { namespace 53 } // namespace fst
|
H A D | text-io.cc | 17 #include <fst/script/text-io.h> 24 #include <fst/types.h> 25 #include <fst/util.h> 27 namespace fst { namespace 95 } // namespace fst
|
/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
H A D | arcsum.h | 17 // Functions to sum arcs (sum weights) in an fst. 22 #include "fst/lib/mutable-fst.h" 23 #include "fst/lib/weight.h" 25 namespace fst { namespace 57 void ArcSum(MutableFst<A>* fst) { argument 61 for (StateIterator<Fst<A> > siter(*fst); !siter.Done(); siter.Next()) { 63 if (fst->NumArcs(s) == 0) continue; 67 arcs.reserve(fst->NumArcs(s)); 68 for (ArcIterator<Fst<A> > aiter(*fst, [all...] |
H A D | equal.h | 22 #include "fst/lib/fst.h" 24 namespace fst { namespace 116 } // namespace fst
|
H A D | expanded-fst.h | 1 // expanded-fst.h 22 #include "fst/lib/fst.h" 24 namespace fst { namespace 61 Fst<A> *fst = reader(strm, ropts); local 62 if (!fst) return 0; 63 return down_cast<ExpandedFst<A> *>(fst); 82 typename Arc::StateId CountStates(const Fst<Arc> &fst) { argument 83 if (fst.Properties(kExpanded, false)) { 84 const ExpandedFst<Arc> *efst = down_cast<const ExpandedFst<Arc> *>(&fst); [all...] |
H A D | push.h | 23 #include "fst/lib/factor-weight.h" 24 #include "fst/lib/fst.h" 25 #include "fst/lib/map.h" 26 #include "fst/lib/reweight.h" 27 #include "fst/lib/shortest-distance.h" 29 namespace fst { namespace 41 void Push(MutableFst<Arc> *fst, ReweightType type) { argument 43 ShortestDistance(*fst, &distance, type == REWEIGHT_TO_INITIAL); 44 Reweight(fst, distanc [all...] |
H A D | reweight.h | 23 #include "fst/lib/mutable-fst.h" 25 namespace fst { namespace 39 void Reweight(MutableFst<Arc> *fst, vector<typename Arc::Weight> potential, argument 43 if (!fst->NumStates()) 45 while ( (int64)potential.size() < (int64)fst->NumStates()) 58 for (StateIterator< MutableFst<Arc> > sit(*fst); 62 for (MutableArcIterator< MutableFst<Arc> > ait(fst, state); 81 fst->SetFinal(state, 82 Divide(fst [all...] |
H A D | 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) { argument 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()) { 64 for (StateIterator<Fst<A> > siter(*fst); !site [all...] |
H A D | statesort.h | 24 #include "fst/lib/mutable-fst.h" 26 namespace fst { namespace 31 // (1, 2, ..., fst->NumStates() - 1). 33 void StateSort(MutableFst<Arc> *fst, argument 38 CHECK_EQ(order.size(), fst->NumStates()); 40 if (fst->Start() == kNoStateId) 43 uint64 props = fst->Properties(kStateSortProperties, false); 49 fst->SetStart(order[fst [all...] |
H A D | verify.h | 22 #include "fst/lib/fst.h" 23 #include "fst/lib/test-properties.h" 25 namespace fst { namespace 29 bool Verify(const Fst<Arc> &fst) { argument 34 StateId start = fst.Start(); 35 const SymbolTable *isyms = fst.InputSymbols(); 36 const SymbolTable *osyms = fst.OutputSymbols(); 40 for (StateIterator< Fst<Arc> > siter(fst); 53 for (StateIterator< Fst<Arc> > siter(fst); [all...] |
/external/openfst/src/extensions/pdt/ |
H A D | pdtscript.cc | 20 // See comments in nlp/fst/script/script-impl.h for how the registration 29 #include <fst/extensions/pdt/compose.h> 30 #include <fst/extensions/pdt/expand.h> 31 #include <fst/extensions/pdt/pdtscript.h> 32 #include <fst/extensions/pdt/replace.h> 33 #include <fst/extensions/pdt/reverse.h> 34 #include <fst/extensions/pdt/shortest-path.h> 35 #include <fst/script/script-impl.h> 37 namespace fst { namespace 115 } // namespace fst [all...] |
/external/openfst/src/lib/ |
H A D | util.cc | 23 #include <fst/util.h> 24 #include <fst/mapped-file.h> 32 namespace fst { namespace 93 } // namespace fst
|