diff options
author | Rico Sennrich <rico.sennrich@gmx.ch> | 2014-03-03 17:56:19 +0400 |
---|---|---|
committer | Rico Sennrich <rico.sennrich@gmx.ch> | 2014-03-03 17:56:19 +0400 |
commit | c27ecbe5c6526c7d346b7b9ed571110e712da836 (patch) | |
tree | bad3f2e7aa2907d49e0435ddd62be725c2f5d0d3 /moses/ChartParser.cpp | |
parent | 01bc3c111e792b88291a1d3bdb4901b676b02107 (diff) |
rename SyntaxConstraintFeature to TreeStructureFeature
(makes it clearer what it does; build/print the internal tree structure in string-to-tree decoding)
no longer rely on name of FF for printing internal trees
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 dac7e85a0..deccf74e4 100644 --- a/moses/ChartParser.cpp +++ b/moses/ChartParser.cpp @@ -97,7 +97,7 @@ void ChartParserUnknown::Process(const Word &sourceWord, const WordsRange &range targetPhrase->SetTargetLHS(targetLHS); targetPhrase->SetAlignmentInfo("0-0"); - if (staticData.IsDetailedTreeFragmentsTranslationReportingEnabled()) { + if (staticData.IsDetailedTreeFragmentsTranslationReportingEnabled() || staticData.GetTreeStructure() != NULL) { targetPhrase->SetProperty("Tree","[ " + (*targetLHS)[0]->GetString().as_string() + " "+sourceWord[0]->GetString().as_string()+" ]"); } |