diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-09-08 21:22:55 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-09-08 21:22:55 +0400 |
commit | 16cfc786a8f535de225c450cca16e82304b5de8c (patch) | |
tree | 4a257c7ea53d32ca93f7a32c432d79a74728c45d /moses/ScoreComponentCollection.h | |
parent | 42fc86b259498d99d75e4fd956e74ecd8888440a (diff) |
lattice decoding with sparse features
Diffstat (limited to 'moses/ScoreComponentCollection.h')
-rw-r--r-- | moses/ScoreComponentCollection.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/moses/ScoreComponentCollection.h b/moses/ScoreComponentCollection.h index 08a6eb927..5eb353981 100644 --- a/moses/ScoreComponentCollection.h +++ b/moses/ScoreComponentCollection.h @@ -49,6 +49,12 @@ struct ScorePair std::vector<float> denseScores; std::map<StringPiece, float> sparseScores; + ScorePair() + {} + ScorePair(const std::vector<float> &other) + :denseScores(other) + {} + void PlusEquals(const ScorePair &other); void PlusEquals(const StringPiece &key, float value); |