Home
last modified time | relevance | path

Searched refs:ilabel (Results 1 – 25 of 41) sorted by relevance

12

/external/srec/tools/thirdparty/OpenFst/fst/lib/
Darc.h36 : 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 …]
Darcsum.h31 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()
Dmap.h108 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 …]
Dtest-properties.h138 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()
Dencode.h50 : 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 …]
Dequal.h72 if (arc1.ilabel != arc2.ilabel) { in Equal()
76 << ", ilabel1 = " << arc1.ilabel in Equal()
77 << ", ilabel2 = " << arc2.ilabel; in Equal()
Dcompose.h435 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 …]
Dvector-fst.h102 if (arcs[i].ilabel == 0) in DeleteStates()
234 if (arc.ilabel != arc.olabel) { in AddArc()
238 if (arc.ilabel == 0) { in AddArc()
254 if (parc.ilabel > arc.ilabel) { in AddArc()
294 if (arcs[j].ilabel == 0) in DeleteArcs()
341 if (arc.ilabel == 0) in VectorFstImpl()
372 ReadType(strm, &arc.ilabel); in Read()
381 if (arc.ilabel == 0) in Read()
436 WriteType(strm, arc.ilabel); in Write()
745 if (oarc.ilabel != oarc.olabel) in SetValue()
[all …]
Dverify.h62 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()
Dminimize.h84 if (arc1.ilabel < arc2.ilabel) return true; in operator()
85 if (arc1.ilabel > arc2.ilabel) return false; in operator()
153 return (xarc.ilabel > yarc.ilabel); in operator()
242 Label from_label = arc.ilabel; in Split()
Drmepsilon.h79 Label ilabel; member
86 : ilabel(i), olabel(o), nextstate(s) {} in Element()
94 e.ilabel * kPrime0 + 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()
Dreplace.h323 AddArc(s, A(arc.ilabel, arc.olabel, arc.weight, nextstate)); in Expand()
340 Label ilabel = (opts_.epsilon_on_replace) ? 0 : arc.ilabel; in Expand() local
341 AddArc(s, A(ilabel, 0, arc.weight, nt_nextstate)); in Expand()
347 AddArc(s, A(arc.ilabel, arc.olabel, arc.weight, nextstate)); in Expand()
Darcfilter.h37 return arc.ilabel == 0 && arc.olabel == 0; in operator()
Drelabel.h72 input_map.find(arc.ilabel); in Relabel()
73 if (it != input_map.end()) {arc.ilabel = it->second; } in Relabel()
281 input_map_.find(arc.ilabel); in Expand()
282 if (it != input_map_.end()) { arc.ilabel = it->second; } in Expand()
Dsynchronize.h216 if (!Empty(e.istring, arc.ilabel) && !Empty(e.ostring, arc.olabel)) { in Expand()
217 const String *istring = Cdr(e.istring, arc.ilabel); in Expand()
220 AddArc(s, Arc(Car(e.istring, arc.ilabel), in Expand()
223 const String *istring = Concat(e.istring, arc.ilabel); in Expand()
Dequivalent.h197 arc_pairs[arc.ilabel].first = Util::MapState(arc.nextstate, FST1); in Equivalent()
209 arc_pairs[arc.ilabel].second = Util::MapState(arc.nextstate, FST2); in Equivalent()
Dinvert.h32 return A(arc.olabel, arc.ilabel, arc.weight, arc.nextstate); in operator()
/external/srec/srec/Semproc/src/
DSemanticProcessorImpl.c268 …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 …]
DSemanticGraphImpl.c278 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/
Dastar.c86 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 …]
Dsrec_context.c66 #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 …]
Dsrec.c386 hmm_info = &rec->context->hmm_info_for_ilabel[fsm_arc->ilabel]; in find_which_models_to_compute()
414 if (fsm_arc->ilabel != MAXlabelID) in find_which_models_to_compute()
416 hmm_info = &rec->context->hmm_info_for_ilabel[fsm_arc->ilabel]; in find_which_models_to_compute()
894 if (fsm_arc->ilabel >= EPSILON_OFFSET) in do_epsilon_updates()
912 if (fsm_arc->ilabel == WORD_BOUNDARY && cost_with_wtw >= current_word_threshold) { in do_epsilon_updates()
930 if (fsm_arc->ilabel == WORD_BOUNDARY) { in do_epsilon_updates()
1028 else if(fsm_arc->ilabel == EPSILON_LABEL) { in do_epsilon_updates()
1139 hmm_info = &rec->context->hmm_info_for_ilabel[ fsm_arc->ilabel]; in update_internal_hmm_states()
1268 labelID ilabel; in update_from_hmms_to_fsmnodes() local
1278 for (ilabel = 0; ilabel < NODE_INFO_NUMS; ilabel++) in update_from_hmms_to_fsmnodes()
[all …]
/external/srec/tools/grxmlcompile/
Dgrxmlcompile.cpp367 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 …]
Dfst-io.h117 PrintILabel(arc.ilabel); in PrintState()
250 arc.ilabel = StrToILabel(col[2]); in FstReader()
251 arc.olabel = arc.ilabel; in FstReader()
257 arc.ilabel = StrToILabel(col[2]); in FstReader()
259 arc.olabel = arc.ilabel; in FstReader()
269 arc.ilabel = StrToILabel(col[2]); in FstReader()
/external/srec/tools/test_g2g/
Dtest_g2g.c252 ilabels_following[0] = arc->ilabel; in CheckG2G()
266 if(arc->ilabel == WORD_BOUNDARY) break; in CheckG2G()
267 ilabels_preceding[num_ilabels_preceding++] = arc->ilabel; in CheckG2G()
282 ilabels_following[num_ilabels_following++] = arc->ilabel; in CheckG2G()
283 if(arc->ilabel == WORD_BOUNDARY) break; in CheckG2G()

12