void GlobalLexicalModel::Evaluate (const Hypothesis& hypo, ScoreComponentCollection* accumulator) const { accumulator->PlusEquals( this, GetFromCacheOrScorePhrase(hypo.GetCurrTargetPhrase()) ); }
void GlobalLexicalModel::Evaluate(const TargetPhrase& targetPhrase, ScoreComponentCollection* accumulator) const { accumulator->PlusEquals( this, GetFromCacheOrScorePhrase( targetPhrase ) ); }