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 19:02:59 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-09-08 19:02:59 +0400
commit42fc86b259498d99d75e4fd956e74ecd8888440a (patch)
treedc288a420e68d05f03b495ccf282c4f80feeb96c /moses/ScoreComponentCollection.h
parent7214be82d45dbb2f113e3f0aec25b25d9cd76632 (diff)
lattice decoding with sparse features
Diffstat (limited to 'moses/ScoreComponentCollection.h')
-rw-r--r--moses/ScoreComponentCollection.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/ScoreComponentCollection.h b/moses/ScoreComponentCollection.h
index b3620fd94..08a6eb927 100644
--- a/moses/ScoreComponentCollection.h
+++ b/moses/ScoreComponentCollection.h
@@ -47,10 +47,10 @@ namespace Moses
struct ScorePair
{
std::vector<float> denseScores;
- std::map<std::string, float> sparseScores;
+ std::map<StringPiece, float> sparseScores;
void PlusEquals(const ScorePair &other);
- void PlusEquals(const std::string &key, float value);
+ void PlusEquals(const StringPiece &key, float value);
void PlusEquals(const std::vector<float> &other)
{