Julius 4.2
関数 | 変数
libsent/src/anlz/paramtypes.c

特徴パラメータ型の文字列表現とバイナリ表現の相互変換 [詳細]

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

ソースコードを見る。

関数

short param_qualstr2code (char *s)
 Convert a qualifier string to a binary type code.
short param_str2code (char *s)
 Convert a type string that contains basename and qualifiers to a binary type code.
char * param_qualcode2str (char *buf, short type, boolean descflag)
 Convert the qualifier part of a binary type code to string.
char * param_code2str (char *buf, short type, boolean descflag)
 Convert a binary type code to string.

変数

static OptionStr pbase []
 Database that relates base type strings to binary code and description string.
static OptionStr pqual []
 Database that relates qualifier type strings to binary code and description string.

説明

特徴パラメータ型の文字列表現とバイナリ表現の相互変換

このファイルの関数は,特徴パラメータ型の文字列表現("MFCC_E_D_Z" など) と HTK の short 型で表される内部バイナリ形式との相互変換を行ないます.

作者:
Akinobu LEE
日付:
Tue Feb 15 00:06:26 2005
Revision:
1.3

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


関数

short param_qualstr2code ( char *  s)

Convert a qualifier string to a binary type code.

引数:
s[in] a string that contains qualifier strings like "_E_D_Z"
戻り値:
the converted internal binary type code, F_ERR_INVALID if failed.

paramtypes.c70 行で定義されています。

参照元 param_str2code().

short param_str2code ( char *  s)

Convert a type string that contains basename and qualifiers to a binary type code.

引数:
s[in] a string that contains base and qualifier string like "MFCC_E_D_Z"
戻り値:
the converted internal binary type code, F_ERR_INVALID if failed.

paramtypes.c106 行で定義されています。

参照元 read_global_opt().

char* param_qualcode2str ( char *  buf,
short  type,
boolean  descflag 
)

Convert the qualifier part of a binary type code to string.

引数:
buf[out] buffer to store the resulting string (must have enough length)
type[in] binary type code to convert.
descflag[in] set to TRUE if you want result in description string instead of qualifier string.
戻り値:
buf on success, NULL on failure.

paramtypes.c149 行で定義されています。

参照元 param_code2str(), と select_param_vmark().

char* param_code2str ( char *  buf,
short  type,
boolean  descflag 
)

Convert a binary type code to string.

引数:
buf[out] buffer to store the resulting string (must have enough length)
type[in] binary type code to convert.
descflag[in] set to TRUE if you want result in description string instead of base and qualifier string.
戻り値:
buf on success, NULL on failure.

paramtypes.c178 行で定義されています。

参照元 param_check_and_adjust(), print_hmmdef_info(), put_param_head(), と select_param_kind().


変数

OptionStr pbase[] [static]
初期値:
 {
  {"WAVEFORM", F_WAVEFORM, "sampled waveform", FALSE},
  {"DISCRETE", F_DISCRETE, "Discrete", FALSE},
  {"LPC", F_LPC, "LPC", TRUE},
  {"LPCEPSTRA", F_LPCEPSTRA, "LPC cepstral", TRUE},
  {"MFCC", F_MFCC, "mel-frequency cepstral", TRUE},
  {"FBANK", F_FBANK, "log mel-filter bank", TRUE},
  {"MELSPEC", F_MELSPEC, "linear mel-filter bank", TRUE},
  {"LPREFC", F_LPREFC, "LPC(reflection)", TRUE},
  {"LPDELCEP", F_LPDELCEP, "LPC+Delta", TRUE},
  {"USER", F_USER, "user defined sample kind", TRUE},
  {NULL,0,NULL,FALSE}
}

Database that relates base type strings to binary code and description string.

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

OptionStr pqual[] [static]
初期値:
 {
  {"_E", F_ENERGY, "log energy coef.", TRUE},
  {"_N", F_ENERGY_SUP, "uppress absolute energy", TRUE},
  {"_D", F_DELTA, "delta coef.", TRUE},
  {"_A", F_ACCL, "acceleration coef.", TRUE},
  {"_C", F_COMPRESS, "compressed", TRUE},
  {"_Z", F_CEPNORM, "cepstral mean normalization", TRUE},
  {"_K", F_CHECKSUM, "CRC checksum added", TRUE},
  {"_0", F_ZEROTH, "0'th cepstral parameter", TRUE},
  {NULL,0,NULL,FALSE}
}

Database that relates qualifier type strings to binary code and description string.

paramtypes.c50 行で定義されています。