Home | History | Annotate | Download | only in fst

Lines Matching refs:Label

57 //   typedef typename A::Label Label;
60 // ReplaceStateTable(const vector<pair<Label, const Fst<A>*> > &fst_tuples,
61 // Label root);
176 typedef typename A::Label Label;
185 const vector<pair<Label, const Fst<A>*> > &fst_tuples,
186 Label root) : root_size_(0) {
244 typedef typename A::Label Label;
254 const vector<pair<Label, const Fst<A>*> > &fst_tuples,
255 Label root) {}
265 // By default ReplaceFst will copy the input label of the 'replace arc'.
328 typedef typename A::Label Label;
333 typedef unordered_map<Label, Label> NonTerminalHash;
340 // \param fst_tuples array of label/fst tuples, one for each non-terminal
341 ReplaceFstImpl(const vector< pair<Label, const Fst<A>* > >& fst_tuples,
359 Label nonterminal = fst_tuples[i].first;
372 Label label = fst_tuples[i].first;
374 nonterminal_hash_[label] = fst_array_.size();
375 nonterminal_set_.insert(label);
398 Label nonterminal = nonterminal_hash_[opts.root];
400 FSTERROR() << "ReplaceFstImpl: no Fst corresponding to root label '"
532 // Returns whether a given label is a non terminal
533 bool IsNonTerminal(Label l) const {
739 Label nonterminal = it->second;
752 Label ilabel = (epsilon_on_replace_) ? 0 : arc.ilabel;
780 const Fst<A>* GetFst(Label fst_id) const {
793 PrefixTuple(Label f, StateId s) : fst_id(f), nextstate(s) {}
795 Label fst_id;
884 PrefixId PushPrefix(StackPrefix prefix, Label fst_id, StateId nextstate) {
904 set<Label> nonterminal_set_;
907 Label root_;
930 // non-terminal can be any label that is not a non-zero terminal label
934 // to the tuple of non-terminal Label and corresponding Fst. For example
962 typedef typename A::Label Label;
970 ReplaceFst(const vector<pair<Label, const Fst<A>* > >& fst_array,
971 Label root)
974 ReplaceFst(const vector<pair<Label, const Fst<A>* > >& fst_array,
1238 typedef typename A::Label Label;
1278 typename set<Label>::iterator it = impl_->nonterminal_set_.begin();
1340 // Search for label, from previous set state. If label == 0, first
1342 // search for the label or epsilons.
1348 virtual bool Find_(Label label) {
1350 label_ = label;
1402 Label label_; // Current label
1430 // a non-terminal arc or not. A non-terminal can be any label that is
1431 // not a non-zero terminal label in the output alphabet. Note that
1433 // of non-terminal Label and corresponding Fst.
1435 void Replace(const vector<pair<typename Arc::Label,
1437 MutableFst<Arc> *ofst, typename Arc::Label root,
1445 void Replace(const vector<pair<typename Arc::Label,
1447 MutableFst<Arc> *ofst, typename Arc::Label root) {