21 #ifndef KALDI_ONLINE2_ONLINE_NNET2_DECODING_H_ 22 #define KALDI_ONLINE2_ONLINE_NNET2_DECODING_H_ 74 const fst::Fst<fst::StdArc> &
fst,
78 void AdvanceDecoding();
83 void FinalizeDecoding();
85 int32 NumFramesDecoded()
const;
92 void GetLattice(
bool end_of_utterance,
99 void GetBestPath(
bool end_of_utterance,
131 #endif // KALDI_ONLINE2_ONLINE_NNET2_DECODING_H_ nnet2::DecodableNnet2OnlineOptions decodable_opts
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...
OnlineFeatureInterface * feature_pipeline_
OnlineNnet2DecodingConfig()
const LatticeFasterOnlineDecoder & Decoder() const
bool EndpointDetected(const OnlineEndpointConfig &config, int32 num_frames_decoded, int32 trailing_silence_frames, BaseFloat frame_shift_in_seconds, BaseFloat final_relative_cost)
This function returns true if this set of endpointing rules thinks we should terminate decoding...
void Register(OptionsItf *opts)
You will instantiate this class when you want to decode a single utterance using the online-decoding ...
~SingleUtteranceNnet2Decoder()
OnlineNnet2DecodingConfig config_
fst::VectorFst< LatticeArc > Lattice
This Decodable object for class nnet2::AmNnet takes feature input from class OnlineFeatureInterface, unlike, say, class DecodableAmNnet which takes feature input from a matrix.
fst::VectorFst< CompactLatticeArc > CompactLattice
LatticeFasterDecoderConfig decoder_opts
OnlineFeatureInterface is an interface for online feature processing (it is also usable in the offlin...
const TransitionModel & tmodel_
nnet2::DecodableNnet2Online decodable_
LatticeFasterOnlineDecoder decoder_
void Register(OptionsItf *opts)
void Register(OptionsItf *opts)