#include <sent/stddefs.h>
#include <sent/vocabulary.h>
#include <sent/htk_hmm.h>
Include dependency graph for voca_load_htkdict.c:
Go to the source code of this file.
Defines | |
#define | PHONEMELEN_STEP 10 |
Memory allocation step for phoneme sequence. | |
Functions | |
char * | cycle_triphone (char *p) |
char * | cycle_triphone_flush () |
static void | add_to_error (WORD_INFO *winfo, char *name) |
static void | callback_list_error (void *x) |
static void | list_error (WORD_INFO *winfo) |
static void | set_maxwn (WORD_INFO *winfo) |
static void | set_maxwlen (WORD_INFO *winfo) |
boolean | voca_load_htkdict (FILE *fp, WORD_INFO *winfo, HTK_HMM_INFO *hmminfo, boolean ignore_tri_conv) |
boolean | voca_load_htkdict_fd (int fd, WORD_INFO *winfo, HTK_HMM_INFO *hmminfo, boolean ignore_tri_conv) |
boolean | voca_load_htkdict_sd (int sd, WORD_INFO *winfo, HTK_HMM_INFO *hmminfo, boolean ignore_tri_conv) |
boolean | voca_append_htkdict (char *entry, WORD_INFO *winfo, HTK_HMM_INFO *hmminfo, boolean ignore_tri_conv) |
boolean | voca_load_htkdict_line (char *buf, int vnum, WORD_INFO *winfo, HTK_HMM_INFO *hmminfo, boolean do_conv, boolean *ok_flag) |
boolean | voca_mono2tri (WORD_INFO *winfo, HTK_HMM_INFO *hmminfo) |
Convert whole words in word dictionary to word-internal triphone. | |
void | voca_append (WORD_INFO *dstinfo, WORD_INFO *srcinfo, int coffset, int woffset) |
Variables | |
static char | buf [MAXLINELEN] |
Local work area for input text processing. | |
static char | bufbak [MAXLINELEN] |
Local work area for debug message. | |
static char | trbuf [3][20] |
Local buffer for triphone convertion. | |
static char | chbuf [30] |
Another local buffer for triphone convertion. | |
static char | nophone [1] |
Local buffer to indicate 'no phone'. | |
static int | trp_l |
Triphone cycle index. | |
static int | trp |
Triphone cycle index. | |
static int | trp_r |
Triphone cycle index. |
Definition in file voca_load_htkdict.c.
|
Return string of triphone name composed from last 3 call.
Definition at line 79 of file voca_load_htkdict.c. Referenced by cycle_triphone_flush(), new_str2phseq(), voca_load_htkdict_line(), and voca_mono2tri(). |
|
Flush the triphone buffer and return the last biphone.
Definition at line 125 of file voca_load_htkdict.c. Referenced by new_str2phseq(), voca_load_htkdict_line(), and voca_mono2tri(). |
|
Add a triphone name to the missing error list in WORD_INFO.
Definition at line 137 of file voca_load_htkdict.c. |
|
Traverse callback function to output a error phone.
Definition at line 160 of file voca_load_htkdict.c. |
|
Output all error phones appeared while readin a word dictionary.
Definition at line 172 of file voca_load_htkdict.c. Referenced by voca_append_htkdict(), voca_load_htkdict(), voca_load_htkdict_fd(), and voca_load_htkdict_sd(). |
|
Parse a word dictionary and set the maximum state length per word.
Definition at line 185 of file voca_load_htkdict.c. Referenced by voca_append(), voca_append_htkdict(), voca_load_htkdict(), voca_load_htkdict_fd(), and voca_load_htkdict_sd(). |
|
Parse the word dictionary to set the maximum word length.
Definition at line 207 of file voca_load_htkdict.c. Referenced by voca_append(), voca_append_htkdict(), voca_load_htkdict(), voca_load_htkdict_fd(), and voca_load_htkdict_sd(). |
|
Top function to read word dictionary via file pointer
Definition at line 229 of file voca_load_htkdict.c. Referenced by init_voca(). |
|
Top function to read word dictionary via file descriptor.
Definition at line 269 of file voca_load_htkdict.c. |
|
Top function to read word dictionary via socket descriptor.
Definition at line 308 of file voca_load_htkdict.c. |
|
Append a single entry to the existing word dictionary.
Definition at line 347 of file voca_load_htkdict.c. Referenced by initialize_dict(). |
|
Sub function to Add a dictionary entry line to the word dictionary.
Definition at line 384 of file voca_load_htkdict.c. Referenced by voca_append_htkdict(), voca_load_htkdict(), voca_load_htkdict_fd(), and voca_load_htkdict_sd(). |
|
Convert whole words in word dictionary to word-internal triphone. Normally triphone conversion will be performed directly when reading dictionary file. This function is for post conversion only.
Definition at line 599 of file voca_load_htkdict.c. Referenced by final_fusion(). |
|
Append one word dictionary to other, for multiple grammar handling. Assumes that the same HMM definition is used on both word dictionary.
Definition at line 640 of file voca_load_htkdict.c. Referenced by multigram_build_append(). |