diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-08 15:42:30 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-08 15:42:30 +0400 |
commit | 9081479f88566f511f17e732e3209e16ee48bb36 (patch) | |
tree | 7acc53d6ab5c2a1f04033dfef36994ba7f73226f /moses/TranslationOption.h | |
parent | ecbedc0ceeaa63745c71c9de53265fa4ff58f92e (diff) |
rename variable which is just used for caching lexicalised reordering scores
Diffstat (limited to 'moses/TranslationOption.h')
-rw-r--r-- | moses/TranslationOption.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/TranslationOption.h b/moses/TranslationOption.h index 5a3fda726..935c7c9cd 100644 --- a/moses/TranslationOption.h +++ b/moses/TranslationOption.h @@ -69,7 +69,7 @@ protected: const WordsRange m_sourceWordsRange; /*< word position in the input that are covered by this translation option */ float m_futureScore; /*< estimate of total cost when using this translation option, includes language model probabilities */ - typedef std::map<const FeatureFunction*, Scores> _ScoreCacheMap; + typedef std::map<const LexicalReordering*, Scores> _ScoreCacheMap; _ScoreCacheMap m_lexReorderingScores; public: @@ -133,7 +133,7 @@ public: } /** returns cached scores */ - inline const Scores *GetLexReorderingScores(const FeatureFunction *scoreProducer) const { + inline const Scores *GetLexReorderingScores(const LexicalReordering *scoreProducer) const { _ScoreCacheMap::const_iterator it = m_lexReorderingScores.find(scoreProducer); if(it == m_lexReorderingScores.end()) return NULL; |