diff options
author | Rico Sennrich <rico.sennrich@gmx.ch> | 2014-10-19 18:31:17 +0400 |
---|---|---|
committer | Rico Sennrich <rico.sennrich@gmx.ch> | 2014-10-21 12:51:20 +0400 |
commit | a128ad1847d71b49bb25e4cfb9710d4082ded713 (patch) | |
tree | f6e6092705e2e1f38b46ea145a78ce6b12bc74f6 /moses/ChartParser.cpp | |
parent | df74aa3e89a274bfb82811fc9c0b37b29849621e (diff) |
n-best-tree output needs trees for unknown words
Diffstat (limited to 'moses/ChartParser.cpp')
-rw-r--r-- | moses/ChartParser.cpp | 2 |
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()+" ]"); } |