Home | History | Annotate | Download | only in fst

Lines Matching refs:label

45 //   typedef typename Arc::Label Label;
69 // // This finds matches to a label at the current state.
73 // bool Find(Label label);
108 typedef typename A::Label Label;
116 bool Find(Label label) { return Find_(label); }
125 virtual bool Find_(Label label) = 0;
143 typedef typename Arc::Label Label;
149 Label binary_label = 1)
228 bool Find(Label match_label) {
246 void LowerBound(Label match_label) {
269 Label label = match_type_ == MATCH_INPUT ?
271 return label != match_label_;
301 virtual bool Find_(Label label) { return Find(label); }
312 Label binary_label_; // Least label for binary search
313 Label match_label_; // Current label to be matched
337 Label label = match_type_ == MATCH_INPUT ?
339 if (label > match_label_) {
341 } else if (label < match_label_) {
344 // find first matching label (when non-determinism)
347 label = match_type_ == MATCH_INPUT ? aiter_->Value().ilabel :
349 if (label != match_label_) {
362 Label label = match_type_ == MATCH_INPUT ?
364 if (label == match_label_) {
367 if (label > match_label_)
383 // For any requested label that doesn't match at a state, this matcher
384 // considers all transitions that match the label 'rho_label' (rho =
386 // rho_label rewritten as the requested label (both sides if an
400 typedef typename Arc::Label Label;
405 Label rho_label = kNoLabel,
453 bool Find(Label match_label) {
455 FSTERROR() << "RhoMatcher::Find: bad label (rho)";
506 virtual bool Find_(Label label) { return Find(label); }
513 Label rho_label_; // Label that represents the rho transition
516 Labellabel that matches rho transition
556 // For any requested label, this matcher considers all transitions
557 // that match the label 'sigma_label' (sigma = "any"), and this in
558 // additions to transitions with the requested label. Each such sigma
560 // requested label (both sides if an acceptor, or if 'rewrite_both' is
574 typedef typename Arc::Label Label;
579 Label sigma_label = kNoLabel,
628 bool Find(Label match_label) {
631 FSTERROR() << "SigmaMatcher::Find: bad label (sigma)";
694 virtual bool Find_(Label label) { return Find(label); }
701 Label sigma_label_; // Label that represents the sigma transition
704 Label sigma_match_; // Current label that matches sigma transition
706 Label match_label_; // Label being matched
743 // For any requested label that doesn't match at a state, this matcher
744 // considers the *unique* transition that matches the label 'phi_label'
748 // with the phi_label rewritten as the requested label (both sides if
763 typedef typename Arc::Label Label;
768 Label phi_label = kNoLabel,
817 bool Find(Label match_label);
862 virtual bool Find_(Label label) { return Find(label); }
869 Label phi_label_; // Label that represents the phi transition
872 Label phi_match_; // Current label that matches phi loop
884 bool PhiMatcher<M>::Find(Label match_label) {
886 FSTERROR() << "PhiMatcher::Find: bad label (phi): " << phi_label_;
995 typedef typename Arc::Label Label;
1040 bool Find(Label match_label);
1076 void AddMultiEpsLabel(Label label) {
1077 if (label == 0) {
1078 FSTERROR() << "MultiEpsMatcher: Bad multi-eps label: 0";
1080 multi_eps_labels_.Insert(label);
1084 void RemoveMultiEpsLabel(Label label) {
1085 if (label == 0) {
1086 FSTERROR() << "MultiEpsMatcher: Bad multi-eps label: 0";
1088 multi_eps_labels_.Erase(label);
1101 // Multi-eps label set
1102 CompactSet<Label, kNoLabel> multi_eps_labels_;
1103 typename CompactSet<Label, kNoLabel>::const_iterator multi_eps_iter_;
1113 bool MultiEpsMatcher<M>::Find(Label match_label) {
1152 // if (matcher.Find(label))
1163 typedef typename Arc::Label Label;
1187 bool Find(Label label) { return base_->Find(label); }