#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) |
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) |
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 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 で定義されています。
|
Initialize the cache data, should be called once on startup.
参照元 outprob_init(). |
|
Prepare cache for the next input, by clearing the existing cache.
参照元 outprob_prepare(). |
|
Expand the cache to time axis if needed.
参照元 outprob_state(). |
|
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.
参照元 next_word(), outprob(), outprob_cd_avg(), outprob_cd_max(), outprob_cd_nbest(), outprob_style(), と start_word(). |
|
Initialize work area for outprob_cd_nbest().
参照元 outprob_init(). |
|
Return average of N-beat outprob for pseudo state set.
参照元 outprob_cd(). |
|
Return maximum outprob of the pseudo state set.
参照元 outprob_cd(). |
|
Return average outprob of the pseudo state set.
参照元 outprob_cd(). |
|
Compute the log output probability of a pseudo state set.
参照元 next_word(), outprob(), outprob_style(), と start_word(). |
|
Top function to compute the output probability of a HMM state.
参照元 viterbi_segment(). |