diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-21 16:00:26 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-21 16:00:26 +0400 |
commit | f4cf5f152b3c3736236a99ff66a6b8148d81e745 (patch) | |
tree | b4373cfa1cadecf9b2de7dbe5037a0ba8a34a964 /moses/ScoreComponentCollection.cpp | |
parent | 42ddc084b4b6bff7697d48f4a879a7d93e3bb923 (diff) |
delete references to LMList
Diffstat (limited to 'moses/ScoreComponentCollection.cpp')
-rw-r--r-- | moses/ScoreComponentCollection.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/moses/ScoreComponentCollection.cpp b/moses/ScoreComponentCollection.cpp index b1b171465..c836ea5b3 100644 --- a/moses/ScoreComponentCollection.cpp +++ b/moses/ScoreComponentCollection.cpp @@ -32,20 +32,6 @@ float ScoreComponentCollection::GetWeightedScore() const return m_scores.inner_product(StaticData::Instance().GetAllWeights().m_scores); } -void ScoreComponentCollection::ZeroAllLM(const LMList& lmList) -{ - for (LMList::const_iterator i = lmList.begin(); i != lmList.end(); ++i) { - Assign(*i, 0); - } -} - -void ScoreComponentCollection::PlusEqualsAllLM(const LMList& lmList, const ScoreComponentCollection& rhs) -{ - for (LMList::const_iterator i = lmList.begin(); i != lmList.end(); ++i) { - PlusEquals(*i,rhs); - } -} - void ScoreComponentCollection::MultiplyEquals(float scalar) { m_scores *= scalar; |