21 #ifndef KALDI_DECODER_DECODABLE_MAPPED_H_ 22 #define KALDI_DECODER_DECODABLE_MAPPED_H_ 68 #endif // KALDI_DECODER_DECODABLE_MAPPED_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...
virtual bool IsLastFrame(int32 frame) const
Returns true if this is the last frame.
DecodableMapped(const std::vector< int32 > &index_map, DecodableInterface *d)
virtual bool IsLastFrame(int32 frame) const =0
Returns true if this is the last frame.
KALDI_DISALLOW_COPY_AND_ASSIGN(DecodableMapped)
DecodableInterface * decodable_
virtual int32 NumIndices() const
Returns the number of states in the acoustic model (they will be indexed one-based, i.e.
#define KALDI_ASSERT(cond)
virtual BaseFloat LogLikelihood(int32 frame, int32 index)=0
Returns the log likelihood, which will be negated in the decoder.
std::vector< int32 > index_map_
virtual BaseFloat LogLikelihood(int32 frame, int32 state_index)
Returns the log likelihood, which will be negated in the decoder.