Searched refs:wmap (Results 1 – 4 of 4) sorted by relevance
/external/srec/srec/crec/ |
D | srec_context.c | 370 wordID wordmap_add_word(wordmap* wmap, const char* word); 380 wordmap* wmap; in FST_LoadWordMap() local 395 wordmap_create(&wmap, num_chars, num_words, num_words_to_add); in FST_LoadWordMap() 406 wm_wID = wordmap_add_word(wmap, word); in FST_LoadWordMap() 409 ASSERT(wmap->num_words == num_words); in FST_LoadWordMap() 413 if (!IS_SLOT_OLABEL(wmap->words[my_wID])) in FST_LoadWordMap() 416 wmap->num_slots = my_wID; in FST_LoadWordMap() 417 wordmap_setbase(wmap); in FST_LoadWordMap() 418 *pwmap = wmap; in FST_LoadWordMap() 419 if(wmap->num_slots > MAX_NUM_SLOTS) in FST_LoadWordMap() [all …]
|
D | astar.c | 74 wordmap* wmap = context->olabels; in get_arc_for_word() local 104 else if (atoken->ilabel < wmap->num_slots) in get_arc_for_word() 106 if (wordmap_whether_in_rule(wmap, word, atoken->ilabel)) in get_arc_for_word() 146 printf(" W%d(%s)", tmp->ilabel, tmp->ilabel != MAXwordID ? wmap->words[tmp->ilabel] : ""); in get_arc_for_word() 155 else if (tmp->ilabel < wmap->num_slots) in get_arc_for_word() 157 if (wordmap_whether_in_rule(wmap, word, tmp->ilabel)) in get_arc_for_word() 175 wordmap* wmap = context->olabels; in get_arc_for_word_without_slot_annotation() local 176 wordID wdid = wordmap_find_index(wmap, word); in get_arc_for_word_without_slot_annotation() 219 else if (tmp->ilabel < wmap->num_slots) in get_arc_for_word_without_slot_annotation() 221 wdid = wordmap_find_index_in_rule(wmap, word, tmp->ilabel); in get_arc_for_word_without_slot_annotation()
|
/external/srec/srec/include/ |
D | srec_context.h | 191 int FST_DumpWordMap(PFile* fp, wordmap* wmap); 222 int wordmap_whether_in_rule(wordmap* wmap, wordID word, wordID rule); 223 wordID wordmap_find_index(wordmap* wmap, const char* word); 224 wordID wordmap_find_index_in_rule(wordmap* wmap, const char* word, wordID rule); 225 wordID wordmap_find_rule_index(wordmap* wmap, const char* rule); 228 wordID wordmap_add_word(wordmap* wmap, const char* word); 229 void wordmap_reset(wordmap* wmap); 230 void wordmap_setbase(wordmap* wmap); 231 void wordmap_ceiling(wordmap* wmap); 232 wordID wordmap_add_word_in_rule(wordmap* wmap, const char* word, wordID rule);
|
/external/srec/tools/parseStringTest/ |
D | parseStringTest.c | 111 wordmap* wmap; in Parse() local 119 wmap = pgrammar->syntax->synx->olabels; in Parse() 121 for (id = 4; id < wmap->num_words; id++) in Parse() 123 trans = wmap->words[id]; in Parse() 144 wmap = pgrammar->syntax->synx->olabels; in Parse() 149 for (i = 0; i < wmap->num_words; i++) in Parse() 150 if (!strcmp(wmap->words[i], p)) in Parse() 155 if (i == wmap->num_words) in Parse()
|