/external/openfst/src/include/fst/ |
D | arc.h | 51 : ilabel(i), olabel(o), weight(w), nextstate(s) {} in ArcTpl() 61 Label ilabel; variable 84 : ilabel(i), olabel(o), weight(w), nextstate(s) {} in StringArc() 97 Label ilabel; // Transition input label variable 116 : ilabel(i), olabel(o), weight(w), nextstate(s) {} in GallicArc() 119 : ilabel(arc.ilabel), olabel(arc.ilabel), in GallicArc() 131 Label ilabel; // Transition input label member 147 : ilabel(i), olabel(o), weight(w), nextstate(s) {} in ReverseArc() 156 Label ilabel; // Transition input label member 171 : ilabel(i), olabel(o), weight(w), nextstate(s) {} in LexicographicArc() [all …]
|
D | arc-map.h | 145 if (final_arc.ilabel != 0 || final_arc.olabel != 0) { in ArcMap() 156 if (final_arc.ilabel != 0 || final_arc.olabel != 0) { in ArcMap() 174 if (final_arc.ilabel != 0 || final_arc.olabel != 0 || in ArcMap() 176 fst->AddArc(s, A(final_arc.ilabel, final_arc.olabel, in ArcMap() 251 if (final_arc.ilabel != 0 || final_arc.olabel != 0) { in ArcMap() 260 if (final_arc.ilabel != 0 || final_arc.olabel != 0) { in ArcMap() 276 if (final_arc.ilabel != 0 || final_arc.olabel != 0 || in ArcMap() 278 ofst->AddArc(s, B(final_arc.ilabel, final_arc.olabel, in ArcMap() 382 if (final_arc.ilabel != 0 || final_arc.olabel != 0) { in Final() 395 if (final_arc.ilabel == 0 && final_arc.olabel == 0) in Final() [all …]
|
D | test-properties.h | 141 if (ilabels && ilabels->find(arc.ilabel) != ilabels->end()) { in ComputeProperties() 149 if (arc.ilabel != arc.olabel) { in ComputeProperties() 153 if (arc.ilabel == 0 && arc.olabel == 0) { in ComputeProperties() 157 if (arc.ilabel == 0) { in ComputeProperties() 166 if (arc.ilabel < prev_arc.ilabel) { in ComputeProperties() 190 ilabels->insert(arc.ilabel); in ComputeProperties()
|
D | encode.h | 65 : ilabel(ilabel_), olabel(olabel_), weight(weight_) {} in Tuple() 67 : ilabel(tuple.ilabel), olabel(tuple.olabel), weight(tuple.weight) {} in Tuple() 69 Label ilabel; member 78 return (x->ilabel == y->ilabel && in operator() 98 size_t hash = x->ilabel; in operator() 132 const Tuple tuple(arc.ilabel, in Encode() 147 const Tuple tuple(arc.ilabel, in GetLabel() 225 WriteType(strm, tuple->ilabel); in Write() 265 ReadType(strm, &tuple->ilabel); in Read() 437 if (arc.ilabel == 0) return arc; in operator() [all …]
|
D | equal.h | 75 if (arc1.ilabel != arc2.ilabel) { 79 << ", ilabel1 = " << arc1.ilabel 80 << ", ilabel2 = " << arc2.ilabel;
|
D | arcfilter.h | 44 return arc.ilabel == 0 && arc.olabel == 0; in operator() 54 return arc.ilabel == 0; in operator() 82 Label label = match_input_ ? arc.ilabel : arc.olabel; in operator()
|
D | state-map.h | 497 if (x.ilabel < y.ilabel) return true; in operator() 498 if (x.ilabel > y.ilabel) return false; in operator() 509 return (x.ilabel == y.ilabel && in operator() 572 if (x.ilabel < y.ilabel) return true; in operator() 573 if (x.ilabel > y.ilabel) return false; in operator() 584 return (x.ilabel == y.ilabel && in operator()
|
D | matcher.h | 164 swap(loop_.ilabel, loop_.olabel); 270 aiter_->Value().ilabel : aiter_->Value().olabel; in Done() 338 aiter_->Value().ilabel : aiter_->Value().olabel; in Search() 347 label = match_type_ == MATCH_INPUT ? aiter_->Value().ilabel : in Search() 363 aiter_->Value().ilabel : aiter_->Value().olabel; in Search() 479 if (rho_arc_.ilabel == rho_label_) in Value() 480 rho_arc_.ilabel = rho_match_; in Value() 484 rho_arc_.ilabel = rho_match_; in Value() 657 if (sigma_arc_.ilabel == sigma_label_) in Value() 658 sigma_arc_.ilabel = sigma_match_; in Value() [all …]
|
D | verify.h | 65 if (!allow_negative_labels && arc.ilabel < 0) { 69 } else if (isyms && isyms->Find(arc.ilabel) == "") { 70 LOG(ERROR) << "Verify: Fst input label ID " << arc.ilabel
|
D | vector-fst.h | 108 if (arcs[i].ilabel == 0) in DeleteStates() 232 if (arc.ilabel == 0) { in AddArc() 260 if (arcs[j].ilabel == 0) in DeleteArcs() 314 if (arc.ilabel == 0) in VectorFstImpl() 354 ReadType(strm, &arc.ilabel); in Read() 364 if (arc.ilabel == 0) in Read() 558 WriteType(strm, arc.ilabel); in WriteFst() 649 if (oarc.ilabel != oarc.olabel) in SetValue() 651 if (oarc.ilabel == 0) { in SetValue() 664 if (arc.ilabel != arc.olabel) { in SetValue() [all …]
|
D | minimize.h | 91 if (arc1.ilabel < arc2.ilabel) return true; in operator() 92 if (arc1.ilabel > arc2.ilabel) return false; in operator() 166 return (xarc.ilabel > yarc.ilabel); in operator() 255 Label from_label = arc.ilabel; in Split()
|
D | compact-fst.h | 295 if (arc.ilabel != kNoLabel) in CompactFstData() 314 if (compactor.Expand(i, *it).ilabel != kNoLabel) in CompactFstData() 327 if (arc.ilabel != kNoLabel) { in CompactFstData() 343 if (arc.ilabel != kNoLabel) { in CompactFstData() 557 return arc.ilabel == kNoLabel ? arc.weight : Weight::Zero(); in Final() 578 if (arc.ilabel == kNoStateId) { in NumArcs() 611 (output_epsilons ? arc.olabel : arc.ilabel); in CountEpsilons() 685 if (arc.ilabel == kNoLabel) in Expand() 1078 if (arc_.ilabel == kNoStateId) { in ArcIterator() 1225 Element Compact(StateId s, const A &arc) const { return arc.ilabel; } in Compact() [all …]
|
D | rmepsilon.h | 100 Label ilabel; member 107 : ilabel(i), olabel(o), nextstate(s) {} in Element() 114 e.ilabel * kPrime0 + in operator() 124 return (e1.ilabel == e2.ilabel) && (e1.olabel == e2.olabel) in operator() 189 Element element(arc.ilabel, arc.olabel, arc.nextstate); in Expand() 247 if (aiter.Value().ilabel != 0 || aiter.Value().olabel != 0) in RmEpsilon()
|
D | compose-filter.h | 262 else if (arc2->ilabel == kNoLabel) in FilterArc() 344 if (arc2->ilabel == kNoLabel) in FilterArc() 437 if (arc2->ilabel == kNoLabel) // Epsilon on Fst1 in FilterArc() 514 arc1->ilabel = arc2->ilabel; in FilterArc() 515 if (arc2->ilabel == kNoLabel) in FilterArc()
|
D | label-reachable.h | 220 arc.ilabel = Relabel(arc.ilabel); in Relabel() 328 Label label = aiter_input ? arc.ilabel : arc.olabel; in Reach() 421 Label label = data_->ReachInput() ? arc.ilabel : arc.olabel; in TransformFst() 520 aiter->Value().ilabel : aiter->Value().olabel; in LowerBound() 529 label = aiter_input ? aiter->Value().ilabel : aiter->Value().olabel; in LowerBound()
|
D | lookahead-filter.h | 296 Label &labela = LookAheadOutput() ? arca->olabel : arca->ilabel; in LookAheadFilterArc() 549 Label &labela = LookAheadOutput() ? arca->olabel : arca->ilabel; in PushedLabelFilterArc() 550 const Label &labelb = LookAheadOutput() ? arcb->ilabel : arcb->olabel; in PushedLabelFilterArc() 573 Label &labela = LookAheadOutput() ? arca->olabel : arca->ilabel; in PushLabelFilterArc() 574 const Label &labelb = LookAheadOutput() ? arcb->olabel : arcb->ilabel; in PushLabelFilterArc() 585 labela = LookAheadOutput() ? larc.ilabel : larc.olabel; in PushLabelFilterArc() 586 arcb->ilabel = larc.ilabel; // Yes, go forward on that arc, in PushLabelFilterArc()
|
D | cache.h | 231 if (arc.ilabel == 0) { in AddArc() 266 if (arc.ilabel == 0) in SetArcs() 291 if (arcs[j].ilabel == 0) in DeleteArcs() 791 if (oarc.ilabel != oarc.olabel) in SetValue() 793 if (oarc.ilabel == 0) { in SetValue() 806 if (arc.ilabel != arc.olabel) { in SetValue() 810 if (arc.ilabel == 0) { in SetValue()
|
D | relabel.h | 84 input_map.find(arc.ilabel); in Relabel() 87 FSTERROR() << "Input symbol id " << arc.ilabel in Relabel() 92 arc.ilabel = it->second; in Relabel() 350 input_map_.find(arc.ilabel); in Expand() 351 if (it != input_map_.end()) { arc.ilabel = it->second; } in Expand()
|
D | properties.h | 413 if (arc.ilabel != arc.olabel) { in AddArcProperties() 417 if (arc.ilabel == 0) { in AddArcProperties() 430 if (prev_arc->ilabel > arc.ilabel) { in AddArcProperties()
|
/external/openfst/src/include/fst/extensions/pdt/ |
D | compose.h | 56 loop_.ilabel = kNoLabel; in matcher_() 59 loop_.ilabel = 0; in matcher_() 251 matcher_.Value().ilabel : matcher_.Value().olabel; in NextOpenParen() 266 matcher_.Value().ilabel : matcher_.Value().olabel; in NextCloseParen() 358 if (arc1->olabel == kNoLabel && arc2->ilabel) { // arc2 parentheses in FilterArc() 360 arc1->ilabel = arc2->ilabel; in FilterArc() 361 } else if (arc2->ilabel) { in FilterArc() 362 arc2->olabel = arc1->ilabel; in FilterArc() 364 return FilterParen(arc2->ilabel, f1, f2); in FilterArc() 365 } else if (arc2->ilabel == kNoLabel && arc1->olabel) { // arc1 parentheses in FilterArc() [all …]
|
D | shortest-path.h | 510 = paren_id_map_.find(arc.ilabel); in Init() 513 if (arc.ilabel == parens_[paren_id].first) { // Open paren in Init() 578 = paren_id_map_.find(arc.ilabel); in ProcArcs() 581 if (arc.ilabel == parens_[paren_id].first) in ProcArcs() 698 if (arc.ilabel == parens_[paren_id].first) { // open paren in GetPath() 705 arc.ilabel = arc.olabel = 0; in GetPath() 743 = paren_id_map_.find(arc.ilabel); in GetPathArc() 746 bool arc_open_paren = arc.ilabel == parens_[arc_paren_id].first; in GetPathArc()
|
/external/openfst/src/test/ |
D | fst_test.h | 81 CHECK_EQ(arc.ilabel, na); in TestBase() 86 CHECK(matcher.Find(arc.ilabel)); in TestBase() 87 CHECK_EQ(matcher.Value().ilabel, arc.ilabel); in TestBase() 98 CHECK_EQ(matcher.Value().ilabel, kNoLabel); // implicit epsilon loop in TestBase() 138 arc.ilabel = 0; in TestMutable() 141 CHECK_EQ(arc.ilabel, 0); in TestMutable() 143 arc.ilabel = na; in TestMutable()
|
D | fst_test.cc | 38 ilabel(i), olabel(o), weight(w), nextstate(s) {} in CustomArc() 46 Label ilabel; // Transition input label member 64 return make_pair(arc.ilabel, arc.weight); in Compact()
|
/external/openfst/src/include/fst/script/ |
D | compile-impl.h | 97 arc.ilabel = StrToILabel(col[2]); 98 arc.olabel = arc.ilabel; 104 arc.ilabel = StrToILabel(col[2]); 106 arc.olabel = arc.ilabel; 116 arc.ilabel = StrToILabel(col[2]);
|
/external/openfst/src/include/fst/extensions/ngram/ |
D | ngram-fst.h | 315 if (aiter.Value().ilabel != 0) break; in NGramFstImpl() 327 label_queue.push(make_pair(aiter.Value().nextstate, aiter.Value().ilabel)); in NGramFstImpl() 338 if (arc.ilabel != 0) { in NGramFstImpl() 374 if (arc.ilabel == 0) { in NGramFstImpl() 473 context_words[context_arc] = arc.ilabel; in NGramFstImpl() 483 if (arc.ilabel != 0) { in NGramFstImpl() 484 future_words[future_arc] = arc.ilabel; in NGramFstImpl() 762 swap(loop_.ilabel, loop_.olabel); in NGramFstMatcher() 771 swap(loop_.ilabel, loop_.olabel); 807 arc_.ilabel = arc_.olabel = 0; in Find_() [all …]
|