diff --git a/mira/Main.cpp b/mira/Main.cpp index a59cf2c8c..1c1eca14b 100644 --- a/mira/Main.cpp +++ b/mira/Main.cpp @@ -152,6 +152,8 @@ int main(int argc, char** argv) { initMoses(mosesConfigFile, verbosity);//, argc, argv); MosesDecoder* decoder = new MosesDecoder(referenceSentences) ; ScoreComponentCollection startWeights = decoder->getWeights(); + startWeights.L1Normalise(); + decoder->setWeights(startWeights); // print feature function and weights // TODO: scaling of feature functions @@ -250,6 +252,8 @@ int main(int argc, char** argv) { vector > featureValues(batchSize); vector > bleuScores(batchSize); + cout << "Using weights:" << decoder->getWeights() << endl; + // MODEL cerr << "Run decoder to get nbest wrt model score" << endl; decoder->getNBest(input,