Home
last modified time | relevance | path

Searched refs:fst_tuples (Results 1 – 8 of 8) sorted by relevance

/external/openfst/src/extensions/pdt/
Dpdtscript.cc68 void PdtReplace(const vector<pair<int64, const FstClass*> > &fst_tuples, in PdtReplace() argument
72 for (unsigned i = 0; i < fst_tuples.size() - 1; ++i) { in PdtReplace()
73 if (!ArcTypesMatch(*(fst_tuples[i].second), in PdtReplace()
74 *(fst_tuples[i+1].second), "PdtReplace")) return; in PdtReplace()
77 if (!ArcTypesMatch((*fst_tuples[0].second), *ofst, "PdtReplace")) return; in PdtReplace()
79 PdtReplaceArgs args(fst_tuples, ofst, parens, root); in PdtReplace()
Dpdtreplace.cc54 vector<FstTuple> fst_tuples; in main() local
56 fst_tuples.push_back(make_pair(root, ifst)); in main()
62 fst_tuples.push_back(make_pair(lab, ifst)); in main()
67 s::PdtReplace(fst_tuples, &ofst, &parens, root); in main()
/external/openfst/src/include/fst/script/
Dreplace.h42 vector<pair<typename Arc::Label, const Fst<Arc> *> > fst_tuples( in Replace()
46 fst_tuples[i].first = untyped_tuples[i].first; // convert label in Replace()
47 fst_tuples[i].second = untyped_tuples[i].second->GetFst<Arc>(); in Replace()
52 Replace(fst_tuples, ofst, args->arg3, args->arg4); in Replace()
/external/openfst/src/bin/
Dfstreplace.cc48 vector<FstTuple> fst_tuples; in main() local
50 fst_tuples.push_back(make_pair(root, ifst)); in main()
56 fst_tuples.push_back(make_pair(lab, ifst)); in main()
60 Replace(fst_tuples, &ofst, root, FLAGS_epsilon_on_replace); in main()
/external/openfst/src/include/fst/
Dreplace.h185 const vector<pair<Label, const Fst<A>*> > &fst_tuples, in VectorHashReplaceStateTable()
188 for (size_t i = 0; i < fst_tuples.size(); ++i) { in VectorHashReplaceStateTable()
189 if (fst_tuples[i].first == root) { in VectorHashReplaceStateTable()
190 root_size_ = CountStates(*(fst_tuples[i].second)); in VectorHashReplaceStateTable()
194 CountStates(*(fst_tuples[i].second))); in VectorHashReplaceStateTable()
254 const vector<pair<Label, const Fst<A>*> > &fst_tuples, in DefaultReplaceStateTable()
341 ReplaceFstImpl(const vector< pair<Label, const Fst<A>* > >& fst_tuples, in ReplaceFstImpl() argument
346 new StateTable(fst_tuples, opts.root)) { in ReplaceFstImpl()
350 if (fst_tuples.size() > 0) { in ReplaceFstImpl()
351 SetInputSymbols(fst_tuples[0].second->InputSymbols()); in ReplaceFstImpl()
[all …]
Daccumulator.h617 void Init(const vector<pair<Label, const Fst<Arc>*> > &fst_tuples, in Init() argument
620 accumulators_.resize(fst_tuples.size()); in Init()
624 accumulators_[i]->Init(*(fst_tuples[i].second)); in Init()
625 fst_array_.push_back(fst_tuples[i].second->Copy()); in Init()
688 void Init(const vector<pair<Label, const Fst<Arc>*> > &fst_tuples, in Init() argument
691 data_->Init(fst_tuples, state_table); in Init()
/external/srec/tools/thirdparty/OpenFst/fst/lib/
Dreplace.h97 ReplaceFstImpl(const vector< pair<Label, const Fst<A>* > >& fst_tuples, in ReplaceFstImpl() argument
101 if (fst_tuples.size() > 0) { in ReplaceFstImpl()
102 SetInputSymbols(fst_tuples[0].second->InputSymbols()); in ReplaceFstImpl()
103 SetOutputSymbols(fst_tuples[0].second->OutputSymbols()); in ReplaceFstImpl()
107 for (size_t i = 0; i < fst_tuples.size(); ++i) in ReplaceFstImpl()
108 AddFst(fst_tuples[i].first, fst_tuples[i].second); in ReplaceFstImpl()
/external/openfst/src/include/fst/extensions/pdt/
Dpdtscript.h155 void PdtReplace(const vector<pair<int64, const FstClass*> > &fst_tuples,