Searched refs:kNoLabel (Results 1 - 25 of 33) sorted by relevance

12

/external/openfst/src/include/fst/
H A Dmatcher.h70 // // Returns true if a match found. kNoLabel matches any
134 // Arc(kNoLabel, 0, Weight::One(), current_state) as well as any
136 // Arc(0, kNoLabel, Weight::One(), current_state) is instead matched.
155 match_label_(kNoLabel),
157 loop_(kNoLabel, 0, Weight::One(), kNoStateId),
179 match_label_(kNoLabel),
232 match_label_ = kNoLabel;
236 match_label_ = match_label == kNoLabel ? 0 : match_label;
250 match_label_ = kNoLabel;
389 // kNoLabel, thi
403 RhoMatcher(const FST &fst, MatchType match_type, Label rho_label = kNoLabel, MatcherRewriteMode rewrite_mode = MATCHER_REWRITE_AUTO, M *matcher = 0) argument
577 SigmaMatcher(const FST &fst, MatchType match_type, Label sigma_label = kNoLabel, MatcherRewriteMode rewrite_mode = MATCHER_REWRITE_AUTO, M *matcher = 0) argument
766 PhiMatcher(const FST &fst, MatchType match_type, Label phi_label = kNoLabel, bool phi_loop = true, MatcherRewriteMode rewrite_mode = MATCHER_REWRITE_AUTO, M *matcher = 0) argument
[all...]
H A Darcfilter.h92 CompactSet<Label, kNoLabel> labels_;
H A Dlabel-reachable.h52 final_label_(kNoLabel) {}
67 if (final_label_ == kNoLabel)
68 final_label_ = label2index_[kNoLabel];
324 Label reach_label = kNoLabel;
393 // includes kNoLabel that is used internally for super-final
406 // final state is redirected via a transition labeled with kNoLabel
407 // to a new kNoLabel-specific final state. Creates super-initial
437 if (label2state_.find(kNoLabel) == label2state_.end()) {
438 label2state_[kNoLabel] = ons;
442 Arc arc(kNoLabel, kNoLabe
[all...]
H A Dcompose-filter.h259 if (arc1->olabel == kNoLabel)
262 else if (arc2->ilabel == kNoLabel)
344 if (arc2->ilabel == kNoLabel)
347 else if (arc1->olabel == kNoLabel)
437 if (arc2->ilabel == kNoLabel) // Epsilon on Fst1
442 else if (arc1->olabel == kNoLabel) // Epsilon on Fst2
513 if (arc1->olabel == kNoLabel)
515 if (arc2->ilabel == kNoLabel)
H A Dlookahead-filter.h471 return FilterState(filter_.Start(), FilterState2(kNoLabel));
488 if (flabel != kNoLabel) { // Have a lookahead label?
497 FilterState2(kNoLabel));
501 if (flabel != kNoLabel) // Have a lookahead label?
510 return FilterState(f1, FilterState2(kNoLabel));
524 if (flabel != kNoLabel)
552 if (labelb != kNoLabel) {
577 return FilterState(f1, FilterState2(kNoLabel));
580 return FilterState(f1, FilterState2(kNoLabel));
582 Arc larc(kNoLabel, kNoLabe
[all...]
H A Dcompact-fst.h55 // i.e. ilabel = olabel = kNoLabel and nextstate = kNoStateId.
249 compacts_[pos++] = compactor.Compact(s, A(kNoLabel, kNoLabel,
295 if (arc.ilabel != kNoLabel)
314 if (compactor.Expand(i, *it).ilabel != kNoLabel)
318 compacts_[i] = compactor.Compact(i, Arc(kNoLabel, kNoLabel,
327 if (arc.ilabel != kNoLabel) {
343 if (arc.ilabel != kNoLabel) {
550 Arc arc(kNoLabel, kNoLabe
[all...]
H A Dshortest-path.h129 arc_parent.push_back(Arc(kNoLabel, kNoLabel, Weight::Zero(), kNoStateId));
133 arc_parent.push_back(Arc(kNoLabel, kNoLabel, Weight::Zero(), kNoStateId));
163 arc_parent.push_back(Arc(kNoLabel, kNoLabel, Weight::Zero(),
H A Dstring.h45 Label unknown_label = kNoLabel,
128 if ((n == -1) && (unknown_label_ != kNoLabel))
44 StringCompiler(TokenType type, const SymbolTable *syms = 0, Label unknown_label = kNoLabel, bool allow_negative = false) argument
H A Dclosure.h66 if (start != kNoLabel)
H A Dencode.h145 // Given an arc, look up its encoded label. Returns kNoLabel if not found.
152 return kNoLabel;
452 return A(kNoLabel, kNoLabel, Weight::NoWeight(), arc.nextstate);
H A Ddifference.h96 copts.matcher1 = new R(fst1, MATCH_NONE, kNoLabel, MATCHER_REWRITE_ALWAYS,
H A Dlookahead-matcher.h142 prefix_arc_(kNoLabel, kNoLabel, Weight::One(), kNoStateId) {}
358 if (matcher_.Find(kNoLabel)) {
371 Label label = kNoLabel;
H A Dreplace.h293 : root(kNoLabel),
1248 loop_(fst::kNoLabel, 0, A::Weight::One(), fst::kNoStateId) {
1260 loop_(fst::kNoLabel, 0, A::Weight::One(), fst::kNoStateId) {
1351 if (label_ == 0 || label_ == kNoLabel) {
1359 found = current_matcher_->Find(kNoLabel) || final_arc_ || found;
H A Drelabel.h86 if (it->second == kNoLabel) {
98 if (it->second == kNoLabel) {
H A Dreplace-util.h201 nonterminal_array_.push_back(kNoLabel);
224 nonterminal_array_.push_back(kNoLabel);
/external/openfst/src/include/fst/extensions/pdt/
H A Dpdt.h59 : parens_(parens), min_paren_(kNoLabel), max_paren_(kNoLabel) {
65 if (min_paren_ == kNoLabel || p.first < min_paren_)
70 if (max_paren_ == kNoLabel || p.first > max_paren_)
86 if (min_paren_ == kNoLabel || label < min_paren_ || label > max_paren_)
H A Dreplace.h68 Label max_label = kNoLabel;
79 vector<StateId> fst_start(ifst_array.size(), kNoLabel);
109 if (max_label == kNoLabel || arc.olabel > max_label)
161 Label open_paren = kNoLabel, close_paren = kNoLabel;
H A Dcompose.h31 // Return paren arcs for Find(kNoLabel).
56 loop_.ilabel = kNoLabel;
60 loop_.olabel = kNoLabel;
167 CompactSet<Label, kNoLabel> open_parens_;
170 CompactSet<Label, kNoLabel> close_parens_;
190 if (match_label == kNoLabel && (flags_ & kParenList)) {
191 if (open_parens_.LowerBound() != kNoLabel) {
196 if (close_parens_.LowerBound() != kNoLabel) {
228 if (close_parens_.LowerBound() != kNoLabel) {
233 done_ = !matcher_.Find(kNoLabel);
[all...]
H A Dshortest-path.h58 // (c) Parent().state is kNoLabel for the 'start' state.
94 : paren_id(kNoLabel), src_start(kNoStateId), dest_start(kNoStateId) {}
115 paren_id(kNoLabel),
120 int16 paren_id; // If parent arc has paren, paren ID, o.w. kNoLabel
126 paren_(kNoLabel, kNoStateId, kNoStateId),
317 while (s.state != kNoLabel) {
323 if (p.start != start && p.start != kNoLabel) { // entering sub-subgraph
348 = Arc(kNoLabel, kNoLabel, Weight::Zero(), kNoStateId);
652 Relax(s, s, arc, w, kNoLabel);
[all...]
/external/srec/tools/thirdparty/OpenFst/fst/lib/
H A Dtest-properties.h124 Arc prev_arc(kNoLabel, kNoLabel, Weight::One(), 0);
160 if (prev_arc.ilabel != kNoLabel && arc.ilabel < prev_arc.ilabel) {
164 if (prev_arc.olabel != kNoLabel && arc.olabel < prev_arc.olabel) {
H A Dshortest-path.h99 arc_parent.push_back(Arc(kNoLabel, kNoLabel, Weight::Zero(), kNoStateId));
103 arc_parent.push_back(Arc(kNoLabel, kNoLabel, Weight::Zero(), kNoStateId));
120 arc_parent.push_back(Arc(kNoLabel, kNoLabel, Weight::Zero(),
H A Dclosure.h58 if (start != kNoLabel)
/external/openfst/src/test/
H A Dfst_test.cc68 return p.first == kNoLabel ?
69 Arc(kNoLabel, kNoLabel, p.second, kNoStateId) :
H A Dfst_test.h96 CHECK(!matcher.Find(kNoLabel)); // no explicit epsilons
98 CHECK_EQ(matcher.Value().ilabel, kNoLabel); // implicit epsilon loop
/external/openfst/src/include/fst/extensions/far/
H A Dcompile-strings.h190 typename Arc::Label unknown_label = kNoLabel;
202 if (unknown_label == kNoLabel) {

Completed in 1605 milliseconds

12