/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 | 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 | 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 …]
|
/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
D | arc.h | 36 : ilabel(i), olabel(o), weight(w), nextstate(s) {} in StdArc() 45 Label ilabel; // Transition input label member 60 : ilabel(i), olabel(o), weight(w), nextstate(s) {} in LogArc() 69 Label ilabel; // Transition input label member 85 : ilabel(i), olabel(o), weight(w), nextstate(s) {} in StringArc() 98 Label ilabel; // Transition input label variable 117 : ilabel(i), olabel(o), weight(w), nextstate(s) {} in GallicArc() 120 : ilabel(arc.ilabel), olabel(arc.ilabel), in GallicArc() 132 Label ilabel; // Transition input label member 148 : ilabel(i), olabel(o), weight(w), nextstate(s) {} in ReverseArc() [all …]
|
D | arcsum.h | 31 if (x.ilabel < y.ilabel) return true; in operator() 32 if (x.ilabel > y.ilabel) return false; in operator() 46 return (x.ilabel == y.ilabel && in operator()
|
D | map.h | 108 CHECK(final_arc.ilabel == 0 && final_arc.olabel == 0); in Map() 115 if (final_arc.ilabel != 0 || final_arc.olabel != 0) { in Map() 133 if (final_arc.ilabel != 0 || final_arc.olabel != 0 || in Map() 135 fst->AddArc(s, A(final_arc.ilabel, final_arc.olabel, in Map() 191 CHECK(final_arc.ilabel == 0 && final_arc.olabel == 0); in Map() 197 if (final_arc.ilabel != 0 || final_arc.olabel != 0) { in Map() 213 if (final_arc.ilabel != 0 || final_arc.olabel != 0 || in Map() 215 ofst->AddArc(s, B(final_arc.ilabel, final_arc.olabel, in Map() 308 CHECK(final_arc.ilabel == 0 && final_arc.olabel == 0); in Final() 318 if (final_arc.ilabel == 0 && final_arc.olabel == 0) in Final() [all …]
|
D | test-properties.h | 138 if (ilabels && ilabels->find(arc.ilabel) != ilabels->end()) { in ComputeProperties() 146 if (arc.ilabel != arc.olabel) { in ComputeProperties() 150 if (arc.ilabel == 0 && arc.olabel == 0) { in ComputeProperties() 154 if (arc.ilabel == 0) { in ComputeProperties() 162 if (prev_arc.ilabel != kNoLabel && arc.ilabel < prev_arc.ilabel) { in ComputeProperties() 184 ilabels->insert(arc.ilabel); in ComputeProperties()
|
D | encode.h | 50 : ilabel(ilabel_), olabel(olabel_), weight(weight_) {} in Tuple() 52 : ilabel(tuple.ilabel), olabel(tuple.olabel), weight(tuple.weight) {} in Tuple() 54 Label ilabel; member 63 return (x->ilabel == y->ilabel && in operator() 84 int lshift = x->ilabel % kPrime; in operator() 86 size_t hash = x->ilabel << lshift; in operator() 113 const Tuple tuple(arc.ilabel, in Encode() 138 WriteType(strm, tuple->ilabel); in Write() 166 ReadType(strm, &tuple->ilabel); in Read() 248 table_->Decode(arc.ilabel); in operator() [all …]
|
D | equal.h | 72 if (arc1.ilabel != arc2.ilabel) { in Equal() 76 << ", ilabel1 = " << arc1.ilabel in Equal() 77 << ", ilabel2 = " << arc2.ilabel; in Equal()
|
D | compose.h | 435 arc.ilabel = arcb.ilabel; in AddArc() 441 arc.ilabel = arca.ilabel; in AddArc() 486 Label match_labela = find_input ? arca.ilabel : arca.olabel; in OrderedExpand() 497 Label labelb = find_input ? arcb.olabel : arcb.ilabel; in OrderedExpand() 511 Label match_labelb = find_input ? arcb.olabel : arcb.ilabel; in OrderedExpand() 516 Label match_labela = find_input ? arca.ilabel : arca.olabel; in OrderedExpand() 527 Label labela = find_input ? arca.ilabel : arca.olabel; in OrderedExpand() 552 labela = find_input ? arca.ilabel : arca.olabel; in OrderedExpand() 569 arca.ilabel = match_labelb; in OrderedExpand() 574 if (arca.ilabel == kRhoLabel) in OrderedExpand() [all …]
|
D | verify.h | 62 if (arc.ilabel < 0) { in Verify() 66 } else if (isyms && isyms->Find(arc.ilabel) == "") { in Verify() 67 LOG(ERROR) << "Verify: Fst input label ID " << arc.ilabel in Verify()
|
/external/srec/srec/Semproc/src/ |
D | SemanticProcessorImpl.c | 268 …atok->ilabel, atok->ilabel!=MAXwordID?semgraph->ilabels->words[atok->ilabel]:"max", atok->olabel… in checkpath_forwardByWordID() 273 if (atok->ilabel < semgraph->ilabels->num_slots && atok->ilabel != WORD_EPSILON_LABEL && in checkpath_forwardByWordID() 274 wordmap_whether_in_rule(semgraph->ilabels, *currentWord, atok->ilabel)) in checkpath_forwardByWordID() 277 …_tokens_find_ilabel(semgraph->arc_token_list, semgraph->arcs_for_slot[atok->ilabel], *currentWord); in checkpath_forwardByWordID() 281 … PLogError(L("ESR_INVALID_STATE: finding wdid %d in slot %d"), *currentWord, atok->ilabel); in checkpath_forwardByWordID() 282 …for (a = semgraph->arcs_for_slot[atok->ilabel]; 0 && a; a = ARC_TOKEN_PTR(semgraph->arc_token_list… in checkpath_forwardByWordID() 284 PLogError(L("a %x ilabel %d olabel %d"), a, a->ilabel, a->olabel); in checkpath_forwardByWordID() 291 else if (*currentWord != MAXwordID && atok->ilabel == *currentWord) in checkpath_forwardByWordID() 296 else if (atok->ilabel == WORD_EPSILON_LABEL) /* more eps transitions */ in checkpath_forwardByWordID() 307 atok->ilabel, semgraph->ilabels->words[atok->ilabel], atok->olabel); in checkpath_forwardByWordID() [all …]
|
D | SemanticGraphImpl.c | 278 wordID ilabel = 0; in SR_SemanticGraph_LoadFromTextFiles() local 429 ilabel = wordmap_find_index(ilabels, iword); in SR_SemanticGraph_LoadFromTextFiles() 464 ilabel = MAXwordID; in SR_SemanticGraph_LoadFromTextFiles() 478 atoken->ilabel = ilabel; in SR_SemanticGraph_LoadFromTextFiles() 648 if (atoken->ilabel != WORD_EPSILON_LABEL) in sr_semanticgraph_get_type() 659 if (atoken->ilabel != expected_ilabel) in sr_semanticgraph_get_type() 670 if (atoken->ilabel != WORD_EPSILON_LABEL && in sr_semanticgraph_get_type() 671 !(atoken->ilabel == MAXwordID && atoken->olabel == MAXwordID)) in sr_semanticgraph_get_type() 732 if (atok->ilabel == i) break; in sr_semanticgraph_saveV2() 801 arc_token* arc_tokens_find_ilabel(arc_token* base, arc_token* arc_token_list, wordID ilabel) in arc_tokens_find_ilabel() argument [all …]
|
/external/srec/srec/crec/ |
D | astar.c | 86 root_arc.ilabel = root_arc.olabel = 0; in get_arc_for_word() 95 if (atoken->ilabel == word) in get_arc_for_word() 97 else if (atoken->ilabel == WORD_EPSILON_LABEL) in get_arc_for_word() 101 if (tmp->ilabel == word) in get_arc_for_word() 104 else if (atoken->ilabel < wmap->num_slots) in get_arc_for_word() 106 if (wordmap_whether_in_rule(wmap, word, atoken->ilabel)) in get_arc_for_word() 118 …else if (tmp->first_next_arc == ARC_TOKEN_NULL && (tmp->ilabel == MAXwordID || tmp->ilabel == term… in get_arc_for_word() 126 if (tmp->ilabel == MAXwordID && tmp->first_next_arc == ARC_TOKEN_NULL) in get_arc_for_word() 141 if (tmp->ilabel == WORD_EPSILON_LABEL && tmp->next_token_index == ARC_TOKEN_NULL) in get_arc_for_word() 146 printf(" W%d(%s)", tmp->ilabel, tmp->ilabel != MAXwordID ? wmap->words[tmp->ilabel] : ""); in get_arc_for_word() [all …]
|
D | srec_context.c | 66 #define IS_SILENCE_ILABEL(ilabel,context) (ilabel >= context->hmm_ilabel_offset+EPSILON_OFFSET && i… argument 243 if(context->FSMarc_list[i].ilabel == WORD_BOUNDARY) in fst_set_wb_costs() 299 char* hmm_name(modelID ilabel, modelID hmm_ilabel_offset, char* buf) in hmm_name() argument 301 if (ilabel == EPSILON_LABEL) in hmm_name() 303 else if (ilabel == WORD_BOUNDARY) in hmm_name() 305 else if (ilabel == PHONE_BOUNDARY) in hmm_name() 308 sprintf(buf, "hmm%03d", ilabel - hmm_ilabel_offset); in hmm_name() 1053 atoken->ilabel = hmm_number(ilabel_str, fst->hmm_ilabel_offset); in FST_LoadGraph() 1056 atoken->ilabel = fst->hmm_ilabel_offset + SLOTLOOP_OFFSET; in FST_LoadGraph() 1060 atoken->ilabel = wordmap_find_index(fst->ilabels, ilabel_str); in FST_LoadGraph() [all …]
|
/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 …]
|
/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()
|
/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/srec/tools/grxmlcompile/ |
D | grxmlcompile.cpp | 367 if( arc.ilabel >= max_ilabels || in FstMergeOLabelsToILabels() 368 (float)arc.ilabel + ((float)max_ilabels)*arc.olabel > INT_MAX) { in FstMergeOLabelsToILabels() 372 arc.ilabel = arc.ilabel + max_ilabels * arc.olabel; in FstMergeOLabelsToILabels() 387 if( aiter.Value().ilabel > max_ilabel) in FstMergeOLabelsToILabels_GetMax() 388 max_ilabel = aiter.Value().ilabel; in FstMergeOLabelsToILabels_GetMax() 407 arc.olabel = arc.ilabel / max_ilabels; in FstSplitOLabelsFromILabels() 408 arc.ilabel = arc.ilabel - arc.olabel*max_ilabels; in FstSplitOLabelsFromILabels() 430 if(arc.ilabel == from_ilabel) { in FstReplaceILabel() 431 arc.ilabel = into_ilabel; in FstReplaceILabel() 467 …std::cout << "info: FstPushSlotLikeOLabels() at state " << s << " arc ilabel " << arc.ilabel << " … in FstPushSlotLikeOLabels() [all …]
|