Lines Matching full:ilabel
66 #define IS_SILENCE_ILABEL(ilabel,context) (ilabel >= context->hmm_ilabel_offset+EPSILON_OFFSET && ilabel<context->hmm_ilabel_offset+EPSILON_OFFSET+NUM_SILENCE_HMMS)
243 if(context->FSMarc_list[i].ilabel == WORD_BOUNDARY)
299 char* hmm_name(modelID ilabel, modelID hmm_ilabel_offset, char* buf)
301 if (ilabel == EPSILON_LABEL)
303 else if (ilabel == WORD_BOUNDARY)
305 else if (ilabel == PHONE_BOUNDARY)
308 sprintf(buf, "hmm%03d", ilabel - hmm_ilabel_offset);
1053 atoken->ilabel = hmm_number(ilabel_str, fst->hmm_ilabel_offset);
1056 atoken->ilabel = fst->hmm_ilabel_offset + SLOTLOOP_OFFSET;
1060 atoken->ilabel = wordmap_find_index(fst->ilabels, ilabel_str);
1064 if(atoken->ilabel == WORD_BOUNDARY)
1071 atoken->ilabel_str = (atoken->ilabel < fst->ilabels->num_words ? fst->ilabels->words[atoken->ilabel] : 0);
1145 char *ilabel, *olabel;
1160 ilabel = fst->ilabels->num_words == 0 ?
1161 hmm_name(atoken->ilabel, fst->hmm_ilabel_offset, buf) :
1162 fst->ilabels->words[atoken->ilabel] ;
1169 from_node, into_node, ilabel, olabel, atoken->cost);
1175 from_node, into_node, ilabel, olabel);
1811 atoken->ilabel = word_label;
1893 atoken->ilabel = MAXwordID;
1912 if (tmp->ilabel == MAXwordID && tmp->first_next_arc == ARC_TOKEN_NULL)
1973 atoken->ilabel = 0;
2014 arc->ilabel = 0;
2134 static FSMarc* find_next_arc_with_ilabel(srec_context* fst, FSMnode* node, labelID ilabel, FSMarc** last)
2141 if (atoken->ilabel == ilabel)
2148 FSMarc* find_prev_arc_with_iolabels(srec_context* fst, FSMnode* node, labelID ilabel, labelID olabel, FSMarc** last)
2158 if (atoken->olabel == olabel && atoken->ilabel == ilabel)
2263 new_next_p->ilabel = atoken->ilabel;
2423 *add_tree /*->ilabel*/,
2427 /* so next_atok->ilabel == add_tree->ilabel */
2429 if (next_atoken->ilabel == WORD_BOUNDARY && *add_tree/*->ilabel*/ == WORD_BOUNDARY)
2514 atoken->ilabel = *add_tree;
2517 IF_DEBUG_WDADD(atoken->ilabel_str = fst->ilabels->words[ atoken->ilabel]);
2556 atoken->ilabel = *add_tree_late_start;
2558 if (atoken->ilabel == WORD_BOUNDARY)
2568 IF_DEBUG_WDADD(atoken->ilabel_str = fst->ilabels->words[ atoken->ilabel]);
2605 *add_tree /*->ilabel*/,
2635 atoken->ilabel = *add_tree;
2643 IF_DEBUG_WDADD(atoken->ilabel_str = fst->ilabels->words[atoken->ilabel]);
2705 fst->ilabels->words[arc->ilabel],
2899 if (pfwrite(&token->ilabel, 2, 1, fp) != 1)
2959 token->ilabel = labels[0];
3036 if (t->ilabel != WORD_EPSILON_LABEL)
3044 if (t->ilabel != expected_wdid)
3047 if (u != NULL && u->ilabel != MAXwordID)
3129 tmp[i++] = arc->ilabel;
3161 tmp[i++] = arc->ilabel;
3390 PLogError("error with arc %d->%d ilabel %d olabel %d cost %d\n", tmp[0], tmp[1], tmp[2], tmp[3], tmp[4]);
3408 atoken->ilabel = tmp[2];
3511 atli->ilabel = wdid;
3519 final->ilabel = final->olabel = 0;
3617 if (arc->ilabel >= context->hmm_ilabel_offset + EPSILON_OFFSET + NUM_SILENCE_HMMS)
3621 else if (arc->ilabel < EPSILON_OFFSET)
3628 else if (IS_SILENCE_ILABEL(arc->ilabel, context))
3671 if (IS_SILENCE_ILABEL(arc->ilabel, context) || arc->ilabel < EPSILON_OFFSET)
3733 if (IS_SILENCE_ILABEL(arc->ilabel, context) &&
3786 for (arc = &context->FSMarc_list[i]; arc->ilabel != WORD_BOUNDARY;)