21 #ifndef KALDI_LM_ARPA_LM_COMPILER_H_    22 #define KALDI_LM_ARPA_LM_COMPILER_H_    24 #include <fst/fstlib.h>    30 class ArpaLmCompilerImplInterface;
    35                  fst::SymbolTable* symbols)
    65 #endif  // KALDI_LM_ARPA_LM_COMPILER_H_ ArpaFileParser is an abstract base class for ARPA LM file conversion. 
 
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
 
ArpaLmCompiler(const ArpaParseOptions &options, int sub_eps, fst::SymbolTable *symbols)
 
virtual void ConsumeNGram(const NGram &ngram)
Pure override that must be implemented to process current n-gram. 
 
Options that control ArpaFileParser. 
 
const fst::StdVectorFst & Fst() const
 
fst::StdVectorFst * MutableFst()
 
fst::StdVectorFst StdVectorFst
 
virtual void HeaderAvailable()
Override function called to signal that ARPA header with the expected number of n-grams has been read...
 
ArpaLmCompilerImplInterface * impl_
 
void RemoveRedundantStates()
 
A parsed n-gram from ARPA LM file. 
 
virtual void ReadComplete()
Override function called after the last n-gram has been consumed.