kaldi-lattice.cc File Reference
#include "lat/kaldi-lattice.h"
#include "fst/script/print-impl.h"
Include dependency graph for kaldi-lattice.cc:

Go to the source code of this file.

Classes

class  LatticeReader
 LatticeReader provides (static) functions for reading both Lattice and CompactLattice, in text form. More...
 

Namespaces

 kaldi
 This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference:
 

Functions

template<class OrigWeightType >
CompactLattice * ConvertToCompactLattice (fst::VectorFst< OrigWeightType > *ifst)
 Converts lattice types if necessary, deleting its input. More...
 
template<>
CompactLattice * ConvertToCompactLattice (CompactLattice *ifst)
 
template<class OrigWeightType >
Lattice * ConvertToLattice (fst::VectorFst< OrigWeightType > *ifst)
 Converts lattice types if necessary, deleting its input. More...
 
template<>
Lattice * ConvertToLattice (Lattice *ifst)
 
bool WriteCompactLattice (std::ostream &os, bool binary, const CompactLattice &t)
 
CompactLattice * ReadCompactLatticeText (std::istream &is)
 
Lattice * ReadLatticeText (std::istream &is)
 
bool ReadCompactLattice (std::istream &is, bool binary, CompactLattice **clat)
 
bool WriteLattice (std::ostream &os, bool binary, const Lattice &t)
 
bool ReadLattice (std::istream &is, bool binary, Lattice **lat)