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/Util.cpp | |
parent | ce80e53b30f766ab85cb58c4a2d06742b4a4f38b (diff) |
tuneable-components config parameter for feature functions
Diffstat (limited to 'moses/Util.cpp')
-rw-r--r-- | moses/Util.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/moses/Util.cpp b/moses/Util.cpp index 5b6f16e2b..1d1df7d58 100644 --- a/moses/Util.cpp +++ b/moses/Util.cpp @@ -348,7 +348,11 @@ void PrintFeatureWeight(const FeatureFunction* ff) size_t numScoreComps = ff->GetNumScoreComponents(); vector<float> values = StaticData::Instance().GetAllWeights().GetScoresForProducer(ff); for (size_t i = 0; i < numScoreComps; ++i) { - cout << " " << values[i]; + if (ff->IsTuneableComponent(i)) { + cout << " " << values[i]; + } else { + cout << " UNTUNEABLECOMPONENT"; + } } cout << endl; |