#include <sent/stddefs.h>
#include <sent/htk_hmm.h>
Include dependency graph for rdhmmdef_tiedmix.c:
Go to the source code of this file.
Functions | |
static GCODEBOOK * | codebook_lookup (HTK_HMM_INFO *hmm, char *keyname) |
void | codebook_add (HTK_HMM_INFO *hmm, GCODEBOOK *new) |
static void | tmix_create_codebook_index (HTK_HMM_INFO *hmminfo, GCODEBOOK *book) |
Convert codebook ID to the defined HMM density. | |
void | tmix_read (FILE *fp, HTK_HMM_State *state, HTK_HMM_INFO *hmm) |
Read a codebook name and weights, build the codebook structure on demand, and assigns them to the current state. | |
Variables | |
char * | rdhmmdef_token |
Current token. |
Definition in file rdhmmdef_tiedmix.c.
|
Look up a data macro by the name.
Definition at line 38 of file rdhmmdef_tiedmix.c. Referenced by tmix_read(). |
|
Add a new data to the global structure.
Definition at line 58 of file rdhmmdef_tiedmix.c. Referenced by rd_tmix(), and tmix_read(). |
|
Convert codebook ID to the defined HMM density. This function assigns a list of HMM density definition to the given codebook. The densities are searched by the name of codebook name followed by the mixture component ID starting from 1. For example, if you have a codebook whose name is "ny4s2m", The densities of names like "ny4s2m1", "ny4s2m2", ... will be searched through the HMM definition data. The resulting list will be stored in the codebook. If some density definitions are not found, they are just skipped. In this case, a warning message will be output to standard error.
Definition at line 91 of file rdhmmdef_tiedmix.c. Referenced by tmix_read(). |
|
Read a codebook name and weights, build the codebook structure on demand, and assigns them to the current state. The required codebook on the current token will be assigned to this state. If the corresponding codebook structure is not built yet, it will be constructed here on demand by gathering corresponding mixture density definitions. Then this state will store the pointer to the codebook, together with its own mixture weights in the following tokens.
Definition at line 136 of file rdhmmdef_tiedmix.c. Referenced by state_read(). |