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:
authorMatthias Huck <huck@i6.informatik.rwth-aachen.de>2013-09-13 19:10:21 +0400
committerMatthias Huck <huck@i6.informatik.rwth-aachen.de>2013-09-13 19:10:21 +0400
commitc39bed60c054ba5cc36a0032714b00978b713494 (patch)
treeed2301ea4081696e3e4303a6be279bf0dd2cceeb /moses/ChartParser.cpp
parentbff123635ea9773d50f8536885ba409d24175749 (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.cpp4
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