Moses::GlobalLexicalModel Class Reference

#include <GlobalLexicalModel.h>

Inheritance diagram for Moses::GlobalLexicalModel:

Inheritance graph
[legend]
Collaboration diagram for Moses::GlobalLexicalModel:

Collaboration graph
[legend]

List of all members.

Classes

struct  ThreadLocalStorage

Public Member Functions

 GlobalLexicalModel (const std::string &line)
virtual ~GlobalLexicalModel ()
void InitializeForInput (Sentence const &in)
bool IsUseable (const FactorMask &mask) const
void Evaluate (const PhraseBasedFeatureContext &context, ScoreComponentCollection *accumulator) const
void EvaluateChart (const ChartBasedFeatureContext &context, ScoreComponentCollection *accumulator) const
void SetParameter (const std::string &key, const std::string &value)


Detailed Description

Discriminatively trained global lexicon model This is a implementation of Mauser et al., 2009's model that predicts each output word from _all_ the input words. The intuition behind this feature is that it uses context words for disambiguation

Definition at line 34 of file GlobalLexicalModel.h.


Constructor & Destructor Documentation

Moses::GlobalLexicalModel::GlobalLexicalModel ( const std::string &  line  ) 

Moses::GlobalLexicalModel::~GlobalLexicalModel (  )  [virtual]

Definition at line 39 of file GlobalLexicalModel.cpp.


Member Function Documentation

void Moses::GlobalLexicalModel::Evaluate ( const PhraseBasedFeatureContext context,
ScoreComponentCollection accumulator 
) const [virtual]

This should be implemented for features that apply to phrase-based models.

Reimplemented from Moses::StatelessFeatureFunction.

Definition at line 170 of file GlobalLexicalModel.cpp.

References Moses::PhraseBasedFeatureContext::GetTargetPhrase(), and Moses::ScoreComponentCollection::PlusEquals().

Here is the call graph for this function:

void Moses::GlobalLexicalModel::EvaluateChart ( const ChartBasedFeatureContext context,
ScoreComponentCollection accumulator 
) const [inline, virtual]

Same for chart-based features.

Reimplemented from Moses::StatelessFeatureFunction.

Definition at line 75 of file GlobalLexicalModel.h.

void Moses::GlobalLexicalModel::InitializeForInput ( Sentence const &  in  ) 

Definition at line 113 of file GlobalLexicalModel.cpp.

bool Moses::GlobalLexicalModel::IsUseable ( const FactorMask mask  )  const [virtual]

Implements Moses::FeatureFunction.

Definition at line 177 of file GlobalLexicalModel.cpp.

void Moses::GlobalLexicalModel::SetParameter ( const std::string &  key,
const std::string &  value 
) [virtual]

Reimplemented from Moses::FeatureFunction.

Definition at line 26 of file GlobalLexicalModel.cpp.


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

Generated on Fri Jul 25 00:31:35 2014 for Moses by  doxygen 1.5.9