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-09-08 21:22:55 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-09-08 21:22:55 +0400
commit16cfc786a8f535de225c450cca16e82304b5de8c (patch)
tree4a257c7ea53d32ca93f7a32c432d79a74728c45d /moses/ScoreComponentCollection.h
parent42fc86b259498d99d75e4fd956e74ecd8888440a (diff)
lattice decoding with sparse features
Diffstat (limited to 'moses/ScoreComponentCollection.h')
-rw-r--r--moses/ScoreComponentCollection.h6
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);