34 Lattice *
fst = fst::RandPairFst<LatticeArc>(opts);
39 KALDI_WARN <<
"Determinization failed, trying again.";
66 using namespace kaldi;
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
void TestMinimizeCompactLattice()
For an extended explanation of the framework of which grammar-fsts are a part, please see Support for...
CompactLattice * RandDeterministicCompactLattice()
bool PushCompactLatticeStrings(MutableFst< ArcTpl< CompactLatticeWeightTpl< Weight, IntType > > > *clat)
This function pushes the transition-ids as far towards the start as they will go. ...
bool PushCompactLatticeWeights(MutableFst< ArcTpl< CompactLatticeWeightTpl< Weight, IntType > > > *clat)
This function pushes the weights in the CompactLattice so that all states except possibly the start s...
void SetVerboseLevel(int32 i)
This should be rarely used, except by programs using Kaldi as library; command-line programs set the ...
bool MinimizeCompactLattice(MutableFst< ArcTpl< CompactLatticeWeightTpl< Weight, IntType > > > *clat, float delta)
This function minimizes the compact lattice.
fst::VectorFst< LatticeArc > Lattice
int Rand(struct RandomState *state)
fst::VectorFst< CompactLatticeArc > CompactLattice
#define KALDI_ASSERT(cond)
bool DeterminizeLattice(const Fst< ArcTpl< Weight > > &ifst, MutableFst< ArcTpl< Weight > > *ofst, DeterminizeLatticeOptions opts, bool *debug_ptr)
This function implements the normal version of DeterminizeLattice, in which the output strings are re...