22 #ifndef KALDI_GMM_DECODABLE_AM_DIAG_GMM_H_ 23 #define KALDI_GMM_DECODABLE_AM_DIAG_GMM_H_ 110 trans_model_.TransitionIdToPdf(tid));
129 scale_(scale), delete_feats_(NULL) {}
139 trans_model_(tm), scale_(scale), delete_feats_(feats) {}
144 trans_model_.TransitionIdToPdf(tid));
152 delete delete_feats_;
164 #endif // KALDI_GMM_DECODABLE_AM_DIAG_GMM_H_
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
DecodableAmDiagGmmUnmapped is a decodable object that takes indices that correspond to pdf-id's plus ...
BaseFloat log_sum_exp_prune_
virtual int32 NumIndices() const
Returns the number of states in the acoustic model (they will be indexed one-based, i.e.
DecodableInterface provides a link between the (acoustic-modeling and feature-processing) code and th...
virtual BaseFloat LogLikelihood(int32 frame, int32 tid)
Returns the log likelihood, which will be negated in the decoder.
BaseFloat log_like
Cache value.
int32 hit_time
Frame for which this value is relevant.
virtual BaseFloat LogLikelihood(int32 frame, int32 tid)
Returns the log likelihood, which will be negated in the decoder.
Vector< BaseFloat > data_squared_
Cache for fast likelihood calculation.
virtual bool IsLastFrame(int32 frame) const
Returns true if this is the last frame.
const TransitionModel & trans_model_
const AmDiagGmm & acoustic_model_
Matrix< BaseFloat > * delete_feats_
const TransitionModel & trans_model_
const TransitionModel * TransModel()
virtual int32 NumIndices() const
Returns the number of states in the acoustic model (they will be indexed one-based, i.e.
DecodableAmDiagGmmScaled(const AmDiagGmm &am, const TransitionModel &tm, BaseFloat scale, BaseFloat log_sum_exp_prune, Matrix< BaseFloat > *feats)
DecodableAmDiagGmmScaled(const AmDiagGmm &am, const TransitionModel &tm, const Matrix< BaseFloat > &feats, BaseFloat scale, BaseFloat log_sum_exp_prune=-1.0)
virtual ~DecodableAmDiagGmmScaled()
const Matrix< BaseFloat > & feature_matrix_
std::vector< LikelihoodCacheRecord > log_like_cache_
Defines a cache record for a state.
A class representing a vector.
KALDI_DISALLOW_COPY_AND_ASSIGN(DecodableAmDiagGmmUnmapped)
#define KALDI_ASSERT(cond)
MatrixIndexT NumRows() const
Returns number of rows (or zero for empty matrix).
virtual BaseFloat LogLikelihood(int32 frame, int32 state_index)
Returns the log likelihood, which will be negated in the decoder.
virtual int32 NumFramesReady() const
The call NumFramesReady() will return the number of frames currently available for this decodable obj...
DecodableAmDiagGmmUnmapped(const AmDiagGmm &am, const Matrix< BaseFloat > &feats, BaseFloat log_sum_exp_prune=-1.0)
If you set log_sum_exp_prune to a value greater than 0 it will prune in the LogSumExp operation (larg...
virtual int32 NumIndices() const
Returns the number of states in the acoustic model (they will be indexed one-based, i.e.
const TransitionModel * TransModel()
DecodableAmDiagGmm(const AmDiagGmm &am, const TransitionModel &tm, const Matrix< BaseFloat > &feats, BaseFloat log_sum_exp_prune=-1.0)
virtual BaseFloat LogLikelihoodZeroBased(int32 frame, int32 state_index)