diff --git a/moses/FF/GlobalLexicalModel.cpp b/moses/FF/GlobalLexicalModel.cpp index 986b427b0..fa4b49685 100644 --- a/moses/FF/GlobalLexicalModel.cpp +++ b/moses/FF/GlobalLexicalModel.cpp @@ -173,10 +173,12 @@ float GlobalLexicalModel::GetFromCacheOrScorePhrase( const TargetPhrase& targetP return score; } -void GlobalLexicalModel::EvaluateInIsolation(const Phrase &source +void GlobalLexicalModel::EvaluateWithSourceContext(const InputType &input + , const InputPath &inputPath , const TargetPhrase &targetPhrase + , const StackVec *stackVec , ScoreComponentCollection &scoreBreakdown - , ScoreComponentCollection &estimatedScores) const + , ScoreComponentCollection *estimatedScores) const { scoreBreakdown.PlusEquals( this, GetFromCacheOrScorePhrase(targetPhrase) ); } diff --git a/moses/FF/GlobalLexicalModel.h b/moses/FF/GlobalLexicalModel.h index 1701195f7..6957d7d7c 100644 --- a/moses/FF/GlobalLexicalModel.h +++ b/moses/FF/GlobalLexicalModel.h @@ -75,7 +75,8 @@ public: void EvaluateInIsolation(const Phrase &source , const TargetPhrase &targetPhrase , ScoreComponentCollection &scoreBreakdown - , ScoreComponentCollection &estimatedScores) const; + , ScoreComponentCollection &estimatedScores) const { + } void EvaluateWhenApplied(const Hypothesis& hypo, ScoreComponentCollection* accumulator) const { @@ -89,8 +90,7 @@ public: , const TargetPhrase &targetPhrase , const StackVec *stackVec , ScoreComponentCollection &scoreBreakdown - , ScoreComponentCollection *estimatedScores = NULL) const { - } + , ScoreComponentCollection *estimatedScores = NULL) const; void EvaluateTranslationOptionListWithSourceContext(const InputType &input , const TranslationOptionList &translationOptionList) const {