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 <hieuhoang@gmail.com>2013-05-16 22:12:54 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-05-16 22:12:54 +0400
commitab51ccff6d2b7a8d44a9c5ca552fdaea369238c0 (patch)
tree41b82997fe08610e61c52aeb4357f46a1356f4fd /moses/ScoreComponentCollection.h
parentf04ec4c56df99946e5d9602aa0045fa544fbbe9a (diff)
assert error when outputting pure sparse feature by ShowWeights()
Diffstat (limited to 'moses/ScoreComponentCollection.h')
-rw-r--r--moses/ScoreComponentCollection.h1
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);