This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
const std::vector< std::vector< int32 > > * gselect_
Sgmm2PerSpkDerivedVars * spk_
Sgmm2LikelihoodCache sgmm_cache_
BaseFloat LogLikelihood(const Sgmm2PerFrameDerivedVars &per_frame_vars, int32 j2, Sgmm2LikelihoodCache *cache, Sgmm2PerSpkDerivedVars *spk_vars, BaseFloat log_prune=0.0) const
This does a likelihood computation for a given state using the pre-selected Gaussian components (in p...
Sgmm2PerFrameDerivedVars per_frame_vars_
const Matrix< BaseFloat > * feature_matrix_
virtual BaseFloat LogLikelihoodForPdf(int32 frame, int32 pdf_id)
void ComputePerFrameVars(const VectorBase< BaseFloat > &data, const std::vector< int32 > &gselect, const Sgmm2PerSpkDerivedVars &spk_vars, Sgmm2PerFrameDerivedVars *per_frame_vars) const
This needs to be called with each new frame of data, prior to accumulation or likelihood evaluation: ...
virtual ~DecodableAmSgmm2()
Represents a non-allocating general vector which can be defined as a sub-vector of higher-level vecto...