#include <GlobalLexicalModel.h>


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 |
| bool | SetParameter (const std::string &key, const std::string &value) |
Definition at line 34 of file GlobalLexicalModel.h.
| Moses::GlobalLexicalModel::GlobalLexicalModel | ( | const std::string & | line | ) |
Definition at line 12 of file GlobalLexicalModel.cpp.
References CHECK, Moses::Input, Moses::FactorCollection::Instance(), Moses::FeatureFunction::m_args, Moses::Word::SetFactor(), and SetParameter().

| Moses::GlobalLexicalModel::~GlobalLexicalModel | ( | ) | [virtual] |
Definition at line 51 of file GlobalLexicalModel.cpp.
| 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 182 of file GlobalLexicalModel.cpp.
References Moses::PhraseBasedFeatureContext::GetTargetPhrase(), and Moses::ScoreComponentCollection::PlusEquals().

| 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 125 of file GlobalLexicalModel.cpp.
| bool Moses::GlobalLexicalModel::IsUseable | ( | const FactorMask & | mask | ) | const [virtual] |
| bool Moses::GlobalLexicalModel::SetParameter | ( | const std::string & | key, | |
| const std::string & | value | |||
| ) | [virtual] |
Reimplemented from Moses::FeatureFunction.
Definition at line 37 of file GlobalLexicalModel.cpp.
Referenced by GlobalLexicalModel().

1.5.9