Go to the documentation of this file.
111 #include <hash_table.h>
116 #define DICT_INC_SZ 4096
176 const char *dictfile,
177 const char *fillerfile,
225 #define dict_size(d) ((d)->n_word)
226 #define dict_basewid(d,w) ((d)->word[w].basewid)
227 #define dict_wordstr(d,w) ((d)->word[w].word)
228 #define dict_nextalt(d,w) ((d)->word[w].alt)
229 #define dict_pronlen(d,w) ((d)->word[w].pronlen)
230 #define dict_pron(d,w,p) ((d)->word[w].ciphone[p])
231 #define dict_filler_start(d) ((d)->filler_start)
232 #define dict_filler_end(d) ((d)->filler_end)
233 #define dict_startwid(d) ((d)->startwid)
234 #define dict_finishwid(d) ((d)->finishwid)
235 #define dict_silwid(d) ((d)->silwid)
236 #define dict_first_phone(d,w) ((d)->word[w].ciphone[0])
237 #define dict_second_last_phone(d,w) ((d)->word[w].ciphone[(d)->word[w].pronlen - 2])
238 #define dict_last_phone(d,w) ((d)->word[w].ciphone[(d)->word[w].pronlen - 1])
241 #define S3_START_WORD "<s>"
242 #define S3_FINISH_WORD "</s>"
243 #define S3_SILENCE_WORD "<sil>"
244 #define S3_UNKNOWN_WORD "<UNK>"