libsent/src/hmminfo/rdhmmdef.c

HTK HMM 定義ファイルの読み込み:メイン [詳細]

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

ソースコードを見る。

マクロ定義

#define MAXBUFLEN   4096
 Maximum length of a line in the input

関数

void rderr (char *str)
 Output error message, with current reading status, and terminate
char * read_token (FILE *fp)
 Read next token and ste it to rdhmmdef_token.
static void conv_log_arc (HTK_HMM_INFO *hmm)
 Convert all the transition probabilities to log10 scale.
void htk_hmm_inverse_variances (HTK_HMM_INFO *hmm)
 Invert all the variance values.
boolean rdhmmdef (FILE *fp, HTK_HMM_INFO *hmm)
 Main top routine to read in HTK HMM definition file.

変数

char * rdhmmdef_token
 Current token
static char * buf = NULL
 Local work area for token reading
static int line
 Input Line count


説明

HTK HMM 定義ファイルの読み込み:メイン

ここには HTK 形式の HMM 定義ファイルを読み込むための関数群を呼び出す メイン関数が収められています.

このファイルはまた,読み込み関数群で共通して用いられるトークン単位の ファイル読み込み関数を提供します. HMM 定義ファイルは read_token() によってトークン単位で順次読み込まれ, グローバル変数 rdhmmdef_token に格納されます.各関数群はこの rdhmmdef_token を参照して現在のトークンを得ます.

作者:
Akinobu LEE
日付:
Wed Feb 16 00:17:18 2005
Revision
1.3

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


関数

void rderr ( char *  str  ) 

Output error message, with current reading status, and terminate

引数:
str [in] error string

rdhmmdef.c61 行で定義されています。

参照元 codebook_add()def_mpdf_macro()def_regtree_macro()dens_add()dens_read()get_dens_data()get_mpdf_data()get_opttype_str()get_state_data()get_streamweight_data()get_trans_data()get_var_data()htk_hmmdata_add()htk_hmmdata_read()mpdf_add()mpdf_read()rdhmmdef()read_global_opt()state_add()state_read()sw_add()sw_read()tmix_read()trans_add()trans_read()var_add()var_read().

char* read_token ( FILE *  fp  ) 

Read next token and ste it to rdhmmdef_token.

引数:
fp [in] file pointer
戻り値:
the pointer to the read token, or NULL on end of file or error.

rdhmmdef.c80 行で定義されています。

参照元 dens_read()get_dens_data()get_mpdf_data()get_state_data()get_streamweight_data()get_trans_data()get_var_data()htk_hmmdata_read()mpdf_read()rdhmmdef()read_global_opt()regtree_read()state_read()sw_read()tmix_read()trans_read()var_read().

static void conv_log_arc ( HTK_HMM_INFO hmm  )  [static]

Convert all the transition probabilities to log10 scale.

引数:
hmm [i/o] HMM definition data to modify.

rdhmmdef.c109 行で定義されています。

参照元 rdhmmdef().

void htk_hmm_inverse_variances ( HTK_HMM_INFO hmm  ) 

Invert all the variance values.

引数:
hmm [i/o] HMM definition data to modify.

rdhmmdef.c130 行で定義されています。

参照元 gmm_init()outprob_init()rdhmmdef()read_binhmm().

boolean rdhmmdef ( FILE *  fp,
HTK_HMM_INFO hmm 
)

Main top routine to read in HTK HMM definition file.

A HTK HMM definition file will be read from fp. After reading, the parameter type is checked and calculate some statistics.

引数:
fp [in] file pointer
hmm [out] pointer to a HMM definition structure to store data.
戻り値:
TRUE on success, FALSE on failure.

rdhmmdef.c184 行で定義されています。

参照元 init_hmminfo().


Juliusに対してThu Jul 23 12:17:08 2009に生成されました。  doxygen 1.5.1