diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2014-06-06 23:35:58 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2014-06-06 23:35:58 +0400 |
commit | 747661ba3e01855992a49173da80632285160c4a (patch) | |
tree | b3263391f4e62a12755d68f7c38d30ebb3dfa317 /moses | |
parent | 0114766b54f0a77f6008c51363556404d91b68b6 (diff) |
sparse features in on-disk-pt
Diffstat (limited to 'moses')
-rw-r--r-- | moses/ScoreComponentCollection.cpp | 2 | ||||
-rw-r--r-- | moses/ScoreComponentCollection.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/moses/ScoreComponentCollection.cpp b/moses/ScoreComponentCollection.cpp index e252d1a7a..52ec00dd4 100644 --- a/moses/ScoreComponentCollection.cpp +++ b/moses/ScoreComponentCollection.cpp @@ -214,7 +214,7 @@ void ScoreComponentCollection::Save(const string& filename) const void ScoreComponentCollection:: -Assign(const FeatureFunction* sp, const string line) +Assign(const FeatureFunction* sp, const string &line) { istringstream istr(line); while(istr) { diff --git a/moses/ScoreComponentCollection.h b/moses/ScoreComponentCollection.h index 68287296f..743be354c 100644 --- a/moses/ScoreComponentCollection.h +++ b/moses/ScoreComponentCollection.h @@ -287,7 +287,7 @@ public: //Read sparse features from string - void Assign(const FeatureFunction* sp, const std::string line); + void Assign(const FeatureFunction* sp, const std::string &line); // shortcut: setting the value directly using the feature name void Assign(const std::string name, float score) { |