Julius 4.2
関数 | 変数
libsent/src/hmminfo/rdhmmdef_mpdf.c

HTK HMM 定義ファイルの読み込み:ガウス混合分布 [詳細]

#include <sent/stddefs.h>
#include <sent/htk_hmm.h>

ソースコードを見る。

関数

static HTK_HMM_PDFmpdf_new (HTK_HMM_INFO *hmm)
 Allocate a new data area and return it.
void mpdf_add (HTK_HMM_INFO *hmm, HTK_HMM_PDF *new)
 Add a new data to the global structure.
HTK_HMM_PDFmpdf_lookup (HTK_HMM_INFO *hmm, char *keyname)
 Look up a data macro by the name.
static HTK_HMM_PDFmpdf_read (FILE *fp, HTK_HMM_INFO *hmm, int mix_num)
 Read one new data and returns the pointer.
HTK_HMM_PDFget_mpdf_data (FILE *fp, HTK_HMM_INFO *hmm, int mix_num, short stream_id)
 Return a pointer to the data located at the current point.
void def_mpdf_macro (char *name, FILE *fp, HTK_HMM_INFO *hmm)
 Read a new data and store it as a macro.

変数

char * rdhmmdef_token
 Current token.

説明

HTK HMM 定義ファイルの読み込み:ガウス混合分布

作者:
Akinobu LEE
日付:
Wed Feb 16 01:43:43 2005
Revision:
1.3

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


関数

static HTK_HMM_PDF* mpdf_new ( HTK_HMM_INFO hmm) [static]

Allocate a new data area and return it.

戻り値:
pointer to newly allocated data.

rdhmmdef_mpdf.c36 行で定義されています。

参照元 mpdf_read().

void mpdf_add ( HTK_HMM_INFO hmm,
HTK_HMM_PDF 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_mpdf.c60 行で定義されています。

参照元 def_mpdf_macro(), get_mpdf_data(), rd_mpdf(), と rd_state().

HTK_HMM_PDF* mpdf_lookup ( HTK_HMM_INFO hmm,
char *  keyname 
)

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_mpdf.c93 行で定義されています。

参照元 get_mpdf_data().

static HTK_HMM_PDF* mpdf_read ( FILE *  fp,
HTK_HMM_INFO hmm,
int  mix_num 
) [static]

Read one new data and returns the pointer.

If a sub-component of this data is directly defined at here, they will be read from here and assigned to this data. If a sub-component is not defined here but a macro name referencing to the component previously defined in other place, the data will be searched by the macro name and the pointer to the found component will be assigned to this model.

引数:
fp[in] file pointer
hmm[in] HMM definition data
mix_num[in] num of Gaussians to be read, or -1 if not specified
戻り値:
pointer to the newly read data.

rdhmmdef_mpdf.c121 行で定義されています。

参照元 def_mpdf_macro(), と get_mpdf_data().

HTK_HMM_PDF* get_mpdf_data ( FILE *  fp,
HTK_HMM_INFO hmm,
int  mix_num,
short  stream_id 
)

Return a pointer to the data located at the current point.

If the current point is a macro reference, the pointer to the already defined data will be searched and returned. Otherwise, the definition of the data will be read from the current point and pointer to the newly allocated data will be returned.

引数:
fp[in] file pointer
hmm[i/o] HMM definition data
mix_num[in] num of Gaussians to be read, or -1 if not specified
stream_id[in] stream ID, or -1 if not specified yet
戻り値:
pointer to the data located at the current point.

rdhmmdef_mpdf.c217 行で定義されています。

参照元 state_read().

void def_mpdf_macro ( char *  name,
FILE *  fp,
HTK_HMM_INFO hmm 
)

Read a new data and store it as a macro.

引数:
name[in] macro name
fp[in] file pointer
hmm[i/o] HMM definition data

rdhmmdef_mpdf.c265 行で定義されています。

参照元 rdhmmdef().