Home
last modified time | relevance | path

Searched refs:ilabels (Results 1 – 8 of 8) sorted by relevance

/external/srec/tools/thirdparty/OpenFst/fst/lib/
Dtest-properties.h117 hash_set<Label> *ilabels = 0; in ComputeProperties() local
129 ilabels = new hash_set<Label>; in ComputeProperties()
138 if (ilabels && ilabels->find(arc.ilabel) != ilabels->end()) { in ComputeProperties()
183 if (ilabels) in ComputeProperties()
184 ilabels->insert(arc.ilabel); in ComputeProperties()
209 delete ilabels; in ComputeProperties() local
/external/srec/tools/test_g2g/
Dtest_g2g.c195 modelID ilabels[128], num_ilabels; in CheckG2G() local
287 ilabels[num_ilabels++] = ilabels_preceding[num_ilabels_preceding-1-j]; in CheckG2G()
289 ilabels[num_ilabels++] = ilabels_following[j]; in CheckG2G()
290 if(ilabels[num_ilabels-1] == WORD_BOUNDARY) in CheckG2G()
293 if(ilabels[j]<fst->hmm_ilabel_offset) { in CheckG2G()
297 ilabels[j] = ilabels[j] - (labelID)fst->hmm_ilabel_offset; in CheckG2G()
301 pfprintf(PSTDOUT, " %d", ilabels[j]); in CheckG2G()
308 rc = find_phonemes_for_ihmms( ca_arbdata, ilabels, num_ilabels); in CheckG2G()
312 if(p4pTable[ ilabels[j]]<0) { in CheckG2G()
314 ilabels[j] = MAXmodelID; in CheckG2G()
[all …]
/external/srec/srec/Semproc/src/
DSemanticGraphImpl.c88 ESR_ReturnCode sr_semanticgraph_loadV2(SR_SemanticGraphImpl* impl, wordmap* ilabels, PFile* fp);
92 ESR_ReturnCode SR_SemanticGraph_LoadFromImage(SR_SemanticGraph* self, wordmap* ilabels, const LCHAR… in SR_SemanticGraph_LoadFromImage() argument
138 rc = sr_semanticgraph_loadV2(impl, ilabels, fp); in SR_SemanticGraph_LoadFromImage()
167 ESR_ReturnCode sr_semanticgraph_loadV2(SR_SemanticGraphImpl* impl, wordmap* ilabels, PFile* fp) in sr_semanticgraph_loadV2() argument
225 impl->ilabels = ilabels; in sr_semanticgraph_loadV2()
266 ESR_ReturnCode SR_SemanticGraph_LoadFromTextFiles(SR_SemanticGraph* self, wordmap* ilabels, const L… in SR_SemanticGraph_LoadFromTextFiles() argument
296 semgraph->ilabels = ilabels; in SR_SemanticGraph_LoadFromTextFiles()
429 ilabel = wordmap_find_index(ilabels, iword); in SR_SemanticGraph_LoadFromTextFiles()
454 olabel = wordmap_find_index(ilabels, oword); in SR_SemanticGraph_LoadFromTextFiles()
584 ESR_ReturnCode SR_SemanticGraph_Load(SR_SemanticGraph* self, wordmap* ilabels, const LCHAR* basenam… in SR_SemanticGraph_Load() argument
[all …]
DSemanticProcessorImpl.c86 …_partial_path_print(sem_partial_path* path, sem_partial_path* paths, int npaths, wordmap* ilabels);
268 …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()
307 atok->ilabel, semgraph->ilabels->words[atok->ilabel], atok->olabel); in checkpath_forwardByWordID()
322 …sem_partial_path_print(pp_branch, &sem_partial_paths[0], MAX_SEM_PARTIAL_PATHS, semgraph->ilabels); in checkpath_forwardByWordID()
349 atok->ilabel, semgraph->ilabels->words[atok->ilabel], atok->olabel); in checkpath_forwardByWordID()
375 …atok->ilabel, atok->ilabel!=MAXwordID?semgraph->ilabels->words[atok->ilabel]:"max", atok->olabel… in checkpath_forward()
380 wdID = wordmap_find_index(semgraph->ilabels, firstWord(transp)); in checkpath_forward()
382 if (atok->ilabel < semgraph->ilabels->num_slots && atok->ilabel != WORD_EPSILON_LABEL && in checkpath_forward()
[all …]
/external/srec/srec/Semproc/include/
DSR_SemanticGraphImpl.h54 wordmap* ilabels; member
126 SREC_SEMPROC_API ESR_ReturnCode SR_SemanticGraph_Load(SR_SemanticGraph* self, wordmap* ilabels, con…
DSR_SemanticGraph.h62 …ESR_ReturnCode(*load)(struct SR_SemanticGraph_t* self, wordmap* ilabels, const LCHAR* basename, in…
/external/srec/srec/crec/
Dsrec_context.c183 rc = FST_LoadGraph(context, context->ilabels, context->olabels, num_words_to_add, fp); in FST_LoadContext()
215 FST_UnloadWordMap(&context->ilabels); in FST_UnloadContext()
966 fst->ilabels = imap; in FST_LoadGraph()
967 fst->hmm_ilabel_offset = wordmap_find_index(fst->ilabels, "hmm0"); in FST_LoadGraph()
972 fst->ilabels = (wordmap*)CALLOC_CLR(1, sizeof(wordmap), "srec.graph.imap"); in FST_LoadGraph()
973 fst->ilabels->num_words = fst->ilabels->max_words = 0; in FST_LoadGraph()
974 fst->ilabels->words = 0; in FST_LoadGraph()
1051 if (fst->ilabels->num_words == 0) in FST_LoadGraph()
1060 atoken->ilabel = wordmap_find_index(fst->ilabels, ilabel_str); in FST_LoadGraph()
1071 …atoken->ilabel_str = (atoken->ilabel < fst->ilabels->num_words ? fst->ilabels->words[atoken->ilabe… in FST_LoadGraph()
[all …]
/external/srec/srec/include/
Dsrec_context.h136 wordmap *ilabels; /* input arc labels */ member