diff options
author | Matthias Huck <huck@i6.informatik.rwth-aachen.de> | 2015-02-09 16:52:05 +0300 |
---|---|---|
committer | Matthias Huck <huck@i6.informatik.rwth-aachen.de> | 2015-02-09 16:52:05 +0300 |
commit | 53ce063214d9c942847ddf7b2b7e3b43f2f882b6 (patch) | |
tree | e60928d34625b259fd8e3582b664d8a4d1c93373 /moses/ScoreComponentCollection.cpp | |
parent | ce80e53b30f766ab85cb58c4a2d06742b4a4f38b (diff) |
tuneable-components config parameter for feature functions
Diffstat (limited to 'moses/ScoreComponentCollection.cpp')
-rw-r--r-- | moses/ScoreComponentCollection.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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<float> scores = GetScoresForProducer( ff ); for (size_t j = 0; j<scores.size(); ++j) { - out << " " << scores[j]; + if (ff->IsTuneableComponent(j)) { + out << " " << scores[j]; + } } } |