24 #ifndef KALDI_DECODER_LATTICE_INCREMENTAL_ONLINE_DECODER_H_ 25 #define KALDI_DECODER_LATTICE_INCREMENTAL_ONLINE_DECODER_H_ 29 #include "fst/fstlib.h" 50 template <
typename FST>
86 bool Done() {
return tok == NULL; }
99 bool use_final_probs =
true)
const;
fst::StdArc::StateId StateId
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
fst::ArcTpl< LatticeWeight > LatticeArc
typename Arc::Label Label
This is an extention to the "normal" lattice-generating decoder.
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...
KALDI_DISALLOW_COPY_AND_ASSIGN(LatticeIncrementalOnlineDecoderTpl)
LatticeIncrementalOnlineDecoderTpl< fst::StdFst > LatticeIncrementalOnlineDecoder
BestPathIterator BestPathEnd(bool use_final_probs, BaseFloat *final_cost=NULL) const
This function returns an iterator that can be used to trace back the best path.
fst::VectorFst< LatticeArc > Lattice
fst::StdArc::Weight Weight
typename Arc::StateId StateId
typename Arc::Weight Weight
The normal decoder, lattice-faster-decoder.h, sometimes has an issue when doing real-time application...
LatticeIncrementalOnlineDecoderTpl(const LatticeIncrementalDecoderConfig &config, FST *fst, const TransitionModel &trans_model)
BestPathIterator(void *t, int32 f)
LatticeIncrementalOnlineDecoderTpl(const FST &fst, const TransitionModel &trans_model, const LatticeIncrementalDecoderConfig &config)
BestPathIterator TraceBackBestPath(BestPathIterator iter, LatticeArc *arc) const
This function can be used in conjunction with BestPathEnd() to trace back the best path one link at a...
bool GetBestPath(Lattice *ofst, bool use_final_probs=true) const
Outputs an FST corresponding to the single best path through the lattice.