diff options
author | Matthias Huck <huck@i6.informatik.rwth-aachen.de> | 2013-09-13 19:10:21 +0400 |
---|---|---|
committer | Matthias Huck <huck@i6.informatik.rwth-aachen.de> | 2013-09-13 19:10:21 +0400 |
commit | c39bed60c054ba5cc36a0032714b00978b713494 (patch) | |
tree | ed2301ea4081696e3e4303a6be279bf0dd2cceeb /moses/ChartParser.cpp | |
parent | bff123635ea9773d50f8536885ba409d24175749 (diff) |
Tree fragments in GHKM glue rules;
output of LHS tag in tree fragments for UNKs;
GHKMParse info is now denoted as Tree info
Diffstat (limited to 'moses/ChartParser.cpp')
-rw-r--r-- | moses/ChartParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/ChartParser.cpp b/moses/ChartParser.cpp index db7cb90aa..37733228c 100644 --- a/moses/ChartParser.cpp +++ b/moses/ChartParser.cpp @@ -96,8 +96,8 @@ void ChartParserUnknown::Process(const Word &sourceWord, const WordsRange &range targetPhrase->SetTargetLHS(targetLHS); targetPhrase->SetAlignmentInfo("0-0"); - if (staticData.IsDetailedGhkmTranslationReportingEnabled()) { - targetPhrase->SetProperty("GHKMParse","( UNK "+sourceWord[0]->GetString().as_string()+" )"); + if (staticData.IsDetailedTreeFragmentsTranslationReportingEnabled()) { + targetPhrase->SetProperty("Tree","( " + (*targetLHS)[0]->GetString().as_string() + " "+sourceWord[0]->GetString().as_string()+" )"); } // chart rule |