27 #ifndef KALDI_DECODER_LATTICE_FASTER_ONLINE_DECODER_H_ 28 #define KALDI_DECODER_LATTICE_FASTER_ONLINE_DECODER_H_ 32 #include "fst/fstlib.h" 53 template <
typename FST>
87 bool Done()
const {
return tok == NULL; }
100 bool use_final_probs =
true)
const;
136 bool use_final_probs,
fst::StdArc::StateId StateId
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
fst::ArcTpl< LatticeWeight > LatticeArc
LatticeFasterOnlineDecoderTpl(const FST &fst, const LatticeFasterDecoderConfig &config)
typename fst::StdFst ::Arc Arc
For an extended explanation of the framework of which grammar-fsts are a part, please see Support for...
LatticeFasterOnlineDecoderTpl(const LatticeFasterDecoderConfig &config, FST *fst)
typename Arc::Weight Weight
typename Arc::Label Label
BestPathIterator(void *t, int32 f)
fst::VectorFst< LatticeArc > Lattice
KALDI_DISALLOW_COPY_AND_ASSIGN(LatticeFasterOnlineDecoderTpl)
LatticeFasterOnlineDecoderTpl is as LatticeFasterDecoderTpl but also supports an efficient way to get...
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 TestGetBestPath(bool use_final_probs=true) const
This function does a self-test of GetBestPath().
fst::StdArc::Weight Weight
This is the "normal" lattice-generating decoder.
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.
bool GetBestPath(Lattice *ofst, bool use_final_probs=true) const
Outputs an FST corresponding to the single best path through the lattice.
LatticeFasterOnlineDecoderTpl< fst::StdFst > LatticeFasterOnlineDecoder
bool GetRawLatticePruned(Lattice *ofst, bool use_final_probs, BaseFloat beam) const
Behaves the same as GetRawLattice but only processes tokens whose extra_cost is smaller than the best...
typename Arc::StateId StateId