diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-13 16:19:25 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-13 16:19:25 +0400 |
commit | a8cf5c3472d87040a8b199a12f345e752d2d9870 (patch) | |
tree | 153db8e48176a488ffa958e51e9b292221754935 /moses/ScoreComponentCollection.cpp | |
parent | 3a10197edb6e31409149c60ad804c979d938c609 (diff) |
port PhraseDictionaryMultiModel to new format
Diffstat (limited to 'moses/ScoreComponentCollection.cpp')
-rw-r--r-- | moses/ScoreComponentCollection.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/moses/ScoreComponentCollection.cpp b/moses/ScoreComponentCollection.cpp index bd926012d..75241f769 100644 --- a/moses/ScoreComponentCollection.cpp +++ b/moses/ScoreComponentCollection.cpp @@ -186,6 +186,14 @@ void ScoreComponentCollection::Assign(const FeatureFunction* sp, const string li } } +void ScoreComponentCollection::ZeroDenseFeatures(const FeatureFunction* sp) +{ + size_t numScores = sp->GetNumScoreComponents(); + Scores vec(numScores, 0); + + Assign(sp, vec); +} + } |