#include <sent/stddefs.h>
#include <sent/htk_param.h>
#include <sent/htk_hmm.h>
関数 | |
static void | mark_exclude_vector (int loc, int len, int *vmark, int vlen) |
Put exlusion marks for vector for len elements from loc -th dimension. | |
static void | exec_exclude_vectors (HTK_Param *p, int *vmark) |
Execute exclusion for a parameter data according to the exclusion marks. | |
int | guess_basenum (HTK_Param *p, short qualtype) |
Guess the length of the base coefficient according to the total vector length and parameter type. | |
static boolean | select_param_vmark (HTK_Param *src, short dst_type_arg, int *vmark, int vlen, short *new_type) |
Compare source parameter type and required type in HTK HMM, and set mark. | |
static boolean | select_param_kind (HTK_Param *p, short dst_type_arg) |
Extracts needed parameter vector specified in dst_type_arg from src, and returns newly allocated parameter structure. | |
int | param_check_and_adjust (HTK_HMM_INFO *hmminfo, HTK_Param *param, boolean vflag) |
Top function to adjust parameter. |
HMMと入力特徴パラメータの型をチェックします.タイプが一致しない場合, 特徴パラメータの一部を削除することで一致するよう調整できるかどうか を試みます.(例:特徴量ファイルが MFCC_E_D_Z (26次元) で与えられた とき,音響モデルが MFCC_E_D_N_Z (25次元) である場合,絶対値パワー項を 差し引くことで調整できます.)
調整アルゴリズムは以下のとおりです.
paramselect.c で定義されています。
static void mark_exclude_vector | ( | int | loc, | |
int | len, | |||
int * | vmark, | |||
int | vlen | |||
) | [static] |
Put exlusion marks for vector for len elements from loc -th dimension.
loc | [in] beginning dimension to mark | |
len | [in] number of dimension to mark from loc | |
vmark | [in] mark buffer | |
vlen | [in] length of vmark |
paramselect.c の 63 行で定義されています。
参照元 select_param_vmark().
static void exec_exclude_vectors | ( | HTK_Param * | p, | |
int * | vmark | |||
) | [static] |
Execute exclusion for a parameter data according to the exclusion marks.
Execute vector element exclusion will be done inline.
p | [i/o] parameter | |
vmark | [in] mark buffer |
paramselect.c の 101 行で定義されています。
参照元 select_param_kind().
int guess_basenum | ( | HTK_Param * | p, | |
short | qualtype | |||
) |
Guess the length of the base coefficient according to the total vector length and parameter type.
p | [in] parameter data | |
qualtype | [in] parameter type |
paramselect.c の 133 行で定義されています。
static boolean select_param_vmark | ( | HTK_Param * | src, | |
short | dst_type_arg, | |||
int * | vmark, | |||
int | vlen, | |||
short * | new_type | |||
) | [static] |
Compare source parameter type and required type in HTK HMM, and set mark.
src | [in] input parameter | |
dst_type_arg | [in] required parameter type | |
vmark | [in] mark buffer | |
vlen | [in] length of vmark | |
new_type | [out] return the new type |
paramselect.c の 168 行で定義されています。
参照元 select_param_kind().
static boolean select_param_kind | ( | HTK_Param * | p, | |
short | dst_type_arg | |||
) | [static] |
Extracts needed parameter vector specified in dst_type_arg from src, and returns newly allocated parameter structure.
src | [in] input parameter | |
dst_type_arg | [in] required parameter type |
paramselect.c の 319 行で定義されています。
int param_check_and_adjust | ( | HTK_HMM_INFO * | hmminfo, | |
HTK_Param * | param, | |||
boolean | vflag | |||
) |
Top function to adjust parameter.
It compares the types for the given parameter param and HMM definition hmminfo. If type is not the same, adjustment will be tried.
hmminfo | [in] HTK HMM definition | |
param | [i/o] input parameter, will be freed if adjustment was performed in this function | |
vflag | [in] if TRUE, output verbose messages |
paramselect.c の 371 行で定義されています。