libsent/src/hmminfo/rdhmmdef_tiedmix.c

HTK HMM 定義ファイルの読み込み:tied-mixtureモデルの混合分布コードブック. [詳細]

#include <sent/stddefs.h>
#include <sent/htk_hmm.h>
rdhmmdef_tiedmix.cのインクルード依存関係図

ソースコードを見る。

関数

static GCODEBOOKcodebook_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.

変数

char * rdhmmdef_token
 Current token.

説明

HTK HMM 定義ファイルの読み込み:tied-mixtureモデルの混合分布コードブック.

作者:
Akinobu LEE
日付:
Wed Feb 16 03:25:11 2005
Revision
1.4

rdhmmdef_tiedmix.c で定義されています。


関数

static GCODEBOOK* codebook_lookup ( HTK_HMM_INFO hmm,
char *  keyname 
) [static]

Look up a data macro by the name.

引数:
hmm [in] HMM definition data
keyname [in] macro name to find
戻り値:
pointer to the found data, or NULL if not found.

rdhmmdef_tiedmix.c38 行で定義されています。

参照元 tmix_read().

void codebook_add ( HTK_HMM_INFO hmm,
GCODEBOOK new 
)

Add a new data to the global structure.

引数:
hmm [i/o] HMM definition data to store it
new [in] new data to be added

rdhmmdef_tiedmix.c58 行で定義されています。

参照元 rd_tmix(), と tmix_read().

static void tmix_create_codebook_index ( HTK_HMM_INFO hmminfo,
GCODEBOOK book 
) [static]

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.

引数:
hmminfo [in] HMM definition data that has densities
book [i/o] codebook, name given and density list will be stored.

rdhmmdef_tiedmix.c91 行で定義されています。

参照元 tmix_read().

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.

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.

引数:
fp [in] file pointer
state [i/o] current HMM state to hold pointer to the codebook and their weights
hmm [i/o] HMM definition data, codebook statistics and tied-mixture marker will be modified.

rdhmmdef_tiedmix.c136 行で定義されています。

参照元 state_read().


Juliusに対してTue Sep 22 00:15:17 2009に生成されました。  doxygen 1.6.0