Lines Matching refs:olabels

151   if (context->olabels == NULL) return 0;
152 if (context->olabels->num_words < 2) return 0;
153 if (strstr(context->olabels->words[1], "enroll")) return 1;
177 rc = FST_LoadWordMap(&context->olabels, num_words_to_add, fp);
184 rc = FST_LoadGraph(context, context->ilabels, context->olabels, num_words_to_add, fp);
217 FST_UnloadWordMap(&context->olabels);
963 fst->olabels = omap;
1063 atoken->olabel = wordmap_find_index(fst->olabels, olabel_str);
1073 atoken->olabel_str = (atoken->olabel < fst->olabels->num_words ? fst->olabels->words[atoken->olabel] : 0);
1113 fst->beg_silence_word = wordmap_find_index(fst->olabels, "-pau-");
1114 fst->end_silence_word = wordmap_find_index(fst->olabels, "-pau2-");
1115 fst->hack_silence_word = wordmap_find_index(fst->olabels, "silence");
1164 olabel = fst->olabels->words[atoken->olabel];
1223 fst->addWordCaching_lastslot_name = fst->olabels->words[fst->addWordCaching_lastslot_num];
1229 fst->addWordCaching_lastslot_num = wordmap_find_rule_index(fst->olabels, veslot);
1236 for (i = 1; i < (size_t) fst->olabels->num_slots; ++i)
1237 pfprintf(PSTDOUT, "%s, ", fst->olabels->words[i]);
1243 fst->addWordCaching_lastslot_name = fst->olabels->words[fst->addWordCaching_lastslot_num];
1322 olabel = wordmap_find_index_in_rule(fst->olabels, word, fst->addWordCaching_lastslot_num);
1325 olabel = wordmap_add_word_in_rule(fst->olabels, word, fst->addWordCaching_lastslot_num);
1580 /*fst_slot_slotnum = wordmap_find_rule_index(fst->olabels, slot);*/
1581 for (fst_slot_slotnum = 1; fst_slot_slotnum < fst->olabels->num_slots;
1588 PLogError("error: slot '%s' not found among [%d,%d] possible\n", slot, 1, fst->olabels->num_slots - 1);
1742 wordmap_reset(fst->olabels);
1795 word_label = wordmap_find_index(context->olabels, word_label_as_str);
2045 /* cannot have multiple olabels before a boundary */
2059 IF_DEBUG_WDADD(arc->olabel_str = fst->olabels->words[ arc->olabel]);
2114 /* cannot have multiple olabels! serious internal error!? */
2131 IF_DEBUG_WDADD(arc->olabel_str = fst->olabels->words[ arc->olabel]);
2526 IF_DEBUG_WDADD(atok->olabel_str = fst->olabels->words[ atoken->olabel]);
2568 IF_DEBUG_WDADD(atoken->olabel_str = fst->olabels->words[ atoken->olabel]);
2601 if(atoken->olabel>0 && atoken->olabel<fst->olabels->num_slots) break;
2643 IF_DEBUG_WDADD(atoken->olabel_str = fst->olabels->words[atoken->olabel]);
2707 fst->olabels->words[arc->olabel],
2737 size += sizeof(char*) * context->olabels->max_words;
2738 size += sizeof(char) * context->olabels->max_chars;
2741 size += sizeof(char*) * context->olabels->max_words;
2743 size += sizeof(char) * context->olabels->max_chars;
3052 if (expected_wdid != context->olabels->num_words)
3209 rc = serializeWordMapV2(context->olabels, fp);
3473 /* now save the olabels */
3474 esr_rc = deserializeWordMapV2(&fst->olabels, fp);
3500 fst->arc_token_list_len = fst->olabels->num_words + 2 - NUM_ITEMLIST_HDRWDS;
3509 for (i = 1, wdid = NUM_ITEMLIST_HDRWDS; wdid < fst->olabels->num_words; i++, wdid++)
3760 wordID num_slots = context->olabels->num_slots;