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 18:43:18 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-09-08 18:43:18 +0400
commit7214be82d45dbb2f113e3f0aec25b25d9cd76632 (patch)
treeb35fc778412e62af40421156faf2f2ff27f79983 /moses/ScoreComponentCollection.h
parent1adf7d05214526e98e8c6c31b090fbd3b485e4d4 (diff)
lattice decoding with sparse features
Diffstat (limited to 'moses/ScoreComponentCollection.h')
-rw-r--r--moses/ScoreComponentCollection.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/moses/ScoreComponentCollection.h b/moses/ScoreComponentCollection.h
index c683dd822..b3620fd94 100644
--- a/moses/ScoreComponentCollection.h
+++ b/moses/ScoreComponentCollection.h
@@ -49,6 +49,9 @@ struct ScorePair
std::vector<float> denseScores;
std::map<std::string, float> sparseScores;
+ void PlusEquals(const ScorePair &other);
+ void PlusEquals(const std::string &key, float value);
+
void PlusEquals(const std::vector<float> &other)
{
CHECK(denseScores.size() == other.size());