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:
authorRico Sennrich <rico.sennrich@gmx.ch>2014-10-19 18:31:17 +0400
committerRico Sennrich <rico.sennrich@gmx.ch>2014-10-21 12:51:20 +0400
commita128ad1847d71b49bb25e4cfb9710d4082ded713 (patch)
treef6e6092705e2e1f38b46ea145a78ce6b12bc74f6 /moses/ChartParser.cpp
parentdf74aa3e89a274bfb82811fc9c0b37b29849621e (diff)
n-best-tree output needs trees for unknown words
Diffstat (limited to 'moses/ChartParser.cpp')
-rw-r--r--moses/ChartParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/ChartParser.cpp b/moses/ChartParser.cpp
index 5c1e82184..50404aaca 100644
--- a/moses/ChartParser.cpp
+++ b/moses/ChartParser.cpp
@@ -103,7 +103,7 @@ void ChartParserUnknown::Process(const Word &sourceWord, const WordsRange &range
targetPhrase->SetTargetLHS(targetLHS);
targetPhrase->SetAlignmentInfo("0-0");
- if (staticData.IsDetailedTreeFragmentsTranslationReportingEnabled() || staticData.GetTreeStructure() != NULL) {
+ if (staticData.IsDetailedTreeFragmentsTranslationReportingEnabled() || staticData.PrintNBestTrees() || staticData.GetTreeStructure() != NULL) {
targetPhrase->SetProperty("Tree","[ " + (*targetLHS)[0]->GetString().as_string() + " "+sourceWord[0]->GetString().as_string()+" ]");
}