#include <kaldi-rnnlm.h>

Public Member Functions | |
| KaldiRnnlmWrapper (const KaldiRnnlmWrapperOpts &opts, const std::string &unk_prob_rspecifier, const std::string &word_symbol_table_rxfilename, const std::string &rnnlm_rxfilename) | |
| int32 | GetHiddenLayerSize () const |
| int32 | GetEos () const |
| BaseFloat | GetLogProb (int32 word, const std::vector< int32 > &wseq, const std::vector< float > &context_in, std::vector< float > *context_out) |
Private Member Functions | |
| KALDI_DISALLOW_COPY_AND_ASSIGN (KaldiRnnlmWrapper) | |
Private Attributes | |
| rnnlm::CRnnLM | rnnlm_ |
| std::vector< std::string > | label_to_word_ |
| int32 | eos_ |
Definition at line 47 of file kaldi-rnnlm.h.
| KaldiRnnlmWrapper | ( | const KaldiRnnlmWrapperOpts & | opts, |
| const std::string & | unk_prob_rspecifier, | ||
| const std::string & | word_symbol_table_rxfilename, | ||
| const std::string & | rnnlm_rxfilename | ||
| ) |
Definition at line 28 of file kaldi-rnnlm.cc.
References KaldiRnnlmWrapper::eos_, KaldiRnnlmWrapperOpts::eos_symbol, rnnlm::i, KALDI_ERR, KaldiRnnlmWrapper::label_to_word_, CRnnLM::restoreNet(), KaldiRnnlmWrapper::rnnlm_, CRnnLM::setRandSeed(), CRnnLM::setRnnLMFile(), CRnnLM::setUnkPenalty(), CRnnLM::setUnkSym(), and KaldiRnnlmWrapperOpts::unk_symbol.
|
inline |
Definition at line 56 of file kaldi-rnnlm.h.
|
inline |
Definition at line 54 of file kaldi-rnnlm.h.
Referenced by RnnlmDeterministicFst::RnnlmDeterministicFst().
| BaseFloat GetLogProb | ( | int32 | word, |
| const std::vector< int32 > & | wseq, | ||
| const std::vector< float > & | context_in, | ||
| std::vector< float > * | context_out | ||
| ) |
Definition at line 59 of file kaldi-rnnlm.cc.
References CRnnLM::computeConditionalLogprob(), rnnlm::i, KALDI_ASSERT, KaldiRnnlmWrapper::label_to_word_, and KaldiRnnlmWrapper::rnnlm_.
|
private |
|
private |
Definition at line 65 of file kaldi-rnnlm.h.
Referenced by KaldiRnnlmWrapper::KaldiRnnlmWrapper().
|
private |
Definition at line 64 of file kaldi-rnnlm.h.
Referenced by KaldiRnnlmWrapper::GetLogProb(), and KaldiRnnlmWrapper::KaldiRnnlmWrapper().
|
private |
Definition at line 63 of file kaldi-rnnlm.h.
Referenced by RnnlmDeterministicFst::Final(), RnnlmDeterministicFst::GetArc(), KaldiRnnlmWrapper::GetLogProb(), KaldiRnnlmWrapper::KaldiRnnlmWrapper(), and RnnlmDeterministicFst::RnnlmDeterministicFst().