/external/openfst/src/bin/ |
fstpush.cc | 53 FstClass *ifst = FstClass::Read(in_name); local 54 if (!ifst) return 1; 66 VectorFstClass ofst(ifst->ArcType()); 69 s::Push(*ifst, &ofst, flags, fst::REWEIGHT_TO_FINAL, FLAGS_delta); 71 s::Push(*ifst, &ofst, flags, fst::REWEIGHT_TO_INITIAL, FLAGS_delta);
|
fstinfo.cc | 52 FstClass *ifst = FstClass::Read(in_name); local 53 if (!ifst) return 1; 55 s::PrintFstInfo(*ifst, FLAGS_test_properties, FLAGS_arc_filter,
|
fstrandgen.cc | 56 FstClass *ifst = FstClass::Read(in_name); local 57 if (!ifst) return 1; 59 VectorFstClass ofst(ifst->ArcType()); 75 s::RandGen(*ifst, &ofst, FLAGS_seed,
|
fstrmepsilon.cc | 54 FstClass *ifst = FstClass::Read(in_fname); local 55 if (!ifst) return 1; 59 WeightClass(ifst->WeightType(), FLAGS_weight); 83 MutableFstClass *ofst = new VectorFstClass(ifst->ArcType()); 84 s::RmEpsilon(*ifst, ofst, FLAGS_reverse, opts);
|
fstshortestpath.cc | 54 FstClass *ifst = FstClass::Read(in_fname); local 55 if (!ifst) return 1; 59 WeightClass(ifst->WeightType(), FLAGS_weight); 61 VectorFstClass ofst(ifst->ArcType()); 87 s::ShortestPath(*ifst, &ofst, &distance, opts);
|
fstmap.cc | 55 FstClass *ifst = FstClass::Read(in_name); local 56 if (!ifst) return 1; 59 s::WeightClass(ifst->WeightType(), FLAGS_weight) : 92 FstClass *ofst = s::Map(*ifst, mt, FLAGS_delta, w);
|
fstshortestdistance.cc | 53 FstClass *ifst = FstClass::Read(in_fname); local 54 if (!ifst) return 1; 83 s::ShortestDistance(*ifst, &distance, FLAGS_reverse, FLAGS_delta); 87 s::ShortestDistance(*ifst, &distance, opts);
|
/external/openfst/src/extensions/pdt/ |
pdtexpand.cc | 49 s::FstClass *ifst = s::FstClass::Read(in_name); local 50 if (!ifst) return 1; 62 s::WeightClass(ifst->WeightType(), FLAGS_weight); 64 s::VectorFstClass ofst(ifst->ArcType()); 65 s::PdtExpand(*ifst, parens, &ofst, s::PdtExpandOptions(
|
pdtinfo.cc | 45 s::FstClass *ifst = s::FstClass::Read(in_name); local 46 if (!ifst) return 1; 56 s::PrintPdtInfo(*ifst, parens);
|
pdtshortestpath.cc | 50 s::FstClass *ifst = s::FstClass::Read(in_name); local 51 if (!ifst) return 1; 61 s::VectorFstClass ofst(ifst->ArcType()); 77 s::PdtShortestPath(*ifst, parens, &ofst, opts);
|
/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
epsnormalize.h | 48 void EpsNormalize(const Fst<Arc> &ifst, MutableFst<Arc> *ofst, 52 Map(ifst, &gfst, ToGallicMapper<Arc, STRING_RIGHT_RESTRICT>()); 54 Map(InvertFst<Arc>(ifst), &gfst,
|
push.h | 51 // OFST obtained from IFST by pushing weights and/or labels according 57 void Push(const Fst<Arc> &ifst, MutableFst<Arc> *ofst, uint32 ptype) { 60 *ofst = ifst; 68 Map(ifst, &gfst, ToGallicMapper<Arc, stype>()); 73 uwfst(ifst, RmWeightMapper<Arc>()); 83 *ofst = ifst;
|
prune.h | 137 // 'ifst' whose weight is no more than 'opts.threshold' Times() the 141 void Prune(const Fst<Arc> &ifst, 155 if (ifst.Start() == kNoStateId) 163 ShortestDistance(ifst, idistance, false); 168 ShortestDistance(ifst, fdistance, true); 173 while (fdistance->size() <= ifst.Start()) 175 Weight ceiling = Times((*fdistance)[ifst.Start()], opts.threshold); 177 for (StateIterator< Fst<Arc> > sit(ifst); 193 if (!less(ceiling, Times((*idistance)[state], ifst.Final(state)))) 194 ofst->SetFinal(copy[state], ifst.Final(state)) [all...] |
/external/openfst/src/include/fst/script/ |
shortest-path.h | 58 const Fst<Arc> &ifst = *(args->arg1.GetFst<Arc>()); local 73 ArcFilter>::Construct(ifst, &weights); 78 ShortestPath(ifst, ofst, &weights, spopts); 85 ArcFilter>::Construct(ifst, &weights); 90 ShortestPath(ifst, ofst, &weights, spopts); 97 ArcFilter >::Construct(ifst, &weights); 102 ShortestPath(ifst, ofst, &weights, spopts); 109 ArcFilter>::Construct(ifst, &weights); 114 ShortestPath(ifst, ofst, &weights, spopts); 121 ArcFilter>::Construct(ifst, &weights) 161 const Fst<Arc> &ifst = *(args->arg1.GetFst<Arc>()); local [all...] |
push.h | 47 const Fst<Arc> &ifst = *(args->arg1.GetFst<Arc>()); local 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); 62 void Push(const FstClass &ifst, MutableFstClass *ofst, uint32 flags,
|
randgen.h | 38 const Fst<Arc> &ifst = *(args->arg1.GetFst<Arc>()); local 48 RandGen(ifst, ofst, ropts); 54 RandGen(ifst, ofst, ropts); 60 RandGen(ifst, ofst, ropts); 66 void RandGen(const FstClass &ifst, MutableFstClass *ofst, int32 seed = time(0),
|
determinize.h | 47 const Fst<Arc> &ifst = *(args->arg1.GetFst<Arc>()); local 58 Determinize(ifst, ofst, detargs); 61 void Determinize(const FstClass &ifst, MutableFstClass *ofst,
|
disambiguate.h | 47 const Fst<Arc> &ifst = *(args->arg1.GetFst<Arc>()); local 58 Disambiguate(ifst, ofst, detargs); 61 void Disambiguate(const FstClass &ifst, MutableFstClass *ofst,
|
/external/openfst/src/include/fst/ |
epsnormalize.h | 52 void EpsNormalize(const Fst<Arc> &ifst, MutableFst<Arc> *ofst, 56 ArcMap(ifst, &gfst, ToGallicMapper<Arc, STRING_RIGHT_RESTRICT>()); 58 ArcMap(InvertFst<Arc>(ifst), &gfst, 66 ofst->SetOutputSymbols(ifst.OutputSymbols());
|
shortest-path.h | 68 // 'ifst'. 'distance' returns the shortest distances from the source 69 // state to each state in 'ifst'. 'opts' is used to specify options 78 void SingleShortestPath(const Fst<Arc> &ifst, 86 ofst->SetInputSymbols(ifst.InputSymbols()); 87 ofst->SetOutputSymbols(ifst.OutputSymbols()); 89 if (ifst.Start() == kNoStateId) { 90 if (ifst.Properties(kError, false)) ofst->SetProperties(kError, kError); 99 StateId source = opts.source == kNoStateId ? ifst.Start() : opts.source; 142 if (ifst.Final(s) != Weight::Zero()) { 143 Weight w = Times(sd, ifst.Final(s)) [all...] |
/external/openfst/src/include/fst/extensions/far/ |
create.h | 62 Fst<Arc> *ifst = Fst<Arc>::Read(inputs[i]); local 63 if (!ifst) return; 78 far_writer->Add(key_prefix + key + key_suffix, *ifst); 79 delete ifst;
|
/external/openfst/src/script/ |
push.cc | 32 void Push(const FstClass &ifst, MutableFstClass *ofst, uint32 flags, 34 if (!ArcTypesMatch(ifst, *ofst, "Push")) return; 36 PushArgs2 args(ifst, ofst, flags, dir, delta); 37 Apply<Operation<PushArgs2> >("Push", ifst.ArcType(), &args);
|
rmepsilon.cc | 24 void RmEpsilon(const FstClass &ifst, MutableFstClass *ofst, 26 if (!ArcTypesMatch(ifst, *ofst, "RmEpsilon")) return; 28 RmEpsilonArgs1 args(ifst, ofst, reverse, opts); 30 Apply<Operation<RmEpsilonArgs1> >("RmEpsilon", ifst.ArcType(), &args);
|
prune.cc | 33 void Prune(const FstClass &ifst, MutableFstClass *fst, 35 PruneArgs2 args(ifst, fst, opts); 41 void Prune(const FstClass &ifst, 45 PruneArgs3 args(ifst, ofst, weight_threshold, state_threshold, delta); 47 Apply<Operation<PruneArgs3> >("Prune", ifst.ArcType(), &args);
|
fst-class.cc | 98 FstClass *ifst = FstClass::Read(fname); local 99 if (!ifst) return 0; 100 if (ifst->Properties(fst::kMutable, false)) { 101 return static_cast<MutableFstClass *>(ifst); 103 MutableFstClass *ofst = new VectorFstClass(*ifst); 104 delete ifst;
|