diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-09-08 18:43:18 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-09-08 18:43:18 +0400 |
commit | 7214be82d45dbb2f113e3f0aec25b25d9cd76632 (patch) | |
tree | b35fc778412e62af40421156faf2f2ff27f79983 /moses/ScoreComponentCollection.h | |
parent | 1adf7d05214526e98e8c6c31b090fbd3b485e4d4 (diff) |
lattice decoding with sparse features
Diffstat (limited to 'moses/ScoreComponentCollection.h')
-rw-r--r-- | moses/ScoreComponentCollection.h | 3 |
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()); |