diff options
author | Kenneth Heafield <github@kheafield.com> | 2014-03-10 22:50:45 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2014-03-10 22:50:45 +0400 |
commit | ca9e3aaf8497281000ac4cc8731a22b0bc9df237 (patch) | |
tree | 4c4b62a1480f536285d95b4af96cc91e25518ea4 /moses-cmd | |
parent | 3f7778db9592f104664ae503dfea557ae8522960 (diff) |
Fix -output-hypo-score
Diffstat (limited to 'moses-cmd')
-rw-r--r-- | moses-cmd/Main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/moses-cmd/Main.cpp b/moses-cmd/Main.cpp index f5f52583c..0957ea241 100644 --- a/moses-cmd/Main.cpp +++ b/moses-cmd/Main.cpp @@ -299,6 +299,9 @@ public: if (!staticData.UseMBR()) { bestHypo = manager.GetBestHypothesis(); if (bestHypo) { + if (StaticData::Instance().GetOutputHypoScore()) { + out << bestHypo->GetTotalScore() << ' '; + } if (staticData.IsPathRecoveryEnabled()) { OutputInput(out, bestHypo); out << "||| "; |