Home | History | Annotate | Download | only in lib

Lines Matching refs:label

32 // By default ReplaceFst will copy the input label of the 'replace arc'.
73 typedef typename A::Label Label;
78 typedef hash_map<Label, Label> NonTerminalHash;
97 // \param fst_tuples array of label/fst tuples, one for each non-terminal
98 ReplaceFstImpl(const vector< pair<Label, const Fst<A>* > >& fst_tuples,
143 void AddFst(Label label, const Fst<A>* fst) {
144 nonterminal_hash_[label] = fst_array_.size();
192 Label j = it->second - 1;
205 void SetRoot(Label root) {
206 Label nonterminal = nonterminal_hash_[root];
211 void SetFst(Label label, const Fst<A>* fst) {
212 Label nonterminal = nonterminal_hash_[label];
329 Label nonterminal = it->second;
340 Label ilabel = (opts_.epsilon_on_replace) ? 0 : arc.ilabel;
388 PrefixTuple(Label f, StateId s) : fst_id(f), nextstate(s) {}
390 Label fst_id;
479 int PushPrefix(StackPrefix prefix, Label fst_id, StateId nextstate) {
504 Label root_;
524 // non-terminal can be any label that is not a non-zero terminal label
528 // to the tuple of non-terminal Label and corresponding Fst. For example
541 typedef typename A::Label Label;
546 ReplaceFst(const vector<pair<Label, const Fst<A>* > >& fst_array,
547 Label root)
550 ReplaceFst(const vector<pair<Label, const Fst<A>* > >& fst_array,
668 // a non-terminal arc or not. A non-terminal can be any label that is
669 // not a non-zero terminal label in the output alphabet. Note that
671 // of non-terminal Label and corresponding Fst.
673 void Replace(const vector<pair<typename Arc::Label,
675 MutableFst<Arc> *ofst, typename Arc::Label root) {