20 #ifndef KALDI_LAT_PHONE_ALIGN_LATTICE_H_ 21 #define KALDI_LAT_PHONE_ALIGN_LATTICE_H_ 22 #include <fst/fstlib.h> 23 #include <fst/fst-decl.h> 40 replace_output_symbols(false) { }
42 opts->
Register(
"reorder", &reorder,
"True if lattice was created from HCLG with " 43 "--reorder=true option.");
44 opts->
Register(
"remove-epsilon", &remove_epsilon,
"If true, removes epsilons from " 45 "the phone lattice; if replace-output-symbols==false, this will " 46 "mean that an arc can have multiple phones on it.");
47 opts->
Register(
"replace-output-symbols", &replace_output_symbols,
"If true, " 48 "the output symbols (typically words) will be replaced with "
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
fst::VectorFst< CompactLatticeArc > CompactLattice
bool replace_output_symbols
bool PhoneAlignLattice(const CompactLattice &lat, const TransitionModel &tmodel, const PhoneAlignLatticeOptions &opts, CompactLattice *lat_out)
Outputs a lattice in which the arcs correspond exactly to sequences of phones, so the boundaries betw...
PhoneAlignLatticeOptions()
void Register(OptionsItf *opts)