Home
last modified time | relevance | path

Searched refs:token_index (Results 1 – 11 of 11) sorted by relevance

/external/srec/srec/crec/
Dpriority_q.c163 wtokenID token_index; in sanity_check_priority_q() local
166 token_index = pq->word_token_list; in sanity_check_priority_q()
167 while (token_index != MAXwordID) in sanity_check_priority_q()
169 token = &(word_token_array[token_index]); in sanity_check_priority_q()
170 token_index = token->next_token_index; in sanity_check_priority_q()
191 wtokenID token_index, return_token_index; in add_word_token_to_priority_q() local
204 token_index = pq->word_token_list; in add_word_token_to_priority_q()
205 while (token_index != MAXwordID) in add_word_token_to_priority_q()
207 token = &(word_token_array[token_index]); in add_word_token_to_priority_q()
208 printf("WORDADD PQ token %d word %d cost %d\n", token_index, token->word, token->cost); in add_word_token_to_priority_q()
[all …]
Dsrec_debug.c43 void print_fsmnode_token(srec* rec, ftokenID token_index, char* msg) in print_fsmnode_token() argument
49 if (token_index == MAXftokenID) in print_fsmnode_token()
51 printf("%sftoken %d\n", msg, token_index); in print_fsmnode_token()
54 ftoken = &rec->fsmnode_token_array[token_index]; in print_fsmnode_token()
55 …e %d cost %d word %d(%s) word_backtrace %d next_token_index %d ", msg, token_index, rec->id, rec->… in print_fsmnode_token()
66 void print_fsmnode_token_list(srec* rec, stokenID token_index, char* msg) in print_fsmnode_token_list() argument
70 while (token_index != MAXftokenID) in print_fsmnode_token_list()
72 fsmnode_token* ftoken = &rec->fsmnode_token_array[token_index]; in print_fsmnode_token_list()
73 print_fsmnode_token(rec, token_index, ""); in print_fsmnode_token_list()
74 token_index = ftoken->next_token_index; in print_fsmnode_token_list()
[all …]
Dword_lattice.c356 wtokenID token_index; local
374 token_index = wl->words_for_frame[i];
378 print_word_token_list(rec, token_index, "");
381 if (i == rec->current_search_frame && token_index != MAXwtokenID)
383 wtoken = &(rec->word_token_array[token_index]);
384 print_word_token(rec, token_index, "Final Top Choice: ");
414 wtokenID token_index; local
426 token_index = wl->words_for_frame[end_frame];
428 if (token_index == MAXwtokenID)
434 print_word_token_list(rec, token_index, "WORD TOKENS AT END\n");
[all …]
Dastar.c307 if (wtoken->end_time > word_token_array[parp->token_index].end_time) in extend_path()
319 best_extend_token = word_token_array[ parp->token_index].backtrace; in extend_path()
340 wtokenID alt_token_index = alt_extension->token_index; in extend_path()
392 extended_parp->token_index = extend_token_index; in extend_path()
486 wtokenID token_index, srec* rec, in make_partial_path() argument
496 wtoken = &rec->word_token_array[token_index]; in make_partial_path()
497 parp->token_index = token_index; in make_partial_path()
498 if (token_index != MAXwtokenID) in make_partial_path()
499 parp->word = rec->word_token_array[ token_index].word; in make_partial_path()
571 wtokenID token_index; in astar_stack_prepare() local
[all …]
Dsrec_debug.h30 void print_fsmnode_token(srec* rec, ftokenID token_index, char* msg);
31 void print_fsmnode_token_list(srec* rec, stokenID token_index, char* msg);
33 void print_fsmarc_token(srec* rec, stokenID token_index, char* msg);
34 void print_fsmarc_token_list(srec* rec, stokenID token_index, char* msg);
Dsrec_tokens.c37 int count_fsmarc_token_list(srec* rec, stokenID token_index) in count_fsmarc_token_list() argument
41 while (token_index != MAXstokenID) in count_fsmarc_token_list()
43 fsmarc_token* stoken = &rec->fsmarc_token_array[token_index]; in count_fsmarc_token_list()
44 token_index = stoken->next_token_index; in count_fsmarc_token_list()
191 int count_fsmnode_token_list(srec* rec, ftokenID token_index) in count_fsmnode_token_list() argument
195 while (token_index != MAXftokenID) in count_fsmnode_token_list()
197 fsmnode_token* ftoken = &rec->fsmnode_token_array[token_index]; in count_fsmnode_token_list()
198 token_index = ftoken->next_token_index; in count_fsmnode_token_list()
Dsrec.c445 stokenID token_index; in prune_new_tokens() local
454 for (token_index = rec->active_fsmarc_tokens; token_index != MAXstokenID; in prune_new_tokens()
455 token_index = next_token_index) in prune_new_tokens()
458 token = &(rec->fsmarc_token_array[token_index]); in prune_new_tokens()
475 rec->best_token_for_arc[rec->fsmarc_token_array[token_index].FSMarc_index] = MAXstokenID; in prune_new_tokens()
477 free_fsmarc_token(rec, token_index); in prune_new_tokens()
553 ftokenID token_index; in prune_fsmnode_tokens() local
559 token_index = rec->active_fsmnode_tokens; in prune_fsmnode_tokens()
561 token = &(rec->fsmnode_token_array[token_index]); in prune_fsmnode_tokens()
564 while (token_index != MAXftokenID) in prune_fsmnode_tokens()
[all …]
Dastar_pphash.c52 diff = parp1->token_index - parp2->token_index; in compare_parp()
80 hashval = parp->token_index; in hashfunc()
Dsrec_results.c187 word_token* wtoken = &rec->word_token_array[ parp->token_index]; in srec_nbest_fix_homonym_confidence_values()
305 wtoken = &rec->word_token_array[ parp->token_index]; in srec_nbest_get_result()
375 if (parp->token_index == MAXwtokenID) break; in srec_nbest_get_choice_info()
376 wtoken = &rec->word_token_array[ parp->token_index]; in srec_nbest_get_choice_info()
384 parp->next->token_index != MAXwtokenID && in srec_nbest_get_choice_info()
385 … rec->word_token_array[ parp->next->token_index].word == rec->context->end_silence_word) in srec_nbest_get_choice_info()
Dsrec_tokens.h34 int count_fsmarc_token_list(srec* rec, stokenID token_index);
51 int count_fsmnode_token_list(srec* rec, ftokenID token_index);
/external/srec/srec/include/
Dastar.h74 wtokenID token_index; member