diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-05-16 22:12:54 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-05-16 22:12:54 +0400 |
commit | ab51ccff6d2b7a8d44a9c5ca552fdaea369238c0 (patch) | |
tree | 41b82997fe08610e61c52aeb4357f46a1356f4fd /moses/ScoreComponentCollection.h | |
parent | f04ec4c56df99946e5d9602aa0045fa544fbbe9a (diff) |
assert error when outputting pure sparse feature by ShowWeights()
Diffstat (limited to 'moses/ScoreComponentCollection.h')
-rw-r--r-- | moses/ScoreComponentCollection.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/moses/ScoreComponentCollection.h b/moses/ScoreComponentCollection.h index 8e9ce055d..2a8848136 100644 --- a/moses/ScoreComponentCollection.h +++ b/moses/ScoreComponentCollection.h @@ -316,7 +316,6 @@ public: std::vector<float> GetScoresForProducer(const FeatureFunction* sp) const { size_t components = sp->GetNumScoreComponents(); - assert(components > 0); std::vector<float> res(components); IndexPair indexes = GetIndexes(sp); |