/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
D | arc.h | 36 : ilabel(i), olabel(o), weight(w), nextstate(s) {} in StdArc() 46 Label olabel; // Transition output label member 60 : ilabel(i), olabel(o), weight(w), nextstate(s) {} in LogArc() 70 Label olabel; // Transition output label member 85 : ilabel(i), olabel(o), weight(w), nextstate(s) {} in StringArc() 99 Label olabel; // Transition output label variable 117 : ilabel(i), olabel(o), weight(w), nextstate(s) {} in GallicArc() 120 : ilabel(arc.ilabel), olabel(arc.ilabel), in GallicArc() 121 weight(arc.olabel, arc.weight), nextstate(arc.nextstate) {} in GallicArc() 133 Label olabel; // Transition output label member [all …]
|
D | arcsum.h | 33 if (x.olabel < y.olabel) return true; in operator() 34 if (x.olabel < y.olabel) return false; in operator() 47 x.olabel == y.olabel && in operator()
|
D | test-properties.h | 142 if (olabels && olabels->find(arc.olabel) != olabels->end()) { in ComputeProperties() 146 if (arc.ilabel != arc.olabel) { in ComputeProperties() 150 if (arc.ilabel == 0 && arc.olabel == 0) { in ComputeProperties() 158 if (arc.olabel == 0) { in ComputeProperties() 166 if (prev_arc.olabel != kNoLabel && arc.olabel < prev_arc.olabel) { in ComputeProperties() 186 olabels->insert(arc.olabel); 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() 55 Label olabel; member 64 x->olabel == y->olabel && in operator() 87 if (encode_flags_ & kEncodeLabels) hash ^= x->olabel >> rshift; in operator() 114 flags_ & kEncodeLabels ? arc.olabel : 0, in Encode() 139 WriteType(strm, tuple->olabel); in Write() 167 ReadType(strm, &tuple->olabel); in Read() 239 flags_ & kEncodeLabels ? label : arc.olabel, in operator() 250 flags_ & kEncodeLabels ? tuple->olabel : arc.olabel, 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 | equal.h | 79 } else if (arc1.olabel != arc2.olabel) { in Equal() 83 << ", olabel1 = " << arc1.olabel in Equal() 84 << ", olabel2 = " << arc2.olabel; in Equal()
|
D | vector-fst.h | 104 if (arcs[i].olabel == 0) in DeleteStates() 234 if (arc.ilabel != arc.olabel) { in AddArc() 242 if (arc.olabel == 0) { in AddArc() 247 if (arc.olabel == 0) { in AddArc() 258 if (parc.olabel > arc.olabel) { in AddArc() 296 if (arcs[j].olabel == 0) in DeleteArcs() 343 if (arc.olabel == 0) in VectorFstImpl() 373 ReadType(strm, &arc.olabel); in Read() 383 if (arc.olabel == 0) in Read() 437 WriteType(strm, arc.olabel); in Write() [all …]
|
D | compose.h | 436 arc.olabel = arca.olabel; in AddArc() 442 arc.olabel = arcb.olabel; 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() 570 if (arca.olabel == kRhoLabel) in OrderedExpand() 571 arca.olabel = match_labelb; in OrderedExpand() [all …]
|
D | verify.h | 72 } else if (arc.olabel < 0) { in Verify() 76 } else if (osyms && osyms->Find(arc.olabel) == "") { in Verify() 77 LOG(ERROR) << "Verify: Fst output label ID " << arc.olabel in Verify()
|
D | replace.h | 190 nonterminal_hash_.find(arc.olabel); in CyclicDependencies() 193 depfst.AddArc(i - 1, A(arc.olabel, arc.olabel, Weight::One(), j)); in CyclicDependencies() 320 if (arc.olabel == 0) { // expand local fst in Expand() 323 AddArc(s, A(arc.ilabel, arc.olabel, arc.weight, nextstate)); in Expand() 327 nonterminal_hash_.find(arc.olabel); in Expand() 347 AddArc(s, A(arc.ilabel, arc.olabel, arc.weight, nextstate)); in Expand()
|
D | rmepsilon.h | 80 Label olabel; member 86 : ilabel(i), olabel(o), nextstate(s) {} in Element() 95 e.olabel * kPrime1); in operator() 106 return (e1.ilabel == e2.ilabel) && (e1.olabel == e2.olabel) in operator() 163 Element element(arc.ilabel, arc.olabel, arc.nextstate); in Expand()
|
D | arcfilter.h | 37 return arc.ilabel == 0 && arc.olabel == 0; in operator()
|
D | relabel.h | 76 it = output_map.find(arc.olabel); in Relabel() 77 if (it != output_map.end()) { arc.olabel = it->second; } in Relabel() 288 output_map_.find(arc.olabel); in Expand() 289 if (it != output_map_.end()) { arc.olabel = it->second; } in Expand()
|
D | synchronize.h | 216 if (!Empty(e.istring, arc.ilabel) && !Empty(e.ostring, arc.olabel)) { in Expand() 218 const String *ostring = Cdr(e.ostring, arc.olabel); in Expand() 221 Car(e.ostring, arc.olabel), arc.weight, d)); in Expand() 224 const String *ostring = Concat(e.ostring, arc.olabel); in Expand()
|
D | invert.h | 32 return A(arc.olabel, arc.ilabel, arc.weight, arc.nextstate); in operator()
|
D | reverse.h | 68 RevArc oarc(iarc.ilabel, iarc.olabel, iarc.weight.Reverse(), os); in Reverse()
|
D | project.h | 39 ? arc.ilabel : arc.olabel; in operator()
|
D | rmfinalepsilon.h | 75 if (arc.ilabel == 0 && arc.olabel == 0) { in RmFinalEpsilon()
|
D | arcsort.h | 295 return arc1.olabel < arc2.olabel; in operator()
|
/external/srec/tools/grxmlcompile/ |
D | grxmlcompile.cpp | 368 (float)arc.ilabel + ((float)max_ilabels)*arc.olabel > INT_MAX) { in FstMergeOLabelsToILabels() 372 arc.ilabel = arc.ilabel + max_ilabels * arc.olabel; in FstMergeOLabelsToILabels() 373 arc.olabel = 0; in FstMergeOLabelsToILabels() 407 arc.olabel = arc.ilabel / max_ilabels; in FstSplitOLabelsFromILabels() 408 arc.ilabel = arc.ilabel - arc.olabel*max_ilabels; in FstSplitOLabelsFromILabels() 462 if(arc.olabel >= myMin && arc.olabel < myMax) { in FstPushSlotLikeOLabels() 464 int slotId = arc.olabel; in FstPushSlotLikeOLabels() 467 …OLabels() at state " << s << " arc ilabel " << arc.ilabel << " olabel " << arc.olabel << std::endl; in FstPushSlotLikeOLabels() 470 arc.olabel = EPSILON_LABEL; in FstPushSlotLikeOLabels() 482 arc2.olabel = slotId; in FstPushSlotLikeOLabels() [all …]
|
D | fst-io.h | 120 PrintOLabel(arc.olabel); in PrintState() 251 arc.olabel = arc.ilabel; in FstReader() 259 arc.olabel = arc.ilabel; in FstReader() 262 arc.olabel = StrToOLabel(col[3]); in FstReader() 270 arc.olabel = StrToOLabel(col[3]); in FstReader()
|
/external/srec/srec/Semproc/src/ |
D | SemanticGraphImpl.c | 279 labelID olabel = 0; in SR_SemanticGraph_LoadFromTextFiles() local 437 olabel = (labelID) atoi(&oword[1]); in SR_SemanticGraph_LoadFromTextFiles() 438 olabel = (wordID)(olabel + semgraph->script_olabel_offset); /* the offset */ in SR_SemanticGraph_LoadFromTextFiles() 443 olabel = wordmap_find_index(semgraph->scopes_olabels, oword); in SR_SemanticGraph_LoadFromTextFiles() 445 if (olabel == MAXwordID) /* not found so add to wordmap and get new index */ in SR_SemanticGraph_LoadFromTextFiles() 446 olabel = wordmap_add_word(semgraph->scopes_olabels, oword); in SR_SemanticGraph_LoadFromTextFiles() 447 olabel = (wordID)(olabel + semgraph->scopes_olabel_offset); /* the offset */ in SR_SemanticGraph_LoadFromTextFiles() 454 olabel = wordmap_find_index(ilabels, oword); in SR_SemanticGraph_LoadFromTextFiles() 456 if (olabel == MAXwordID) /* not found so add to wordmap and get new index */ in SR_SemanticGraph_LoadFromTextFiles() 465 olabel = MAXwordID; in SR_SemanticGraph_LoadFromTextFiles() [all …]
|
D | SemanticProcessorImpl.c | 268 …tok->ilabel, atok->ilabel!=MAXwordID?semgraph->ilabels->words[atok->ilabel]:"max", atok->olabel); in checkpath_forwardByWordID() 284 PLogError(L("a %x ilabel %d olabel %d"), a, a->ilabel, a->olabel); in checkpath_forwardByWordID() 307 atok->ilabel, semgraph->ilabels->words[atok->ilabel], atok->olabel); in checkpath_forwardByWordID() 317 …else if (atokfna && atokfna->ilabel==MAXwordID && atokfna->olabel==MAXwordID && *currentWord==MAXw… in checkpath_forwardByWordID() 349 atok->ilabel, semgraph->ilabels->words[atok->ilabel], atok->olabel); in checkpath_forwardByWordID() 375 …tok->ilabel, atok->ilabel!=MAXwordID?semgraph->ilabels->words[atok->ilabel]:"max", atok->olabel); in checkpath_forward() 393 PLogError(L("a %x ilabel %d olabel %d"), a, a->ilabel, a->olabel); in checkpath_forward() 419 atok->ilabel, semgraph->ilabels->words[atok->ilabel], atok->olabel); in checkpath_forward() 428 … else if (atokfna && atokfna->ilabel==MAXwordID && atokfna->olabel==MAXwordID && *transp==0) in checkpath_forward() 460 atok->ilabel, semgraph->ilabels->words[atok->ilabel], atok->olabel); in checkpath_forward() [all …]
|
/external/srec/srec/crec/ |
D | srec_context.c | 110 wordID olabel, costdata cost, 1062 atoken->olabel = wordmap_find_index(fst->olabels, olabel_str); in FST_LoadGraph() 1072 …atoken->olabel_str = (atoken->olabel < fst->olabels->num_words ? fst->olabels->words[atoken->olabe… in FST_LoadGraph() 1145 char *ilabel, *olabel; in FST_DumpGraph() local 1163 olabel = fst->olabels->words[atoken->olabel]; in FST_DumpGraph() 1169 from_node, into_node, ilabel, olabel, atoken->cost); in FST_DumpGraph() 1175 from_node, into_node, ilabel, olabel); in FST_DumpGraph() 1195 wordID olabel = MAXwordID; in FST_AddWordToGrammar() local 1251 if (fst->FSMarc_list[arcid].olabel == fst->addWordCaching_lastslot_num) in FST_AddWordToGrammar() 1261 if (arc->olabel == fst->end_silence_word && arc->linkl_next_arc == MAXarcID) in FST_AddWordToGrammar() [all …]
|
/external/srec/srec/include/ |
D | astar.h | 63 labelID olabel; /* output label */ member
|