Lines Matching defs:arc
26 #include "fst/lib/arc.h"
366 fst::StdArc arc = aiter.Value();
367 if( arc.ilabel >= max_ilabels ||
368 (float)arc.ilabel + ((float)max_ilabels)*arc.olabel > INT_MAX) {
372 arc.ilabel = arc.ilabel + max_ilabels * arc.olabel;
373 arc.olabel = 0;
374 aiter.SetValue( arc);
406 fst::StdArc arc = aiter.Value();
407 arc.olabel = arc.ilabel / max_ilabels;
408 arc.ilabel = arc.ilabel - arc.olabel*max_ilabels;
409 aiter.SetValue( arc);
429 fst::StdArc arc = aiter.Value();
430 if(arc.ilabel == from_ilabel) {
431 arc.ilabel = into_ilabel;
432 aiter.SetValue( arc);
461 fst::StdArc arc = aiter.Value();
462 if(arc.olabel >= myMin && arc.olabel < myMax) {
463 fst::StdArc::StateId s2 = arc.nextstate;
464 int slotId = arc.olabel;
467 std::cout << "info: FstPushSlotLikeOLabels() at state " << s << " arc ilabel " << arc.ilabel << " olabel " << arc.olabel << std::endl;
469 arc.ilabel = EPSILON_LABEL;
470 arc.olabel = EPSILON_LABEL;
471 arc.weight = 0; // zero weight
472 aiter.SetValue( arc);
498 fst::StdArc arc = aiter.Value();
499 if(arc.olabel >= myMin && arc.olabel < myMax)
500 num_pclg_arcs_using_slot[arc.olabel]++;
555 fst::StdArc arc = aiter.Value();
556 if( arc.olabel == mimicPhonemeCode) {
560 SLOT_COUNTER_OFFSET+i /*phoneme*/, 0.0, arc.nextstate));
795 // int eps_word = StrToId("eps", word_syms, "arc ilabel");
796 int pau_word = StrToId(SILENCE_PREFIX_WORD, word_syms, "arc ilabel");
797 int pau2_word = StrToId(SILENCE_SUFFIX_WORD, word_syms, "arc ilabel");