24 #ifndef KALDI_ONLINE_ONLINE_DECODABLE_H_ 25 #define KALDI_ONLINE_ONLINE_DECODABLE_H_ 61 std::vector<std::pair<int32, BaseFloat> >
cache_;
68 #endif // KALDI_ONLINE_ONLINE_DECODABLE_H_ This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
OnlineDecodableDiagGmmScaled(const AmDiagGmm &am, const TransitionModel &trans_model, const BaseFloat scale, OnlineFeatureMatrix *input_feats)
DecodableInterface provides a link between the (acoustic-modeling and feature-processing) code and th...
std::vector< std::pair< int32, BaseFloat > > cache_
const TransitionModel & trans_model_
const AmDiagGmm & ac_model_
int32 NumTransitionIds() const
Returns the total number of transition-ids (note, these are one-based).
void CacheFrame(int32 frame)
A class representing a vector.
virtual BaseFloat LogLikelihood(int32 frame, int32 index)
Returns the log likelihood, which will be negated in the decoder.
virtual bool IsLastFrame(int32 frame) const
Returns true if this is the last frame.
OnlineFeatureMatrix * features_
virtual int32 NumIndices() const
Indices are one-based! This is for compatibility with OpenFst.
Vector< BaseFloat > cur_feats_
KALDI_DISALLOW_COPY_AND_ASSIGN(OnlineDecodableDiagGmmScaled)