Lines Matching refs:label
28 #include <fst/label-reachable.h>
46 // typedef typename Arc::Label Label;
55 // Below are methods for looking ahead for a match to a label and
60 // // LABEL LOOKAHEAD: Can 'label' be read from the current matcher state
62 // bool LookAheadLabel(Label label) const;
84 // // implementations are useful for label-pushing in composition.
137 typedef typename A::Label Label;
146 bool LookAheadLabel(Label label) const { return LookAheadLabel_(label); }
173 virtual bool LookAheadLabel_(Label label) const = 0;
190 typedef typename Arc::Label Label;
207 bool Find(Label label) { return matcher_.Find(label); }
218 bool LookAheadLabel(Label label) const { return true; }
229 virtual bool Find_(Label label) { return Find(label); }
234 bool LookAheadLabel_(Label l) const { return LookAheadLabel(l); }
256 typedef typename Arc::Label Label;
291 bool Find(Label label) { return matcher_.Find(label); }
306 bool LookAheadLabel(Label label) const { return matcher_.Find(label); }
321 virtual bool Find_(Label label) { return Find(label); }
326 bool LookAheadLabel_(Label l) const { return LookAheadLabel(l); }
371 Label label = kNoLabel;
374 label = arc.olabel;
377 label = arc.ilabel;
383 if (label == 0) {
391 } else if (matcher_.Find(label)) {
429 typedef typename Arc::Label Label;
431 typedef LabelReachableData<Label> MatcherData;
489 bool Find(Label label) {
494 return matcher_.Find(label);
524 bool LookAheadLabel(Label label) const {
525 if (label == 0)
533 return label_reachable_->Reach(label);
562 virtual bool Find_(Label label) { return Find(label); }
567 bool LookAheadLabel_(Label l) const { return LookAheadLabel(l); }
574 LabelReachable<Arc, S> *label_reachable_; // Label reachability info
625 // Label-lookahead relabeling class.
629 typedef typename A::Label Label;
630 typedef LabelReachableData<Label> MatcherData;
637 // Relabels arbitrary Fst. Class L should be a label-lookahead Fst.
649 // Class L should be a label-lookahead Fst.
654 static void RelabelPairs(const L &mfst, vector<pair<Label, Label> > *pairs,
683 vector<pair<Label, Label> > pairs;
691 vector<pair<Label, Label> > pairs;
713 typedef typename Arc::Label Label;
738 bool Find(Label label) { return base_->Find(label); }
749 bool LookAheadLabel(Label label) const {
752 return lbase->LookAheadLabel(label);