21 #ifndef KALDI_NNET2_ONLINE_NNET2_DECODABLE_H_ 22 #define KALDI_NNET2_ONLINE_NNET2_DECODABLE_H_ 45 max_nnet_batch_size(256) { }
48 opts->
Register(
"acoustic-scale", &acoustic_scale,
49 "Scaling factor for acoustic likelihoods");
50 opts->
Register(
"pad-input", &pad_input,
51 "If true, pad acoustic features with required acoustic context " 52 "past edges of file.");
53 opts->
Register(
"max-nnet-batch-size", &max_nnet_batch_size,
54 "Maximum batch size we use in neural-network decodable object, " 55 "in cases where we are not constrained by currently available " 56 "frames (this will rarely make a difference)");
79 virtual bool IsLastFrame(
int32 frame)
const;
81 virtual int32 NumFramesReady()
const;
90 void ComputeForFrame(
int32 frame);
122 #endif // KALDI_NNET2_ONLINE_NNET2_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...
Matrix< BaseFloat > scaled_loglikes_
CuVector< BaseFloat > log_priors_
#define KALDI_DISALLOW_COPY_AND_ASSIGN(type)
virtual int32 NumIndices() const
Indices are one-based! This is for compatibility with OpenFst.
virtual void Register(const std::string &name, bool *ptr, const std::string &doc)=0
DecodableNnet2OnlineOptions opts_
DecodableNnet2OnlineOptions()
This Decodable object for class nnet2::AmNnet takes feature input from class OnlineFeatureInterface, unlike, say, class DecodableAmNnet which takes feature input from a matrix.
OnlineFeatureInterface is an interface for online feature processing (it is also usable in the offlin...
OnlineFeatureInterface * features_
const TransitionModel & trans_model_
void Register(OptionsItf *opts)
int32 max_nnet_batch_size