Public Member Functions | |
ArpaLmCompilerImpl (ArpaLmCompiler *parent, fst::StdVectorFst *fst, Symbol sub_eps) | |
virtual void | ConsumeNGram (const NGram &ngram, bool is_highest) |
Public Member Functions inherited from ArpaLmCompilerImplInterface | |
virtual | ~ArpaLmCompilerImplInterface () |
Private Types | |
typedef unordered_map< HistKey, StateId, typename HistKey::HashType > | HistoryMap |
Private Member Functions | |
StateId | AddStateWithBackoff (HistKey key, float backoff) |
void | CreateBackoff (HistKey key, StateId state, float weight) |
Private Attributes | |
ArpaLmCompiler * | parent_ |
fst::StdVectorFst * | fst_ |
Symbol | bos_symbol_ |
Symbol | eos_symbol_ |
Symbol | sub_eps_ |
StateId | eos_state_ |
HistoryMap | history_ |
Definition at line 114 of file arpa-lm-compiler.cc.
|
private |
Definition at line 133 of file arpa-lm-compiler.cc.
ArpaLmCompilerImpl | ( | ArpaLmCompiler * | parent, |
fst::StdVectorFst * | fst, | ||
Symbol | sub_eps | ||
) |
Definition at line 138 of file arpa-lm-compiler.cc.
References ArpaLmCompilerImpl< HistKey >::eos_state_, ArpaLmCompilerImpl< HistKey >::fst_, ArpaLmCompilerImpl< HistKey >::history_, and ArpaLmCompilerImpl< HistKey >::sub_eps_.
Definition at line 245 of file arpa-lm-compiler.cc.
References backoff, ArpaLmCompilerImpl< HistKey >::CreateBackoff(), ArpaLmCompilerImpl< HistKey >::fst_, and ArpaLmCompilerImpl< HistKey >::history_.
Referenced by ArpaLmCompilerImpl< HistKey >::ConsumeNGram().
Implements ArpaLmCompilerImplInterface.
Definition at line 157 of file arpa-lm-compiler.cc.
References ArpaLmCompilerImpl< HistKey >::AddStateWithBackoff(), NGram::backoff, ArpaLmCompilerImpl< HistKey >::bos_symbol_, ArpaLmCompilerImpl< HistKey >::eos_state_, ArpaLmCompilerImpl< HistKey >::eos_symbol_, ArpaLmCompilerImpl< HistKey >::fst_, ArpaLmCompilerImpl< HistKey >::history_, KALDI_ERR, KALDI_WARN, ArpaFileParser::LineReference(), NGram::logprob, ArpaLmCompilerImpl< HistKey >::parent_, ArpaFileParser::ShouldWarn(), ArpaLmCompilerImpl< HistKey >::sub_eps_, and NGram::words.
Definition at line 265 of file arpa-lm-compiler.cc.
References ArpaLmCompilerImpl< HistKey >::fst_, ArpaLmCompilerImpl< HistKey >::history_, and ArpaLmCompilerImpl< HistKey >::sub_eps_.
Referenced by ArpaLmCompilerImpl< HistKey >::AddStateWithBackoff().
|
private |
Definition at line 127 of file arpa-lm-compiler.cc.
Referenced by ArpaLmCompilerImpl< HistKey >::ConsumeNGram().
|
private |
Definition at line 131 of file arpa-lm-compiler.cc.
Referenced by ArpaLmCompilerImpl< HistKey >::ArpaLmCompilerImpl(), and ArpaLmCompilerImpl< HistKey >::ConsumeNGram().
|
private |
Definition at line 128 of file arpa-lm-compiler.cc.
Referenced by ArpaLmCompilerImpl< HistKey >::ConsumeNGram().
|
private |
Definition at line 126 of file arpa-lm-compiler.cc.
Referenced by ArpaLmCompilerImpl< HistKey >::AddStateWithBackoff(), ArpaLmCompilerImpl< HistKey >::ArpaLmCompilerImpl(), ArpaLmCompiler::Check(), ArpaLmCompilerImpl< HistKey >::ConsumeNGram(), ArpaLmCompilerImpl< HistKey >::CreateBackoff(), ArpaLmCompiler::HeaderAvailable(), ArpaLmCompiler::ReadComplete(), and ArpaLmCompiler::RemoveRedundantStates().
|
private |
Definition at line 134 of file arpa-lm-compiler.cc.
Referenced by ArpaLmCompilerImpl< HistKey >::AddStateWithBackoff(), ArpaLmCompilerImpl< HistKey >::ArpaLmCompilerImpl(), ArpaLmCompilerImpl< HistKey >::ConsumeNGram(), and ArpaLmCompilerImpl< HistKey >::CreateBackoff().
|
private |
Definition at line 125 of file arpa-lm-compiler.cc.
Referenced by ArpaLmCompilerImpl< HistKey >::ConsumeNGram().
|
private |