22 #ifndef KALDI_ONLINE2_ONLINE_NNET3_DECODING_H_ 23 #define KALDI_ONLINE2_ONLINE_NNET3_DECODING_H_ 51 template <
typename FST>
129 #endif // KALDI_ONLINE2_ONLINE_NNET3_DECODING_H_ This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
For an extended explanation of the framework of which grammar-fsts are a part, please see Support for...
This file contains a different version of the feature-extraction pipeline in online-feature-pipeline...
SingleUtteranceNnet3DecoderTpl(const LatticeFasterDecoderConfig &decoder_opts, const TransitionModel &trans_model, const nnet3::DecodableNnetSimpleLoopedInfo &info, const FST &fst, OnlineNnet2FeaturePipeline *features)
~SingleUtteranceNnet3DecoderTpl()
void InitDecoding(int32 frame_offset=0)
Initializes the decoding and sets the frame offset of the underlying decodable object.
const LatticeFasterDecoderConfig & decoder_opts_
void GetLattice(bool end_of_utterance, CompactLattice *clat) const
Gets the lattice.
int32 NumFramesDecoded() const
bool EndpointDetected(const OnlineEndpointConfig &config)
This function calls EndpointDetected from online-endpoint.h, with the required arguments.
You will instantiate this class when you want to decode a single utterance using the online-decoding ...
fst::VectorFst< LatticeArc > Lattice
LatticeFasterOnlineDecoderTpl is as LatticeFasterDecoderTpl but also supports an efficient way to get...
BaseFloat input_feature_frame_shift_in_seconds_
fst::VectorFst< CompactLatticeArc > CompactLattice
void GetBestPath(bool end_of_utterance, Lattice *best_path) const
Outputs an FST corresponding to the single best path through the current lattice. ...
nnet3::DecodableAmNnetLoopedOnline decodable_
LatticeFasterOnlineDecoderTpl< FST > decoder_
OnlineNnet2FeaturePipeline is a class that's responsible for putting together the various parts of th...
SingleUtteranceNnet3DecoderTpl< fst::Fst< fst::StdArc > > SingleUtteranceNnet3Decoder
void AdvanceDecoding()
Advances the decoding as far as we can.
When you instantiate class DecodableNnetSimpleLooped, you should give it a const reference to this cl...
const LatticeFasterOnlineDecoderTpl< FST > & Decoder() const
const TransitionModel & trans_model_
void FinalizeDecoding()
Finalizes the decoding.