#include <value_build.hh>
Public Types | |
typedef RestValue | Value |
Public Member Functions | |
LowerRestBuild (const Config &config, unsigned int order, const typename Model::Vocabulary &vocab) | |
~LowerRestBuild () | |
void | SetRest (const WordIndex *, unsigned int, const Prob &) const |
void | SetRest (const WordIndex *vocab_ids, unsigned int n, RestWeights &weights) const |
template<class Second > | |
bool | MarkExtends (RestWeights &weights, const Second &) const |
Public Attributes | |
std::vector< float > | unigrams_ |
std::vector< const Model * > | models_ |
Static Public Attributes | |
static const bool | kMarkEvenLower = false |
Definition at line 64 of file value_build.hh.
typedef RestValue lm::ngram::LowerRestBuild< Model >::Value |
Definition at line 66 of file value_build.hh.
lm::ngram::LowerRestBuild< Model >::LowerRestBuild | ( | const Config & | config, | |
unsigned int | order, | |||
const typename Model::Vocabulary & | vocab | |||
) | [inline] |
Definition at line 9 of file value_build.cc.
References lm::ngram::LowerRestBuild< Model >::models_, NULL, lm::Prob::prob, lm::ReadARPACounts(), lm::ReadNGram(), lm::ReadNGramHeader(), lm::ngram::Config::rest_lower_files, lm::ngram::LowerRestBuild< Model >::unigrams_, lm::ngram::Config::unknown_missing_logprob, UTIL_THROW_IF, and lm::ngram::Config::write_mmap.
lm::ngram::LowerRestBuild< Model >::~LowerRestBuild | ( | ) | [inline] |
Definition at line 50 of file value_build.cc.
References lm::ngram::LowerRestBuild< Model >::models_.
bool lm::ngram::LowerRestBuild< Model >::MarkExtends | ( | RestWeights & | weights, | |
const Second & | ||||
) | const [inline] |
Definition at line 82 of file value_build.hh.
References lm::RestWeights::prob, and util::UnsetSign().
void lm::ngram::LowerRestBuild< Model >::SetRest | ( | const WordIndex * | vocab_ids, | |
unsigned int | n, | |||
RestWeights & | weights | |||
) | const [inline] |
Definition at line 73 of file value_build.hh.
References lm::ngram::LowerRestBuild< Model >::models_, lm::RestWeights::rest, and lm::ngram::LowerRestBuild< Model >::unigrams_.
void lm::ngram::LowerRestBuild< Model >::SetRest | ( | const WordIndex * | , | |
unsigned | int, | |||
const Prob & | ||||
) | const [inline] |
Definition at line 72 of file value_build.hh.
const bool lm::ngram::LowerRestBuild< Model >::kMarkEvenLower = false [static] |
Definition at line 87 of file value_build.hh.
std::vector<const Model*> lm::ngram::LowerRestBuild< Model >::models_ |
Definition at line 91 of file value_build.hh.
Referenced by lm::ngram::LowerRestBuild< Model >::LowerRestBuild(), lm::ngram::LowerRestBuild< Model >::SetRest(), and lm::ngram::LowerRestBuild< Model >::~LowerRestBuild().
std::vector<float> lm::ngram::LowerRestBuild< Model >::unigrams_ |
Definition at line 89 of file value_build.hh.
Referenced by lm::ngram::LowerRestBuild< Model >::LowerRestBuild(), and lm::ngram::LowerRestBuild< Model >::SetRest().