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
path: root/moses/FF
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2015-10-02 22:24:10 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-16 22:03:22 +0300
commitfbaeccb7725a1f141d34d6068a05ac23211e5f1a (patch)
tree74bd28782022a711412c5d232436241ca1a90649 /moses/FF
parentcfb1ab34c7d3178e4264d5bba876ddef6125e18f (diff)
use util::StringStream
Diffstat (limited to 'moses/FF')
-rw-r--r--moses/FF/FeatureFunction.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/moses/FF/FeatureFunction.cpp b/moses/FF/FeatureFunction.cpp
index 08ad26db8..9b1ea473b 100644
--- a/moses/FF/FeatureFunction.cpp
+++ b/moses/FF/FeatureFunction.cpp
@@ -112,12 +112,10 @@ void FeatureFunction::ParseLine(const std::string &line)
if (m_description == "") {
size_t index = description_counts.count(nameStub);
- ostringstream dstream;
- dstream << nameStub;
- dstream << index;
+ string descr = SPrint(nameStub) + SPrint(index);
description_counts.insert(nameStub);
- m_description = dstream.str();
+ m_description = descr;
}
}