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:
authorKenneth Heafield <github@kheafield.com>2014-03-10 22:50:45 +0400
committerKenneth Heafield <github@kheafield.com>2014-03-10 22:50:45 +0400
commitca9e3aaf8497281000ac4cc8731a22b0bc9df237 (patch)
tree4c4b62a1480f536285d95b4af96cc91e25518ea4 /moses-cmd
parent3f7778db9592f104664ae503dfea557ae8522960 (diff)
Fix -output-hypo-score
Diffstat (limited to 'moses-cmd')
-rw-r--r--moses-cmd/Main.cpp3
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 << "||| ";