/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
epsnormalize.h | 49 template <class Arc> 50 void EpsNormalize(const Fst<Arc> &ifst, MutableFst<Arc> *ofst, 52 VectorFst< GallicArc<Arc, STRING_RIGHT_RESTRICT> > gfst; 54 Map(ifst, &gfst, ToGallicMapper<Arc, STRING_RIGHT_RESTRICT>()); 56 Map(InvertFst<Arc>(ifst), &gfst, 57 ToGallicMapper<Arc, STRING_RIGHT_RESTRICT>()); 59 FactorWeightFst< GallicArc<Arc, STRING_RIGHT_RESTRICT>, 60 GallicFactor<typename Arc::Label, 61 typename Arc::Weight, STRING_RIGHT_RESTRICT> [all...] |
push.h | 40 template <class Arc> 41 void Push(MutableFst<Arc> *fst, ReweightType type) { 42 vector<typename Arc::Weight> distance; 56 template <class Arc, ReweightType rtype> 57 void Push(const Fst<Arc> &ifst, MutableFst<Arc> *ofst, uint32 ptype) { 66 vector<typename GallicArc<Arc, stype>::Weight> gdistance; 67 VectorFst< GallicArc<Arc, stype> > gfst; 68 Map(ifst, &gfst, ToGallicMapper<Arc, stype>()); 72 MapFst<Arc, Arc, RmWeightMapper<Arc> [all...] |
dfs-visit.h | 34 // template <class Arc> 37 // typedef typename Arc::StateId StateId; 41 // void InitVisit(const Fst<Arc> &fst); 44 // // Invoked when tree arc examined (to white/undiscovered state) 45 // bool TreeArc(StateId s, const Arc &a); 46 // // Invoked when back arc examined (to grey/unfinished state) 47 // bool BackArc(StateId s, const Arc &a); 48 // // Invoked when forward or cross arc examined (to black/finished state) 49 // bool ForwardOrCrossArc(StateId s, const Arc &a); 50 // // Invoked when state finished (PARENT is kNoStateID and ARC == NUL 123 const Arc &arc = aiter.Value(); local [all...] |
/external/openfst/src/include/fst/script/ |
shortest-distance.h | 57 template<class Queue, class Arc, class ArcFilter> 59 // template<class Arc, class ArcFilter> 60 static Queue *Construct(const Fst<Arc> &, 61 const vector<typename Arc::Weight> *) { 68 template<class Arc, class ArcFilter> 69 struct QueueConstructor<AutoQueue<typename Arc::StateId>, Arc, ArcFilter> { 70 // template<class Arc, class ArcFilter> 71 static AutoQueue<typename Arc::StateId> *Construct( 72 const Fst<Arc> &fst [all...] |
concat.h | 30 template<class Arc> 32 MutableFst<Arc> *ofst = args->arg1->GetMutableFst<Arc>(); 33 const Fst<Arc> &ifst = *(args->arg2.GetFst<Arc>()); 38 template<class Arc> 40 const Fst<Arc> &ifst = *(args->arg1.GetFst<Arc>()); 41 MutableFst<Arc> *ofst = args->arg2->GetMutableFst<Arc>(); [all...] |
fstscript.h | 79 template<class Arc> 89 REGISTER_FST_OPERATION(ArcSort, Arc, ArcSortArgs); 90 REGISTER_FST_OPERATION(Closure, Arc, ClosureArgs); 91 REGISTER_FST_OPERATION(CompileFst, Arc, FstCompileArgs); 92 REGISTER_FST_OPERATION(Compose, Arc, ComposeArgs1); 93 REGISTER_FST_OPERATION(Compose, Arc, ComposeArgs2); 94 REGISTER_FST_OPERATION(Concat, Arc, ConcatArgs1); 95 REGISTER_FST_OPERATION(Concat, Arc, ConcatArgs2); 96 REGISTER_FST_OPERATION(Connect, Arc, MutableFstClass); 97 REGISTER_FST_OPERATION(Convert, Arc, ConvertArgs) [all...] |
compose.h | 30 template<class Arc> 32 const Fst<Arc> &ifst1 = *(args->arg1.GetFst<Arc>()); 33 const Fst<Arc> &ifst2 = *(args->arg2.GetFst<Arc>()); 34 MutableFst<Arc> *ofst = args->arg3->GetMutableFst<Arc>(); 44 template<class Arc> 46 const Fst<Arc> &ifst1 = *(args->arg1.GetFst<Arc>()); [all...] |
difference.h | 31 template<class Arc> 33 const Fst<Arc> &ifst1 = *(args->arg1.GetFst<Arc>()); 34 const Fst<Arc> &ifst2 = *(args->arg2.GetFst<Arc>()); 35 MutableFst<Arc> *ofst = args->arg3->GetMutableFst<Arc>(); 43 template<class Arc> 45 const Fst<Arc> &ifst1 = *(args->arg1.GetFst<Arc>()); [all...] |
intersect.h | 31 template<class Arc> 33 const Fst<Arc> &ifst1 = *(args->arg1.GetFst<Arc>()); 34 const Fst<Arc> &ifst2 = *(args->arg2.GetFst<Arc>()); 35 MutableFst<Arc> *ofst = args->arg3->GetMutableFst<Arc>(); 43 template<class Arc> 45 const Fst<Arc> &ifst1 = *(args->arg1.GetFst<Arc>()); [all...] |
fst-class.h | 30 // FstClass which hides the arc types. This allows clients to load 31 // and work with FSTs without knowing the arc type. 72 // Wraps an Fst<Arc>, hiding its arc type. Whether this Fst<Arc> 78 template<class Arc> 81 explicit FstClassImpl(Fst<Arc> *impl, 85 explicit FstClassImpl(const Fst<Arc> &impl) : impl_(impl.Copy()) { } 88 return Arc::Type(); 96 return Arc::Weight::Type() [all...] |
invert.h | 30 template<class Arc> 32 MutableFst<Arc> *typed_fst = fst->GetMutableFst<Arc>();
|
arcsort.h | 31 template<class Arc> 33 MutableFst<Arc> *fst = args->arg1->GetMutableFst<Arc>(); 36 ILabelCompare<Arc> icomp; 39 OLabelCompare<Arc> ocomp;
|
decode.h | 31 template<class Arc> 33 MutableFst<Arc> *ofst = args->arg1->GetMutableFst<Arc>(); 35 EncodeMapper<Arc> *decoder = EncodeMapper<Arc>::Read(args->arg2, DECODE);
|
epsnormalize.h | 30 template<class Arc> 32 const Fst<Arc> &ifst = *(args->arg1.GetFst<Arc>()); 33 MutableFst<Arc> *ofst = args->arg2->GetMutableFst<Arc>();
|
minimize.h | 29 template<class Arc> 31 MutableFst<Arc> *ofst1 = args->arg1->GetMutableFst<Arc>(); 32 MutableFst<Arc> *ofst2 = args->arg2 ? args->arg2->GetMutableFst<Arc>() : 0;
|
reverse.h | 29 template<class Arc> 31 const Fst<Arc> &fst1 = *(args->arg1.GetFst<Arc>()); 32 MutableFst<Arc> *fst2 = args->arg2->GetMutableFst<Arc>();
|
synchronize.h | 29 template<class Arc> 31 const Fst<Arc> &ifst = *(args->arg1.GetFst<Arc>()); 32 MutableFst<Arc> *ofst = args->arg2->GetMutableFst<Arc>();
|
union.h | 29 template<class Arc> 31 MutableFst<Arc> *fst1 = args->arg1->GetMutableFst<Arc>(); 32 const Fst<Arc> &fst2 = *(args->arg2.GetFst<Arc>());
|
prune.h | 78 template<class Arc> 80 MutableFst<Arc> *ofst = args->arg1->GetMutableFst<Arc>(); 82 typedef typename Arc::Weight Weight; 83 typedef typename Arc::StateId StateId; 85 fst::PruneOptions<Arc, AnyArcFilter<Arc> > opts = 86 ConvertPruneOptions<Arc>(args->arg2); 95 template<class Arc> 97 const Fst<Arc>& ifst = *(args->arg1.GetFst<Arc>()) [all...] |
push.h | 30 template<class Arc> 32 MutableFst<Arc> *ofst = args->arg1->GetMutableFst<Arc>(); 45 template<class Arc> 47 const Fst<Arc> &ifst = *(args->arg1.GetFst<Arc>()); 48 MutableFst<Arc> *ofst = args->arg2->GetMutableFst<Arc>(); 51 fst::Push<Arc, REWEIGHT_TO_FINAL>(ifst, ofst, args->arg3, args->arg5); 53 fst::Push<Arc, REWEIGHT_TO_INITIAL>(ifst, ofst, args->arg3, args->arg5) [all...] |
encode.h | 32 template<class Arc> 34 MutableFst<Arc> *ofst = args->arg1->GetMutableFst<Arc>(); 39 EncodeMapper<Arc> *encoder = reuse_encoder 40 ? EncodeMapper<Arc>::Read(coder_fname, ENCODE) 41 : new EncodeMapper<Arc>(flags, ENCODE);
|
/external/openfst/src/test/ |
algo_test.h | 38 A operator()(const A &arc) const { 39 return A(0, 0, arc.weight, arc.nextstate); 62 template <class Arc, class WeightGenerator> 65 typedef typename Arc::Label Label; 66 typedef typename Arc::StateId StateId; 67 typedef typename Arc::Weight Weight; 69 WeightedTester(int seed, const Fst<Arc> &zero_fst, const Fst<Arc> &one_fst, 70 const Fst<Arc> &univ_fst, WeightGenerator *weight_generator [all...] |
/external/openfst/src/include/fst/ |
push.h | 29 #include <fst/arc-map.h> 43 template <class Arc> 44 typename Arc::Weight ComputeTotalWeight( 45 const Fst<Arc> &fst, 46 const vector<typename Arc::Weight> &distance, 50 distance[fst.Start()] : Arc::Weight::Zero(); 52 typename Arc::Weight sum = Arc::Weight::Zero(); 53 for (typename Arc::StateId s = 0; s < distance.size(); ++s) 61 template <class Arc> 79 Arc arc = ait.Value(); local [all...] |
epsnormalize.h | 31 #include <fst/arc-map.h> 51 template <class Arc> 52 void EpsNormalize(const Fst<Arc> &ifst, MutableFst<Arc> *ofst, 54 VectorFst< GallicArc<Arc, STRING_RIGHT_RESTRICT> > gfst; 56 ArcMap(ifst, &gfst, ToGallicMapper<Arc, STRING_RIGHT_RESTRICT>()); 58 ArcMap(InvertFst<Arc>(ifst), &gfst, 59 ToGallicMapper<Arc, STRING_RIGHT_RESTRICT>()); 61 FactorWeightFst< GallicArc<Arc, STRING_RIGHT_RESTRICT>, 62 GallicFactor<typename Arc::Label [all...] |
randequivalent.h | 43 template<class Arc, class ArcSelector> 44 bool RandEquivalent(const Fst<Arc> &fst1, const Fst<Arc> &fst2, 48 typedef typename Arc::Weight Weight; 61 ILabelCompare<Arc> icomp; 62 OLabelCompare<Arc> ocomp; 63 VectorFst<Arc> sfst1(fst1); 64 VectorFst<Arc> sfst2(fst2); 72 VectorFst<Arc> path; 73 const Fst<Arc> &fst = rand() % 2 ? sfst1 : sfst2 [all...] |