20 #ifndef KALDI_LAT_COMPOSE_LATTICE_PRUNED_H_ 21 #define KALDI_LAT_COMPOSE_LATTICE_PRUNED_H_ 22 #include <fst/fstlib.h> 23 #include <fst/fst-decl.h> 126 initial_num_arcs(100),
127 growth_ratio(1.5) { }
129 po->
Register(
"lattice-compose-beam", &lattice_compose_beam,
130 "Beam used in pruned lattice composition, which determines how " 131 "large the composed lattice may be.");
132 po->
Register(
"max-arcs", &max_arcs,
"Maximum number of arcs we allow in " 133 "any given lattice, during pruned composition (limits max size " 134 "of lattices; also see lattice-compose-beam).");
135 po->
Register(
"growth-ratio", &growth_ratio,
"Factor used in the lattice " 136 "composition algorithm; must be >1.0. Affects speed vs. " 137 "the optimality of the best-first composition.");
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
virtual void Register(const std::string &name, bool *ptr, const std::string &doc)=0
void ComposeCompactLatticePruned(const ComposeLatticePrunedOptions &opts, const CompactLattice &clat, fst::DeterministicOnDemandFst< fst::StdArc > *det_fst, CompactLattice *composed_clat)
Does pruned composition of a lattice 'clat' with a DeterministicOnDemandFst 'det_fst'; implements LM ...
fst::VectorFst< CompactLatticeArc > CompactLattice
float lattice_compose_beam
ComposeLatticePrunedOptions()
void Register(OptionsItf *po)