Lines Matching refs:wl

56   srec_word_lattice *wl;
58 wl = (srec_word_lattice*) CALLOC_CLR(1, sizeof(srec_word_lattice), "search.word_lattice.base");
59 wl->max_frames = max_frames;
60 wl->words_for_frame = (wtokenID*) CALLOC_CLR(max_frames, sizeof(wtokenID), "search.word_lattice.words");
62 wl->whether_sorted = (asr_int16_t*)CALLOC_CLR(max_frames, sizeof(asr_int16_t), "search.word_lattice.sflag");
64 return wl;
67 void destroy_word_lattice(srec_word_lattice* wl)
69 FREE(wl->words_for_frame);
70 FREE(wl->whether_sorted);
71 FREE(wl);
74 void initialize_word_lattice(srec_word_lattice* wl)
77 for (ifr = 0; ifr < wl->max_frames; ifr++)
79 wl->words_for_frame[ifr] = MAXwtokenID;
80 wl->whether_sorted[ifr] = 0;
84 costdata lattice_best_cost_to_frame(srec_word_lattice *wl, word_token* word_token_array, frameID ifr)
88 wtokenID wtoken_index = wl->words_for_frame[ ifr];
100 void lattice_add_word_tokens(srec_word_lattice *wl, frameID frame,
103 if (frame >= wl->max_frames)
108 wl->words_for_frame[frame] = word_token_list_head;
354 srec_word_lattice *wl;
363 wl = rec->word_lattice;
374 token_index = wl->words_for_frame[i];
413 srec_word_lattice* wl;
425 wl = rec->word_lattice;
426 token_index = wl->words_for_frame[end_frame];
449 srec_word_lattice* wl;
464 wl = rec->word_lattice;
466 token_index = wl->words_for_frame[end_frame];
490 srec_word_lattice* wl;
501 wl = rec->word_lattice;
502 token_index = wl->words_for_frame[end_frame];
536 srec_word_lattice* wl = rec->word_lattice;
543 ASSERT(frame < wl->max_frames);
544 if (wl->whether_sorted[frame])
547 wl->whether_sorted[frame] = 1;
550 for (pwi[npwi] = wl->words_for_frame[frame]; pwi[npwi] != MAXwtokenID;)
575 /*print_word_token_list(rec,wl->words_for_frame[frame],"## BEFORE SORT\n");*/
576 wl->words_for_frame[ frame] = pwi[0];
582 /*print_word_token_list(rec,wl->words_for_frame[frame],"## AFTER SORT\n");*/