diff options
author | Jeroen Vermeulen <jtv@precisiontranslationtools.com> | 2015-04-30 08:05:11 +0300 |
---|---|---|
committer | Jeroen Vermeulen <jtv@precisiontranslationtools.com> | 2015-04-30 08:05:11 +0300 |
commit | eca582410006443d0b101a9ae188e302f34f8a03 (patch) | |
tree | 35212762fbe666330205e2a9ef09d16a918d077c /moses/ScoreComponentCollection.cpp | |
parent | 85acdc62b1548863a6db18bebb538406cfcfa038 (diff) |
Remove trailing whitespace in C++ files.
Diffstat (limited to 'moses/ScoreComponentCollection.cpp')
-rw-r--r-- | moses/ScoreComponentCollection.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/moses/ScoreComponentCollection.cpp b/moses/ScoreComponentCollection.cpp index 9397cba2b..d07fb5f00 100644 --- a/moses/ScoreComponentCollection.cpp +++ b/moses/ScoreComponentCollection.cpp @@ -66,7 +66,7 @@ RegisterScoreProducer(FeatureFunction* scoreProducer) s_denseVectorSize = scoreProducer->SetIndex(s_denseVectorSize); VERBOSE(1, "FeatureFunction: " << scoreProducer->GetScoreProducerDescription() - << " start: " << start + << " start: " << start << " end: " << (s_denseVectorSize-1) << endl); } @@ -193,19 +193,19 @@ void ScoreComponentCollection::Save(ostream& out, bool multiline) const linesep = " "; } - std::vector<FeatureFunction*> const& all_ff + std::vector<FeatureFunction*> const& all_ff = FeatureFunction::GetFeatureFunctions(); BOOST_FOREACH(FeatureFunction const* ff, all_ff) { string name = ff->GetScoreProducerDescription(); size_t i = ff->GetIndex(); - if (ff->GetNumScoreComponents() == 1) + if (ff->GetNumScoreComponents() == 1) out << name << sep << m_scores[i] << linesep; - else + else { size_t stop = i + ff->GetNumScoreComponents(); boost::format fmt("%s_%d"); - for (size_t k = 1; i < stop; ++i, ++k) + for (size_t k = 1; i < stop; ++i, ++k) out << fmt % name % k << sep << m_scores[i] << linesep; } } |