From 53ce063214d9c942847ddf7b2b7e3b43f2f882b6 Mon Sep 17 00:00:00 2001 From: Matthias Huck Date: Mon, 9 Feb 2015 13:52:05 +0000 Subject: tuneable-components config parameter for feature functions --- moses/ScoreComponentCollection.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'moses/ScoreComponentCollection.cpp') diff --git a/moses/ScoreComponentCollection.cpp b/moses/ScoreComponentCollection.cpp index a1c864692..e656743ec 100644 --- a/moses/ScoreComponentCollection.cpp +++ b/moses/ScoreComponentCollection.cpp @@ -332,14 +332,16 @@ void ScoreComponentCollection::OutputFeatureScores( std::ostream& out bool labeledOutput = staticData.IsLabeledNBestList(); // regular features (not sparse) - if (ff->GetNumScoreComponents() != 0) { + if (ff->HasTuneableComponents()) { if( labeledOutput && lastName != ff->GetScoreProducerDescription() ) { lastName = ff->GetScoreProducerDescription(); out << " " << lastName << "="; } vector scores = GetScoresForProducer( ff ); for (size_t j = 0; jIsTuneableComponent(j)) { + out << " " << scores[j]; + } } } -- cgit v1.2.3