diff options
Diffstat (limited to 'moses/LM/Base.h')
-rw-r--r-- | moses/LM/Base.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/moses/LM/Base.h b/moses/LM/Base.h index eb0a98ca1..cfe92c6ba 100644 --- a/moses/LM/Base.h +++ b/moses/LM/Base.h @@ -72,6 +72,9 @@ public: * \param oovCount number of LM OOVs */ virtual void CalcScore(const Phrase &phrase, float &fullScore, float &ngramScore, std::size_t &oovCount) const = 0; + virtual void CalcScoreWithContext(ttasksptr const& ttask, const Phrase &phrase, float &fullScore, float &ngramScore, std::size_t &oovCount) const { + CalcScore(phrase, fullScore, ngramScore, oovCount); + } virtual void CalcScoreFromCache(const Phrase &phrase, float &fullScore, float &ngramScore, std::size_t &oovCount) const { } |