Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieu@hoang.co.uk>2013-05-08 15:42:30 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-05-08 15:42:30 +0400
commit9081479f88566f511f17e732e3209e16ee48bb36 (patch)
tree7acc53d6ab5c2a1f04033dfef36994ba7f73226f /moses/TranslationOption.h
parentecbedc0ceeaa63745c71c9de53265fa4ff58f92e (diff)
rename variable which is just used for caching lexicalised reordering scores
Diffstat (limited to 'moses/TranslationOption.h')
-rw-r--r--moses/TranslationOption.h4
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;