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
diff options
context:
space:
mode:
authorMatthias Huck <huck@i6.informatik.rwth-aachen.de>2015-02-09 16:52:05 +0300
committerMatthias Huck <huck@i6.informatik.rwth-aachen.de>2015-02-09 16:52:05 +0300
commit53ce063214d9c942847ddf7b2b7e3b43f2f882b6 (patch)
treee60928d34625b259fd8e3582b664d8a4d1c93373 /moses/Util.cpp
parentce80e53b30f766ab85cb58c4a2d06742b4a4f38b (diff)
tuneable-components config parameter for feature functions
Diffstat (limited to 'moses/Util.cpp')
-rw-r--r--moses/Util.cpp6
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;