21 #ifndef KALDI_ONLINE2_ONLINE_NNET3_INCREMENTAL_DECODING_H_ 22 #define KALDI_ONLINE2_ONLINE_NNET3_INCREMENTAL_DECODING_H_ 50 template <
typename FST>
98 bool use_final_probs =
false) {
99 return decoder_.GetLattice(num_frames_to_include, use_final_probs);
148 #endif // KALDI_ONLINE2_ONLINE_NNET3_DECODING_H_ This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
~SingleUtteranceNnet3IncrementalDecoderTpl()
SingleUtteranceNnet3IncrementalDecoderTpl(const LatticeIncrementalDecoderConfig &decoder_opts, const TransitionModel &trans_model, const nnet3::DecodableNnetSimpleLoopedInfo &info, const FST &fst, OnlineNnet2FeaturePipeline *features)
const CompactLattice & GetLattice(int32 num_frames_to_include, bool use_final_probs=false)
LatticeIncrementalOnlineDecoderTpl is as LatticeIncrementalDecoderTpl but also supports an efficient ...
For an extended explanation of the framework of which grammar-fsts are a part, please see Support for...
int32 NumFramesInLattice() const
const LatticeIncrementalDecoderConfig & decoder_opts_
This file contains a different version of the feature-extraction pipeline in online-feature-pipeline...
nnet3::DecodableAmNnetLoopedOnline decodable_
LatticeIncrementalOnlineDecoderTpl< FST > decoder_
void InitDecoding(int32 frame_offset=0)
Initializes the decoding and sets the frame offset of the underlying decodable object.
void AdvanceDecoding()
Advances the decoding as far as we can.
SingleUtteranceNnet3IncrementalDecoderTpl< fst::Fst< fst::StdArc > > SingleUtteranceNnet3IncrementalDecoder
fst::VectorFst< LatticeArc > Lattice
BaseFloat input_feature_frame_shift_in_seconds_
fst::VectorFst< CompactLatticeArc > CompactLattice
const LatticeIncrementalOnlineDecoderTpl< FST > & Decoder() const
The normal decoder, lattice-faster-decoder.h, sometimes has an issue when doing real-time application...
void FinalizeDecoding()
Finalizes the decoding.
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 ...
OnlineNnet2FeaturePipeline is a class that's responsible for putting together the various parts of th...
const TransitionModel & trans_model_
When you instantiate class DecodableNnetSimpleLooped, you should give it a const reference to this cl...
int32 NumFramesDecoded() const
void GetBestPath(bool end_of_utterance, Lattice *best_path) const
Outputs an FST corresponding to the single best path through the current lattice. ...