rename variable which is just used for caching lexicalised reordering scores

This commit is contained in:
Hieu Hoang 2013-05-08 12:42:30 +01:00
parent ecbedc0cee
commit 9081479f88
2 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@ public:
void SetAdditionalScoreComponents(size_t number);
size_t GetNumberOfTypes() const;
FeatureFunction *GetScoreProducer() const {
LexicalReordering *GetScoreProducer() const {
return m_scoreProducer;
}
@ -63,7 +63,7 @@ public:
}
private:
void SetScoreProducer(FeatureFunction* scoreProducer) {
void SetScoreProducer(LexicalReordering* scoreProducer) {
m_scoreProducer = scoreProducer;
}
@ -72,7 +72,7 @@ private:
}
std::string m_modelString;
FeatureFunction *m_scoreProducer;
LexicalReordering *m_scoreProducer;
ModelType m_modelType;
bool m_phraseBased;
bool m_collapseScores;

View File

@ -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;