SPRAAK
Data Fields

opaque structure (will become a class) More...

+ Collaboration diagram for SprAcmod:

Data Fields

unsigned int flags
 set of flags (SPR_AM_CALC_... + SPR_AM_CVT_...) More...
 
int vlen
 number of parameters in the input vector More...
 
int Nstates
 
int Ngauss
 number of gaussians in the set More...
 
int TotMixdim
 total length of the mixture arrays More...
 
float log_sf
 
float asf
 
float H
 
float log_tot_lik
 the unconditional likelihood corresponding to oprob More...
 
float floor_frac
 floor value for state outputs More...
 
float * prior
 the state priors More...
 
float * lprior
 the log of the state priors More...
 
double Npoints
 total number of points More...
 
SprHmmTProb * tprob
 transition probs of the HMM More...
 
float * oprob
 output probabilities of the states More...
 
SprHmmFGauss ** gaussians
 gaussians + state links More...
 
SprHmmUchar * state_sel
 mark the active states More...
 
SprHmmUchar4 * sel
 gaussians selected by FRoG More...
 
SprHmmUchar4 * orig_sel
 
SprHmmRmgInfo * frog
 fast evaluation of gaussians More...
 
_FuncPtr2_HMMDEF_ calc_oprob
 
float *(* cvt_oprob )(SprAcmod *gset, float *restrict oprob)
 
_FuncPtr3_HMMDEF_ modify
 modify the status/configuration More...
 
int(* check_keys )(const SprAcmod *gset, const SprKeySet *keys)
 check if the observation is compliant with the acoustic model More...
 
_FuncPtr4_HMMDEF_ call_back
 
SprAcmod *(* free )(SprAcmod *gset)
 free all data More...
 

Detailed Description

opaque structure (will become a class)

Field Documentation

§ flags

unsigned int SprAcmod::flags

set of flags (SPR_AM_CALC_... + SPR_AM_CVT_...)

§ vlen

int SprAcmod::vlen

number of parameters in the input vector

§ Nstates

int SprAcmod::Nstates

number of states, only filled in a an HMM is attached to the mvg (also indicates whether the state info is available)

§ Ngauss

int SprAcmod::Ngauss

number of gaussians in the set

§ TotMixdim

int SprAcmod::TotMixdim

total length of the mixture arrays

§ log_sf

float SprAcmod::log_sf

LOG: multiply the log likelihoods/posteriors returned by calc_oprob() with log_sf obtain natural logs; LIN: raise the likelihoods/posteriors returned by calc_oprob() to the power log_sf to obtain linear values

§ asf

float SprAcmod::asf

LOG: <cvt_optob>() returns natural log likelihoods/posteriors multiplied with asf; LIN: <cvt_optob>() returns likelihoods/posteriors raised to the power asf

§ H

float SprAcmod::H

the entropy (log(perplexity), not log2) of the posterior probs represented by oprob

§ log_tot_lik

float SprAcmod::log_tot_lik

the unconditional likelihood corresponding to oprob

§ floor_frac

float SprAcmod::floor_frac

floor value for state outputs

§ prior

float* SprAcmod::prior

the state priors

§ lprior

float* SprAcmod::lprior

the log of the state priors

§ Npoints

double SprAcmod::Npoints

total number of points

§ tprob

SprHmmTProb* SprAcmod::tprob

transition probs of the HMM

§ oprob

float* SprAcmod::oprob

output probabilities of the states

§ gaussians

SprHmmFGauss** SprAcmod::gaussians

gaussians + state links

§ state_sel

SprHmmUchar* SprAcmod::state_sel

mark the active states

§ sel

SprHmmUchar4* SprAcmod::sel

gaussians selected by FRoG

§ orig_sel

SprHmmUchar4* SprAcmod::orig_sel

pre-selection of gaussians (lexicon/sentence based during recognition/alignment or state based during training)

§ frog

SprHmmRmgInfo* SprAcmod::frog

fast evaluation of gaussians

§ calc_oprob

_FuncPtr2_HMMDEF_ SprAcmod::calc_oprob

the main evaluation function: computes the (log) likelihood or the (log) posterior prob; the actual format of the output of this routine is described by the flags flags (and the scale factor log_sf)

§ cvt_oprob

float*(* SprAcmod::cvt_oprob) (SprAcmod *gset, float *restrict oprob)

convert to output of calc_oprob(); the default conversion creates scaled log likelihoods (scale factor asf) and computes the unconditional probability of the observation

§ modify

_FuncPtr3_HMMDEF_ SprAcmod::modify

modify the status/configuration

§ check_keys

int(* SprAcmod::check_keys) (const SprAcmod *gset, const SprKeySet *keys)

check if the observation is compliant with the acoustic model

§ call_back

_FuncPtr4_HMMDEF_ SprAcmod::call_back

the acoustic model requires a call-back from the search (feedback loop)

§ free

SprAcmod*(* SprAcmod::free) (SprAcmod *gset)

free all data