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:
authorHieu Hoang <hieu@hoang.co.uk>2013-02-11 22:01:33 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-02-11 22:01:33 +0400
commit1a8cd20b51193335be1c852c60f0430d33de1710 (patch)
tree789ce94ffb586a836ba9e28c09b15df29ca21b0f /moses-cmd
parente3ea93acb72345bb2a4d28465deb9506e7f6841f (diff)
-print-id for christian buck and phi
Diffstat (limited to 'moses-cmd')
-rw-r--r--moses-cmd/Main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/moses-cmd/Main.cpp b/moses-cmd/Main.cpp
index a7f63ebec..55f4daa94 100644
--- a/moses-cmd/Main.cpp
+++ b/moses-cmd/Main.cpp
@@ -164,6 +164,10 @@ public:
OutputInput(out, bestHypo);
out << "||| ";
}
+ if (staticData.GetParam("print-id").size() && Scan<bool>(staticData.GetParam("print-id")[0]) ) {
+ out << m_source->GetTranslationId() << " ";
+ }
+
OutputBestSurface(
out,
bestHypo,