23 #ifndef KALDI_ONLINE2_ONLINE_GMM_DECODABLE_H_ 24 #define KALDI_ONLINE2_ONLINE_GMM_DECODABLE_H_ 63 std::vector<std::pair<int32, BaseFloat> >
cache_;
70 #endif // KALDI_ONLINE2_ONLINE_GMM_DECODABLE_H_
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
DecodableInterface provides a link between the (acoustic-modeling and feature-processing) code and th...
DecodableDiagGmmScaledOnline(const AmDiagGmm &am, const TransitionModel &trans_model, const BaseFloat scale, OnlineFeatureInterface *input_feats)
virtual int32 NumIndices() const
Indices are one-based! This is for compatibility with OpenFst.
void CacheFrame(int32 frame)
OnlineFeatureInterface * features_
const TransitionModel & trans_model_
virtual int32 NumFramesReady() const
The call NumFramesReady() will return the number of frames currently available for this decodable obj...
int32 NumTransitionIds() const
Returns the total number of transition-ids (note, these are one-based).
virtual BaseFloat LogLikelihood(int32 frame, int32 index)
Returns the scaled log likelihood.
const AmDiagGmm & ac_model_
KALDI_DISALLOW_COPY_AND_ASSIGN(DecodableDiagGmmScaledOnline)
virtual bool IsLastFrame(int32 frame) const
Returns true if this is the last frame.
A class representing a vector.
std::vector< std::pair< int32, BaseFloat > > cache_
OnlineFeatureInterface is an interface for online feature processing (it is also usable in the offlin...
Vector< BaseFloat > cur_feats_