Home
last modified time | relevance | path

Searched refs:olabels (Results 1 – 12 of 12) sorted by relevance

/external/srec/tools/thirdparty/OpenFst/fst/lib/
Dtest-properties.h118 hash_set<Label> *olabels = 0; in ComputeProperties() local
131 olabels = new hash_set<Label>; in ComputeProperties()
142 if (olabels && olabels->find(arc.olabel) != olabels->end()) { in ComputeProperties()
185 if (olabels) in ComputeProperties()
186 olabels->insert(arc.olabel); in ComputeProperties()
210 delete olabels; in ComputeProperties() local
/external/srec/tools/test_g2g/
Dtest_g2g.c227 fst->olabels->num_words, fst->olabels->max_words, in CheckG2G()
228 fst->olabels->next_chars-fst->olabels->chars, in CheckG2G()
229 fst->olabels->max_chars, in CheckG2G()
240 if(wordid >= fst->olabels->num_words) { in CheckG2G()
242 fst->olabels->num_words, wordid); in CheckG2G()
299 pfprintf(PSTDOUT, "%s (W%d) ihmms ", fst->olabels->words[wordid], wordid); in CheckG2G()
325 pfprintf(PSTDOUT, "%s ", fst->olabels->words[wordid]); in CheckG2G()
328 rc = Parse( grammar, fst->olabels->words[wordid], PSTDOUT); in CheckG2G()
333 pfprintf(PSTDOUT, "%s PASSED (on %s)\n", base, fst->olabels->words[wordid]); in CheckG2G()
/external/srec/srec/crec/
Dsrec_debug.c60 if (ftoken->word < rec->context->olabels->num_words) in print_fsmnode_token()
61 p = rec->context->olabels->words[ftoken->word]; in print_fsmnode_token()
111 if (wordids[i] < context->olabels->num_words) p = context->olabels->words[wordids[i]]; in print_fsmarc_token()
Dtext_parser.c79 wdID = wordmap_find_index(context->olabels, copy_of_word); in check_word_path()
164 wordID k, wdid = wordmap_find_index(context->olabels, p); in FST_CheckPath_Complex()
166 for (k = 1; k < context->olabels->num_slots; k++) in FST_CheckPath_Complex()
168 wdid = wordmap_find_index_in_rule(context->olabels, p, k); in FST_CheckPath_Complex()
Dsrec_context.c150 if (context->olabels == NULL) return 0; in FST_IsVoiceEnrollment()
151 if (context->olabels->num_words < 2) return 0; in FST_IsVoiceEnrollment()
152 if (strstr(context->olabels->words[1], "enroll")) return 1; in FST_IsVoiceEnrollment()
176 rc = FST_LoadWordMap(&context->olabels, num_words_to_add, fp); in FST_LoadContext()
183 rc = FST_LoadGraph(context, context->ilabels, context->olabels, num_words_to_add, fp); in FST_LoadContext()
216 FST_UnloadWordMap(&context->olabels); in FST_UnloadContext()
962 fst->olabels = omap; in FST_LoadGraph()
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()
1112 fst->beg_silence_word = wordmap_find_index(fst->olabels, "-pau-"); in FST_LoadGraph()
[all …]
Dword_lattice.c123 if (wtoken->word < rec->context->olabels->num_words) in print_word_token_backtrace()
124 p = rec->context->olabels->words[wtoken->word]; in print_word_token_backtrace()
160 if (wtoken->word < rec->context->olabels->num_words) in sprint_bword_token_backtrace()
161 p = rec->context->olabels->words[wtoken->word]; in sprint_bword_token_backtrace()
258 if (wtoken->word < rec->context->olabels->num_words) in sprint_word_token_backtrace()
259 w = rec->context->olabels->words[wtoken->word]; in sprint_word_token_backtrace()
315 if (wtoken->word < rec->context->olabels->num_words) in print_word_token()
316 p = rec->context->olabels->words[wtoken->word]; in print_word_token()
Dsrec_results.c201 return rec->context->olabels->words[choice]; in srec_nbest_get_word()
307 if (rec->context->olabels->words[wtoken->word]) in srec_nbest_get_result()
308 p = rec->context->olabels->words[wtoken->word]; in srec_nbest_get_result()
Dastar.c74 wordmap* wmap = context->olabels; in get_arc_for_word()
175 wordmap* wmap = context->olabels; in get_arc_for_word_without_slot_annotation()
957 if (rec->context->olabels->words[wtoken->word]) in print_path()
958 p = rec->context->olabels->words[wtoken->word]; in print_path()
1020 (arc && arc != (arc_token*)1) ? rec->context->olabels->words[arc->ilabel] : "NULL", in astar_draw_arc_as_dotty()
/external/srec/srec/include/
Dsrec_context.h137 wordmap *olabels; /* word labels */ member
/external/srec/tools/parseStringTest/
DparseStringTest.c119 wmap = pgrammar->syntax->synx->olabels; in Parse()
144 wmap = pgrammar->syntax->synx->olabels; in Parse()
/external/srec/srec/ca/
Dsyn_srec.c159 result = FST_DumpWordMap(fp, hSyntax->synx->olabels); in CA_DumpSyntax()
/external/srec/srec/Grammar/src/
DSR_GrammarImpl.c437 rc = impl->semgraph->load(impl->semgraph, impl->syntax->synx->olabels, filename, addWords); in SR_GrammarLoad()
697 wdids[nw] = wordmap_find_index(fst->olabels, word); in SR_GrammarAllowOnly()