mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
rename variable which is just used for caching lexicalised reordering scores
This commit is contained in:
parent
ad0472baeb
commit
ecbedc0cee
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user