lm::ngram::LowerRestBuild< Model > Class Template Reference

#include <value_build.hh>

List of all members.

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

Detailed Description

template<class Model>
class lm::ngram::LowerRestBuild< Model >

Definition at line 64 of file value_build.hh.

Member Typedef Documentation

template<class Model>
typedef RestValue lm::ngram::LowerRestBuild< Model >::Value

Definition at line 66 of file value_build.hh.

Constructor & Destructor Documentation

template<class Model >
lm::ngram::LowerRestBuild< Model >::LowerRestBuild ( const Config config,
unsigned int  order,
const typename Model::Vocabulary &  vocab 
) [inline]

template<class Model >
lm::ngram::LowerRestBuild< Model >::~LowerRestBuild (  )  [inline]

Definition at line 50 of file value_build.cc.

References lm::ngram::LowerRestBuild< Model >::models_.

Member Function Documentation

template<class Model>
template<class Second >
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().

Here is the call graph for this function:

template<class Model>
void lm::ngram::LowerRestBuild< Model >::SetRest ( const WordIndex vocab_ids,
unsigned int  n,
RestWeights weights 
) const [inline]

template<class Model>
void lm::ngram::LowerRestBuild< Model >::SetRest ( const WordIndex ,
unsigned  int,
const Prob  
) const [inline]

Definition at line 72 of file value_build.hh.

Member Data Documentation

template<class Model>
const bool lm::ngram::LowerRestBuild< Model >::kMarkEvenLower = false [static]

Definition at line 87 of file value_build.hh.

template<class Model>
std::vector<const Model*> lm::ngram::LowerRestBuild< Model >::models_

template<class Model>
std::vector<float> lm::ngram::LowerRestBuild< Model >::unigrams_

The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:32:45 2017 for Moses by  doxygen 1.5.9