#include <sent/stddefs.h>
#include <sent/dfa.h>
#include <sent/vocabulary.h>
#include <sent/htk_hmm.h>
Include dependency graph for init_dfa.c:
Go to the source code of this file.
Functions | |
void | init_dfa (DFA_INFO *dinfo, char *filename) |
void | make_dfa_voca_ref (DFA_INFO *dinfo, WORD_INFO *winfo) |
void | dfa_find_pause_word (DFA_INFO *dfa, WORD_INFO *winfo, HTK_HMM_INFO *hmminfo) |
void | dfa_pause_word_append (DFA_INFO *dst, DFA_INFO *src, int coffset) |
Definition in file init_dfa.c.
void init_dfa | ( | DFA_INFO * | dinfo, | |
char * | filename | |||
) |
Read in a grammar file and set to DFA grammar structure
dinfo | [i/o] a blank DFA data | |
filename | [in] DFA grammar file name |
Definition at line 45 of file init_dfa.c.
Referenced by multigram_read_file().
Make correspondence between all words in dictionary and categories in grammar, both from a word to a category and from a category to words.
dinfo | [i/o] DFA grammar, category information will be built here. | |
winfo | [i/o] Word dictionary, word-to-category information will be build here. |
Definition at line 71 of file init_dfa.c.
Referenced by multigram_exec().
void dfa_find_pause_word | ( | DFA_INFO * | dfa, | |
WORD_INFO * | winfo, | |||
HTK_HMM_INFO * | hmminfo | |||
) |
Find pause word and pause category information, and set to the grammar data.
dfa | [i/o] DFA grammar, sp_id and is_sp will be built here. | |
winfo | [in] Word dictionary | |
hmminfo | [in] HTK HMM to provide which is short pause HMM |
Definition at line 104 of file init_dfa.c.
Referenced by multigram_exec().
Append the pause word/category information at the last.
dst | [i/o] DFA grammar | |
src | [in] DFA grammar to be appended to dst | |
coffset | appending category point in dst |
Definition at line 135 of file init_dfa.c.
Referenced by multigram_build_append().