#include <sent/stddefs.h>
#include <sent/speech.h>
#include <sent/htk_hmm.h>
#include <sent/htk_param.h>
#include <sent/hmm.h>
#include <sent/gprune.h>
#include "globalvars.h"
outprob.cのインクルード依存関係図
マクロ定義 | |
#define | LOG_UNDEF (LOG_ZERO - 1) |
Value to be used as the initial cache value | |
関数 | |
boolean | outprob_cache_init () |
boolean | outprob_cache_prepare () |
static void | outprob_cache_extend (int reqframe) |
void | outprob_cache_free () |
LOGPROB | outprob_state (int t, HTK_HMM_State *stateinfo, HTK_Param *param) |
Compute output probability of a state. | |
void | outprob_cd_nbest_init (int num) |
void | outprob_cd_nbest_free () |
static LOGPROB | outprob_cd_nbest (int t, CD_State_Set *lset, HTK_Param *param) |
static LOGPROB | outprob_cd_max (int t, CD_State_Set *lset, HTK_Param *param) |
static LOGPROB | outprob_cd_avg (int t, CD_State_Set *lset, HTK_Param *param) |
LOGPROB | outprob_cd (int t, CD_State_Set *lset, HTK_Param *param) |
LOGPROB | outprob (int t, HMM_STATE *hmmstate, HTK_Param *param) |
変数 | |
static int | statenum |
Local work area that holds total number of HMM states in the HMM definition data | |
static LOGPROB ** | outprob_cache = NULL |
State-level cache [t][stateid] | |
static int | allocframenum |
Allocated frames of the cache | |
static int | allocblock |
Allocation block size per allocateion of the cache | |
static BMALLOC_BASE * | croot |
Root alloc pointer to state outprob cache | |
static LOGPROB * | last_cache |
Local work are to hold cache list of current time | |
static LOGPROB * | maxprobs |
Work area that holds N-best state scores for pseudo state set | |
static int | maxn |
Allocated length of above |
状態レベルの音響尤度キャッシュが行なわれます.キャッシュは 状態 x 入力フレームで格納され,必要な長さにしたがって伸長されます.このキャッシュは 第2パスの計算でも用いるため,全時間に渡って記録されています.
なお tied-mixture の場合はコードブックレベルでのキャッシュも同時に 行なわれます.これについては calc_tied_mix.c をご覧下さい.
outprob.c で定義されています。
boolean outprob_cache_init | ( | ) |
Initialize the cache data, should be called once on startup.
参照元 outprob_init().
boolean outprob_cache_prepare | ( | ) |
Prepare cache for the next input, by clearing the existing cache.
参照元 outprob_prepare().
static void outprob_cache_extend | ( | int | reqframe | ) | [static] |
Expand the cache to time axis if needed.
reqframe | [in] required frame length |
参照元 outprob_state().
void outprob_cache_free | ( | ) |
LOGPROB outprob_state | ( | int | t, | |
HTK_HMM_State * | stateinfo, | |||
HTK_Param * | param | |||
) |
Compute output probability of a state.
Set the needed values to the global variables that begins with "OP_", and call calc_outprob_state(). The calc_outprob_state() is actually a function pointer, and the entity is either calc_tied_mix() for tied-mixture model and calc_mix() for others. (If you use GMS, the entity will be gms_state() instead.)
The state-level cache is also consulted here.
参照元 outprob()・outprob_cd_avg()・outprob_cd_max()・outprob_cd_nbest()・outprob_style()・start_word().
void outprob_cd_nbest_init | ( | int | num | ) |
Initialize work area for outprob_cd_nbest().
num | [in] number of top states to be calculated. |
参照元 outprob_init().
void outprob_cd_nbest_free | ( | ) |
static LOGPROB outprob_cd_nbest | ( | int | t, | |
CD_State_Set * | lset, | |||
HTK_Param * | param | |||
) | [static] |
Return average of N-beat outprob for pseudo state set.
t | [in] input frame | |
lset | [in] pseudo state set | |
param | [in] input parameter data |
参照元 outprob_cd().
static LOGPROB outprob_cd_max | ( | int | t, | |
CD_State_Set * | lset, | |||
HTK_Param * | param | |||
) | [static] |
Return maximum outprob of the pseudo state set.
t | [in] input frame | |
lset | [in] pseudo state set | |
param | [in] input parameter data |
参照元 outprob_cd().
static LOGPROB outprob_cd_avg | ( | int | t, | |
CD_State_Set * | lset, | |||
HTK_Param * | param | |||
) | [static] |
Return average outprob of the pseudo state set.
t | [in] input frame | |
lset | [in] pseudo state set | |
param | [in] input parameter data |
参照元 outprob_cd().
LOGPROB outprob_cd | ( | int | t, | |
CD_State_Set * | lset, | |||
HTK_Param * | param | |||
) |
Compute the log output probability of a pseudo state set.
t | [in] input frame | |
lset | [in] pseudo state set | |
param | [in] input parameter data |