/external/openfst/src/extensions/pdt/ |
D | pdtscript.cc | 54 void PdtExpand(const FstClass &ifst, in PdtExpand() argument 57 PdtExpandArgs args(ifst, parens, ofst, opts); in PdtExpand() 59 Apply<Operation<PdtExpandArgs> >("PdtExpand", ifst.ArcType(), &args); in PdtExpand() 62 void PdtExpand(const FstClass &ifst, in PdtExpand() argument 65 PdtExpand(ifst, parens, ofst, PdtExpandOptions(connect)); in PdtExpand() 84 void PdtReverse(const FstClass &ifst, in PdtReverse() argument 87 PdtReverseArgs args(ifst, parens, ofst); in PdtReverse() 89 Apply<Operation<PdtReverseArgs> >("PdtReverse", ifst.ArcType(), &args); in PdtReverse() 92 void PdtShortestPath(const FstClass &ifst, in PdtShortestPath() argument 96 PdtShortestPathArgs args(ifst, parens, ofst, opts); in PdtShortestPath() [all …]
|
D | pdtreplace.cc | 49 s::FstClass *ifst = s::FstClass::Read(in_fname); in main() local 50 if (!ifst) return 1; in main() 56 fst_tuples.push_back(make_pair(root, ifst)); in main() 59 ifst = s::FstClass::Read(argv[i]); in main() 60 if (!ifst) return 1; in main() 62 fst_tuples.push_back(make_pair(lab, ifst)); in main() 65 s::VectorFstClass ofst(ifst->ArcType()); in main()
|
D | pdtexpand.cc | 49 s::FstClass *ifst = s::FstClass::Read(in_name); in main() local 50 if (!ifst) return 1; in main() 62 s::WeightClass(ifst->WeightType(), FLAGS_weight); in main() 64 s::VectorFstClass ofst(ifst->ArcType()); in main() 65 s::PdtExpand(*ifst, parens, &ofst, s::PdtExpandOptions( in main()
|
/external/openfst/src/include/fst/ |
D | reverse.h | 43 void Reverse(const Fst<Arc> &ifst, MutableFst<RevArc> *ofst) { in Reverse() argument 49 ofst->SetInputSymbols(ifst.InputSymbols()); in Reverse() 50 ofst->SetOutputSymbols(ifst.OutputSymbols()); in Reverse() 51 if (ifst.Properties(kExpanded, false)) in Reverse() 52 ofst->ReserveStates(CountStates(ifst) + 1); in Reverse() 53 StateId istart = ifst.Start(); in Reverse() 57 for (StateIterator< Fst<Arc> > siter(ifst); in Reverse() 67 Weight final = ifst.Final(is); in Reverse() 73 for (ArcIterator< Fst<Arc> > aiter(ifst, is); in Reverse() 84 uint64 iprops = ifst.Properties(kCopyProperties, false); in Reverse()
|
D | shortest-path.h | 78 void SingleShortestPath(const Fst<Arc> &ifst, in SingleShortestPath() argument 86 ofst->SetInputSymbols(ifst.InputSymbols()); in SingleShortestPath() 87 ofst->SetOutputSymbols(ifst.OutputSymbols()); in SingleShortestPath() 89 if (ifst.Start() == kNoStateId) { in SingleShortestPath() 90 if (ifst.Properties(kError, false)) ofst->SetProperties(kError, kError); in SingleShortestPath() 99 StateId source = opts.source == kNoStateId ? ifst.Start() : opts.source; in SingleShortestPath() 142 if (ifst.Final(s) != Weight::Zero()) { in SingleShortestPath() 143 Weight w = Times(sd, ifst.Final(s)); in SingleShortestPath() 155 for (ArcIterator< Fst<Arc> > aiter(ifst, s); in SingleShortestPath() 193 ofst->SetFinal(s_p, ifst.Final(f_parent)); in SingleShortestPath() [all …]
|
/external/openfst/src/script/ |
D | shortest-path.cc | 24 void ShortestPath(const FstClass &ifst, MutableFstClass *ofst, in ShortestPath() argument 27 if (!ArcTypesMatch(ifst, *ofst, "ShortestPath")) return; in ShortestPath() 29 ShortestPathArgs1 args(ifst, ofst, distance, opts); in ShortestPath() 30 Apply<Operation<ShortestPathArgs1> >("ShortestPath", ifst.ArcType(), &args); in ShortestPath() 33 void ShortestPath(const FstClass &ifst, MutableFstClass *ofst, in ShortestPath() argument 36 if (!ArcTypesMatch(ifst, *ofst, "ShortestPath")) return; in ShortestPath() 38 ShortestPathArgs2 args(ifst, ofst, n, unique, first_path, weight_threshold, in ShortestPath() 40 Apply<Operation<ShortestPathArgs2> >("ShortestPath", ifst.ArcType(), &args); in ShortestPath()
|
D | concat.cc | 24 void Concat(MutableFstClass *ofst, const FstClass &ifst) { in Concat() argument 25 if (!ArcTypesMatch(*ofst, ifst, "Concat")) return; in Concat() 27 ConcatArgs1 args(ofst, ifst); in Concat() 32 void Concat(const FstClass &ifst, MutableFstClass *ofst) { in Concat() argument 33 if (!ArcTypesMatch(ifst, *ofst, "Concat")) return; in Concat() 35 ConcatArgs2 args(ifst, ofst); in Concat()
|
D | shortest-distance.cc | 34 void ShortestDistance(const FstClass &ifst, vector<WeightClass> *distance, in ShortestDistance() argument 36 ShortestDistanceArgs2 args(ifst, distance, reverse, delta); in ShortestDistance() 38 Apply<Operation<ShortestDistanceArgs2> >("ShortestDistance", ifst.ArcType(), in ShortestDistance() 43 WeightClass ShortestDistance(const FstClass &ifst) { in ShortestDistance() argument 44 ShortestDistanceArgs3 args(ifst); in ShortestDistance() 46 Apply<Operation<ShortestDistanceArgs3> >("ShortestDistance", ifst.ArcType(), in ShortestDistance()
|
D | synchronize.cc | 24 void Synchronize(const FstClass &ifst, MutableFstClass *ofst) { in Synchronize() argument 25 if (!ArcTypesMatch(ifst, *ofst, "Synchronize")) return; in Synchronize() 27 SynchronizeArgs args(ifst, ofst); in Synchronize() 28 Apply<Operation<SynchronizeArgs> >("Synchronize", ifst.ArcType(), &args); in Synchronize()
|
D | determinize.cc | 24 void Determinize(const FstClass &ifst, in Determinize() argument 27 if (!ArcTypesMatch(ifst, *ofst, "Determinize")) return; in Determinize() 29 DeterminizeArgs args(ifst, ofst, opts); in Determinize() 30 Apply<Operation<DeterminizeArgs> >("Determinize", ifst.ArcType(), &args); in Determinize()
|
D | epsnormalize.cc | 24 void EpsNormalize(const FstClass &ifst, MutableFstClass *ofst, in EpsNormalize() argument 26 if (!ArcTypesMatch(ifst, *ofst, "EpsNormalize")) return; in EpsNormalize() 28 EpsNormalizeArgs args(ifst, ofst, norm_type); in EpsNormalize() 29 Apply<Operation<EpsNormalizeArgs> >("EpsNormalize", ifst.ArcType(), &args); in EpsNormalize()
|
D | randgen.cc | 24 void RandGen(const FstClass &ifst, MutableFstClass *ofst, int32 seed, in RandGen() argument 26 if (!ArcTypesMatch(ifst, *ofst, "RandGen")) return; in RandGen() 28 RandGenArgs args(ifst, ofst, seed, opts); in RandGen() 29 Apply<Operation<RandGenArgs> >("RandGen", ifst.ArcType(), &args); in RandGen()
|
D | fst-class.cc | 98 FstClass *ifst = FstClass::Read(fname); in Read() local 99 if (!ifst) return 0; in Read() 100 if (ifst->Properties(fst::kMutable, false)) { in Read() 101 return static_cast<MutableFstClass *>(ifst); in Read() 103 MutableFstClass *ofst = new VectorFstClass(*ifst); in Read() 104 delete ifst; in Read()
|
D | prune.cc | 33 void Prune(const FstClass &ifst, MutableFstClass *fst, in Prune() argument 35 PruneArgs2 args(ifst, fst, opts); in Prune() 41 void Prune(const FstClass &ifst, in Prune() argument 45 PruneArgs3 args(ifst, ofst, weight_threshold, state_threshold, delta); in Prune() 47 Apply<Operation<PruneArgs3> >("Prune", ifst.ArcType(), &args); in Prune()
|
/external/openfst/src/include/fst/script/ |
D | shortest-path.h | 58 const Fst<Arc> &ifst = *(args->arg1.GetFst<Arc>()); in ShortestPath() local 73 ArcFilter>::Construct(ifst, &weights); in ShortestPath() 78 ShortestPath(ifst, ofst, &weights, spopts); in ShortestPath() 85 ArcFilter>::Construct(ifst, &weights); in ShortestPath() 90 ShortestPath(ifst, ofst, &weights, spopts); in ShortestPath() 97 ArcFilter >::Construct(ifst, &weights); in ShortestPath() 102 ShortestPath(ifst, ofst, &weights, spopts); in ShortestPath() 109 ArcFilter>::Construct(ifst, &weights); in ShortestPath() 114 ShortestPath(ifst, ofst, &weights, spopts); in ShortestPath() 121 ArcFilter>::Construct(ifst, &weights); in ShortestPath() [all …]
|
D | map.h | 57 const Fst<Arc> &ifst = *(args->args.arg1.GetFst<Arc>()); in Map() local 68 script::StateMap(ifst, ArcSumMapper<Arc>(ifst)))); in Map() 71 script::ArcMap(ifst, IdentityArcMapper<Arc>()))); in Map() 74 script::ArcMap(ifst, InvertWeightMapper<Arc>()))); in Map() 77 script::ArcMap(ifst, PlusMapper<Arc>(w)))); in Map() 80 script::ArcMap(ifst, QuantizeMapper<Arc>(delta)))); in Map() 83 script::ArcMap(ifst, RmWeightMapper<Arc>()))); in Map() 86 script::ArcMap(ifst, SuperFinalMapper<Arc>()))); in Map() 89 script::ArcMap(ifst, TimesMapper<Arc>(w)))); in Map() 92 script::ArcMap(ifst, WeightConvertMapper<Arc, LogArc>()))); in Map() [all …]
|
D | concat.h | 33 const Fst<Arc> &ifst = *(args->arg2.GetFst<Arc>()); in Concat() local 35 Concat(ofst, ifst); in Concat() 40 const Fst<Arc> &ifst = *(args->arg1.GetFst<Arc>()); in Concat() local 43 Concat(ifst, ofst); in Concat() 46 void Concat(MutableFstClass *ofst, const FstClass &ifst); 47 void Concat(const FstClass &ifst, MutableFstClass *ofst);
|
D | randgen.h | 38 const Fst<Arc> &ifst = *(args->arg1.GetFst<Arc>()); in RandGen() local 48 RandGen(ifst, ofst, ropts); in RandGen() 54 RandGen(ifst, ofst, ropts); in RandGen() 60 RandGen(ifst, ofst, ropts); in RandGen() 66 void RandGen(const FstClass &ifst, MutableFstClass *ofst, int32 seed = time(0),
|
/external/openfst/src/bin/ |
D | fstreplace.cc | 43 FstClass *ifst = FstClass::Read(in_fname); in main() local 44 if (!ifst) return 1; in main() 50 fst_tuples.push_back(make_pair(root, ifst)); in main() 53 ifst = s::FstClass::Read(argv[i]); in main() 54 if (!ifst) return 1; in main() 56 fst_tuples.push_back(make_pair(lab, ifst)); in main() 59 VectorFstClass ofst(ifst->ArcType()); in main()
|
D | fstdeterminize.cc | 53 FstClass *ifst = FstClass::Read(in_name); in main() local 54 if (!ifst) return 1; in main() 56 VectorFstClass ofst(ifst->ArcType()); in main() 60 WeightClass::Zero() : WeightClass(ifst->WeightType(), FLAGS_weight), in main() 63 s::Determinize(*ifst, &ofst, opts); in main()
|
D | fstpush.cc | 53 FstClass *ifst = FstClass::Read(in_name); in main() local 54 if (!ifst) return 1; in main() 66 VectorFstClass ofst(ifst->ArcType()); in main() 69 s::Push(*ifst, &ofst, flags, fst::REWEIGHT_TO_FINAL, FLAGS_delta); in main() 71 s::Push(*ifst, &ofst, flags, fst::REWEIGHT_TO_INITIAL, FLAGS_delta); in main()
|
D | fstrmepsilon.cc | 54 FstClass *ifst = FstClass::Read(in_fname); in main() local 55 if (!ifst) return 1; in main() 59 WeightClass(ifst->WeightType(), FLAGS_weight); in main() 83 MutableFstClass *ofst = new VectorFstClass(ifst->ArcType()); in main() 84 s::RmEpsilon(*ifst, ofst, FLAGS_reverse, opts); in main()
|
D | fstsynchronize.cc | 44 FstClass *ifst = FstClass::Read(in_name); in main() local 45 if (!ifst) return 1; in main() 47 VectorFstClass ofst(ifst->ArcType()); in main() 49 s::Synchronize(*ifst, &ofst); in main()
|
D | fstreverse.cc | 50 FstClass *ifst = FstClass::Read(in_name); in main() local 51 if (!ifst) return 1; in main() 53 VectorFstClass *out = new VectorFstClass(ifst->ArcType()); in main() 55 Reverse(*ifst, out); in main()
|
D | fstshortestpath.cc | 54 FstClass *ifst = FstClass::Read(in_fname); in main() local 55 if (!ifst) return 1; in main() 59 WeightClass(ifst->WeightType(), FLAGS_weight); in main() 61 VectorFstClass ofst(ifst->ArcType()); in main() 87 s::ShortestPath(*ifst, &ofst, &distance, opts); in main()
|