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-02-22 00:03:35 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-02-22 00:03:35 +0400
commit01af82310b67ee66d95f2fd7da9fdf8c6acadfd2 (patch)
treee3674dc0cdc2e2015b445776295d2adb1f47d64c /moses/TranslationOption.h
parent86b848ef243a3087842340465935fb4855a4d348 (diff)
delete ScoreProducer
Diffstat (limited to 'moses/TranslationOption.h')
-rw-r--r--moses/TranslationOption.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/TranslationOption.h b/moses/TranslationOption.h
index 89ebdc05b..54b2bb6fb 100644
--- a/moses/TranslationOption.h
+++ b/moses/TranslationOption.h
@@ -73,7 +73,7 @@ protected:
//! possible to estimate, it is included here.
ScoreComponentCollection m_scoreBreakdown;
- typedef std::map<const ScoreProducer *, Scores> _ScoreCacheMap;
+ typedef std::map<const FeatureFunction *, Scores> _ScoreCacheMap;
_ScoreCacheMap m_cachedScores;
public:
@@ -146,7 +146,7 @@ public:
}
/** returns cached scores */
- inline const Scores *GetCachedScores(const ScoreProducer *scoreProducer) const {
+ inline const Scores *GetCachedScores(const FeatureFunction *scoreProducer) const {
_ScoreCacheMap::const_iterator it = m_cachedScores.find(scoreProducer);
if(it == m_cachedScores.end())
return NULL;
@@ -157,7 +157,7 @@ public:
/** Calculate future score and n-gram score of this trans option, plus the score breakdowns */
void CalcScore(const TranslationSystem* system);
- void CacheScores(const ScoreProducer &scoreProducer, const Scores &score);
+ void CacheScores(const FeatureFunction &scoreProducer, const Scores &score);
TO_STRING();