#include <GlobalLexicalModelUnlimited.h>


Classes | |
| struct | ThreadLocalStorage |
Public Member Functions | |
| GlobalLexicalModelUnlimited (const std::string &line) | |
| bool | Load (const std::string &filePathSource, const std::string &filePathTarget) |
| void | InitializeForInput (ttasksptr const &ttask) |
| Called before search and collecting of translation options. | |
| void | EvaluateWhenApplied (const Hypothesis &cur_hypo, ScoreComponentCollection *accumulator) const |
| void | EvaluateWhenApplied (const ChartHypothesis &, int, ScoreComponentCollection *) const |
| void | EvaluateWithSourceContext (const InputType &input, const InputPath &inputPath, const TargetPhrase &targetPhrase, const StackVec *stackVec, ScoreComponentCollection &scoreBreakdown, ScoreComponentCollection *estimatedScores=NULL) const |
| void | EvaluateTranslationOptionListWithSourceContext (const InputType &input, const TranslationOptionList &translationOptionList) const |
| void | EvaluateInIsolation (const Phrase &source, const TargetPhrase &targetPhrase, ScoreComponentCollection &scoreBreakdown, ScoreComponentCollection &estimatedScores) const |
| void | AddFeature (ScoreComponentCollection *accumulator, StringPiece sourceTrigger, StringPiece sourceWord, StringPiece targetTrigger, StringPiece targetWord) const |
Definition at line 37 of file GlobalLexicalModelUnlimited.h.
| Moses::GlobalLexicalModelUnlimited::GlobalLexicalModelUnlimited | ( | const std::string & | line | ) |
Definition at line 14 of file GlobalLexicalModelUnlimited.cpp.
References Load(), NULL, Moses::Tokenize(), and UTIL_THROW.

| void Moses::GlobalLexicalModelUnlimited::AddFeature | ( | ScoreComponentCollection * | accumulator, | |
| StringPiece | sourceTrigger, | |||
| StringPiece | sourceWord, | |||
| StringPiece | targetTrigger, | |||
| StringPiece | targetWord | |||
| ) | const |
Definition at line 323 of file GlobalLexicalModelUnlimited.cpp.
References Moses::ScoreComponentCollection::SparsePlusEquals(), and util::StringStream::str().
Referenced by EvaluateWhenApplied().


| void Moses::GlobalLexicalModelUnlimited::EvaluateInIsolation | ( | const Phrase & | source, | |
| const TargetPhrase & | targetPhrase, | |||
| ScoreComponentCollection & | scoreBreakdown, | |||
| ScoreComponentCollection & | estimatedScores | |||
| ) | const [inline, virtual] |
| void Moses::GlobalLexicalModelUnlimited::EvaluateTranslationOptionListWithSourceContext | ( | const InputType & | input, | |
| const TranslationOptionList & | translationOptionList | |||
| ) | const [inline, virtual] |
| void Moses::GlobalLexicalModelUnlimited::EvaluateWhenApplied | ( | const ChartHypothesis & | , | |
| int | , | |||
| ScoreComponentCollection * | ||||
| ) | const [inline] |
Definition at line 82 of file GlobalLexicalModelUnlimited.h.
| void Moses::GlobalLexicalModelUnlimited::EvaluateWhenApplied | ( | const Hypothesis & | hypo, | |
| ScoreComponentCollection * | accumulator | |||
| ) | const [virtual] |
This should be implemented for features that apply to phrase-based models.
Implements Moses::StatelessFeatureFunction.
Definition at line 118 of file GlobalLexicalModelUnlimited.cpp.
References AddFeature(), StringPiece::data(), FindStringPiece(), Moses::Hypothesis::GetCurrTargetPhrase(), Moses::Hypothesis::GetSize(), Moses::Sentence::GetSize(), Moses::Phrase::GetSize(), Moses::Word::GetString(), Moses::Hypothesis::GetWord(), Moses::Sentence::GetWord(), Moses::Phrase::GetWord(), util::MurmurHashNative(), StringPiece::size(), Moses::ScoreComponentCollection::SparsePlusEquals(), and util::StringStream::str().

| void Moses::GlobalLexicalModelUnlimited::EvaluateWithSourceContext | ( | const InputType & | input, | |
| const InputPath & | inputPath, | |||
| const TargetPhrase & | targetPhrase, | |||
| const StackVec * | stackVec, | |||
| ScoreComponentCollection & | scoreBreakdown, | |||
| ScoreComponentCollection * | estimatedScores = NULL | |||
| ) | const [inline, virtual] |
| void Moses::GlobalLexicalModelUnlimited::InitializeForInput | ( | ttasksptr const & | ttask | ) | [virtual] |
Called before search and collecting of translation options.
Reimplemented from Moses::FeatureFunction.
Definition at line 109 of file GlobalLexicalModelUnlimited.cpp.
References Moses::SentenceInput, and UTIL_THROW_IF2.
| bool Moses::GlobalLexicalModelUnlimited::Load | ( | const std::string & | filePathSource, | |
| const std::string & | filePathTarget | |||
| ) |
Definition at line 75 of file GlobalLexicalModelUnlimited.cpp.
Referenced by GlobalLexicalModelUnlimited().

1.5.9