Home
last modified time | relevance | path

Searched refs:wtoken (Results 1 – 6 of 6) sorted by relevance

/external/srec/srec/crec/
Dword_lattice.c91 word_token* wtoken = &word_token_array[wtoken_index]; in lattice_best_cost_to_frame() local
93 wtoken_index = wtoken->next_token_index; in lattice_best_cost_to_frame()
94 if (best_cost > wtoken->cost) in lattice_best_cost_to_frame()
95 best_cost = wtoken->cost; in lattice_best_cost_to_frame()
117 word_token *wtoken, *last_wtoken; in print_word_token_backtrace() local
122 wtoken = &rec->word_token_array[wtoken_index]; in print_word_token_backtrace()
123 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()
127 ASSERT(!last_wtoken || last_wtoken->end_time > wtoken->end_time); in print_word_token_backtrace()
128 ASSERT(rec->accumulated_cost_offset[ wtoken->end_time] != 0); in print_word_token_backtrace()
[all …]
Dastar.c299 word_token* wtoken; in extend_path() local
305 wtoken = &word_token_array[ extend_token_index]; in extend_path()
307 if (wtoken->end_time > word_token_array[parp->token_index].end_time) in extend_path()
321 wtoken = &word_token_array[ extend_token_index]; in extend_path()
324 netcost = wtoken->cost - best_cost_for_node; in extend_path()
330 netcost, wtoken->cost, best_cost_for_node, parp->costsofar, max_cost); in extend_path()
350 if (alt_wtoken->word != wtoken->word) in extend_path()
354 bt_token_index = wtoken->backtrace; in extend_path()
364 wtoken_bt = &word_token_array[ wtoken->backtrace]; in extend_path()
369 join_frame_diff = alt_wtoken->end_time - wtoken->end_time; in extend_path()
[all …]
Dsrec_results.c187 word_token* wtoken = &rec->word_token_array[ parp->token_index]; in srec_nbest_fix_homonym_confidence_values() local
188 if(WORD_TOKEN_GET_HOMONYM( wtoken)) { in srec_nbest_fix_homonym_confidence_values()
288 word_token* wtoken; in srec_nbest_get_result() local
305 wtoken = &rec->word_token_array[ parp->token_index]; in srec_nbest_get_result()
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()
333 lenp = sprintf(et, "@%d", wtoken->end_time); in srec_nbest_get_result()
370 word_token* wtoken; in srec_nbest_get_choice_info() local
376 wtoken = &rec->word_token_array[ parp->token_index]; in srec_nbest_get_choice_info()
377 if (wtoken->word == rec->context->beg_silence_word) in srec_nbest_get_choice_info()
[all …]
Dsrec_tokens.c139 word_token* wtoken = NULL; in initialize_free_word_tokens() local
143 wtoken = &rec->word_token_array[i]; in initialize_free_word_tokens()
144 wtoken->next_token_index = i + 1; in initialize_free_word_tokens()
147 wtoken->next_token_index = MAXwtokenID; in initialize_free_word_tokens()
154 word_token* wtoken; in get_free_word_token() local
175 wtoken = &rec->word_token_array[token_to_return]; in get_free_word_token()
176 rec->word_token_freelist = wtoken->next_token_index; in get_free_word_token()
Dsrec.c492 word_token* wtoken; in reprune_word_tokens_if_necessary() local
496 for (; wtoken_index != MAXwtokenID; wtoken_index = wtoken->next_token_index) in reprune_word_tokens_if_necessary()
498 wtoken = &rec->word_token_array[ wtoken_index]; in reprune_word_tokens_if_necessary()
728 word_token* wtoken; in srec_process_word_boundary_nbest() local
751 wtoken = &(rec->word_token_array[wtoken_index]); in srec_process_word_boundary_nbest()
752 wtoken->word = word; in srec_process_word_boundary_nbest()
753 wtoken->_word_end_time = 0; // new in srec_process_word_boundary_nbest()
754 wtoken->end_time = rec->current_search_frame; in srec_process_word_boundary_nbest()
755 wtoken->end_node = end_node; in srec_process_word_boundary_nbest()
756 wtoken->backtrace = word_backtrace; in srec_process_word_boundary_nbest()
[all …]
Dsrec_stats.c86 word_token* wtoken; in srec_stats_update() local
118 for (; wt_index != MAXwtokenID; wt_index = wtoken->next_token_index) in srec_stats_update()
120 wtoken = &rec->word_token_array[wt_index]; in srec_stats_update()