22 #ifndef KALDI_NNET3_DECODABLE_ONLINE_LOOPED_H_ 23 #define KALDI_NNET3_DECODABLE_ONLINE_LOOPED_H_ 105 "Frames must be accessed in order.");
191 trans_model_(trans_model) { }
200 int32 transition_id);
215 #endif // KALDI_NNET3_DECODABLE_ONLINE_LOOPED_H_
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
KALDI_DISALLOW_COPY_AND_ASSIGN(DecodableNnetLoopedOnlineBase)
int32 FrameSubsamplingFactor() const
int32 frame_subsampling_factor
DecodableInterface provides a link between the (acoustic-modeling and feature-processing) code and th...
virtual int32 NumIndices() const
Returns the number of states in the acoustic model (they will be indexed one-based, i.e.
virtual int32 NumFramesReady() const
The call NumFramesReady() will return the number of frames currently available for this decodable obj...
void EnsureFrameIsComputed(int32 subsampled_frame)
If the neural-network outputs for this frame are not cached, this function computes them (and possibl...
virtual bool IsLastFrame(int32 subsampled_frame) const
Returns true if this is the last frame.
OnlineFeatureInterface * ivector_features_
const NnetSimpleLoopedComputationOptions & opts
virtual int32 NumIndices() const
Returns the number of states in the acoustic model (they will be indexed one-based, i.e.
Matrix< BaseFloat > current_log_post_
DecodableAmNnetLoopedOnline(const TransitionModel &trans_model, const DecodableNnetSimpleLoopedInfo &info, OnlineFeatureInterface *input_features, OnlineFeatureInterface *ivector_features)
DecodableNnetLoopedOnlineBase(const DecodableNnetSimpleLoopedInfo &info, OnlineFeatureInterface *input_features, OnlineFeatureInterface *ivector_features)
const DecodableNnetSimpleLoopedInfo & info_
int32 current_log_post_subsampled_offset_
int32 GetFrameOffset() const
Returns the frame offset value.
class NnetComputer is responsible for executing the computation described in the "computation" object...
#define KALDI_ASSERT(cond)
MatrixIndexT NumRows() const
Returns number of rows (or zero for empty matrix).
DecodableNnetLoopedOnline(const DecodableNnetSimpleLoopedInfo &info, OnlineFeatureInterface *input_features, OnlineFeatureInterface *ivector_features)
const TransitionModel & trans_model_
OnlineFeatureInterface is an interface for online feature processing (it is also usable in the offlin...
virtual BaseFloat LogLikelihood(int32 frame, int32 index)=0
Returns the log likelihood, which will be negated in the decoder.
int32 num_chunks_computed_
When you instantiate class DecodableNnetSimpleLooped, you should give it a const reference to this cl...
OnlineFeatureInterface * input_features_
void SetFrameOffset(int32 frame_offset)
Sets the frame offset value.