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 SetParameter (const std::string &key, const std::string &value)
void InitializeForInput (ttasksptr const &ttask)
 Called before search and collecting of translation options.
bool IsUseable (const FactorMask &mask) const
void EvaluateInIsolation (const Phrase &source, const TargetPhrase &targetPhrase, ScoreComponentCollection &scoreBreakdown, ScoreComponentCollection &estimatedFutureScore) const
void EvaluateWhenApplied (const Hypothesis &hypo, ScoreComponentCollection *accumulator) const
void EvaluateWhenApplied (const ChartHypothesis &hypo, ScoreComponentCollection *accumulator) const
void EvaluateWithSourceContext (const InputType &input, const InputPath &inputPath, const TargetPhrase &targetPhrase, const StackVec *stackVec, ScoreComponentCollection &scoreBreakdown, ScoreComponentCollection *estimatedFutureScore=NULL) const
void EvaluateTranslationOptionListWithSourceContext (const InputType &input, const TranslationOptionList &translationOptionList) const


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 41 of file GlobalLexicalModel.cpp.


Member Function Documentation

void Moses::GlobalLexicalModel::EvaluateInIsolation ( const Phrase source,
const TargetPhrase targetPhrase,
ScoreComponentCollection scoreBreakdown,
ScoreComponentCollection estimatedFutureScore 
) const [virtual]

Implements Moses::FeatureFunction.

Definition at line 171 of file GlobalLexicalModel.cpp.

References Moses::ScoreComponentCollection::PlusEquals().

Here is the call graph for this function:

void Moses::GlobalLexicalModel::EvaluateTranslationOptionListWithSourceContext ( const InputType input,
const TranslationOptionList translationOptionList 
) const [inline, virtual]

Implements Moses::FeatureFunction.

Definition at line 93 of file GlobalLexicalModel.h.

void Moses::GlobalLexicalModel::EvaluateWhenApplied ( const ChartHypothesis hypo,
ScoreComponentCollection accumulator 
) const [inline, virtual]

Same for chart-based features.

Implements Moses::StatelessFeatureFunction.

Definition at line 81 of file GlobalLexicalModel.h.

void Moses::GlobalLexicalModel::EvaluateWhenApplied ( const Hypothesis hypo,
ScoreComponentCollection accumulator 
) const [inline, virtual]

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

Implements Moses::StatelessFeatureFunction.

Definition at line 78 of file GlobalLexicalModel.h.

void Moses::GlobalLexicalModel::EvaluateWithSourceContext ( const InputType input,
const InputPath inputPath,
const TargetPhrase targetPhrase,
const StackVec stackVec,
ScoreComponentCollection scoreBreakdown,
ScoreComponentCollection estimatedFutureScore = NULL 
) const [inline, virtual]

Implements Moses::FeatureFunction.

Definition at line 85 of file GlobalLexicalModel.h.

void Moses::GlobalLexicalModel::InitializeForInput ( ttasksptr const &  ttask  )  [virtual]

Called before search and collecting of translation options.

Reimplemented from Moses::FeatureFunction.

Definition at line 112 of file GlobalLexicalModel.cpp.

References Moses::SentenceInput, and UTIL_THROW_IF2.

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

Implements Moses::FeatureFunction.

Definition at line 179 of file GlobalLexicalModel.cpp.

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

Reimplemented from Moses::FeatureFunction.

Definition at line 28 of file GlobalLexicalModel.cpp.


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

Generated on Sun Aug 30 00:32:55 2015 for Moses by  doxygen 1.5.9