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
ecbedc0cee
commit
9081479f88
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user