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 <hieuhoang@gmail.com>2013-08-15 23:20:44 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-08-15 23:20:44 +0400
commit841ce108a5258117920289448b57abe684375348 (patch)
tree372e9bdc018d45f04c5d77b4f14a05c75d4de8b4 /moses-cmd
parent5fa6e506b1b3c3a0c4d9d3ebc9271bd306864085 (diff)
add phrase table caching
Diffstat (limited to 'moses-cmd')
-rw-r--r--moses-cmd/IOWrapper.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/moses-cmd/IOWrapper.cpp b/moses-cmd/IOWrapper.cpp
index 56b960887..b2be685c0 100644
--- a/moses-cmd/IOWrapper.cpp
+++ b/moses-cmd/IOWrapper.cpp
@@ -379,6 +379,10 @@ void IOWrapper::OutputBestHypo(const Hypothesis *hypo, long /*translationId*/, c
Backtrack(hypo);
VERBOSE(3,"0" << std::endl);
if (!m_surpressSingleBestOutput) {
+ if (StaticData::Instance().GetOutputHypoScore()) {
+ cout << hypo->GetTotalScore() << " ";
+ }
+
if (StaticData::Instance().IsPathRecoveryEnabled()) {
OutputInput(cout, hypo);
cout << "||| ";