rename variable which is just used for caching lexicalised reordering scores

This commit is contained in:
Hieu Hoang 2013-05-08 12:37:16 +01:00
parent ad0472baeb
commit ecbedc0cee
2 changed files with 4 additions and 2 deletions

View File

@ -81,7 +81,7 @@ ostream& operator<<(ostream& out, const TranslationOption& possibleTranslation)
return out;
}
void TranslationOption::CacheLexReorderingScores(const FeatureFunction &producer, const Scores &score)
void TranslationOption::CacheLexReorderingScores(const LexicalReordering &producer, const Scores &score)
{
m_lexReorderingScores[&producer] = score;
}

View File

@ -41,6 +41,8 @@ namespace Moses
class PhraseDictionary;
class GenerationDictionary;
class FeatureFunction;
class LexicalReordering;
/** Available phrase translation for a particular sentence pair.
* In a multi-factor model, this is expanded from the entries in the
@ -139,7 +141,7 @@ public:
return &(it->second);
}
void CacheLexReorderingScores(const FeatureFunction &scoreProducer, const Scores &score);
void CacheLexReorderingScores(const LexicalReordering &scoreProducer, const Scores &score);
TO_STRING();