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:
authormaria nadejde <maria.nadejde@gmail.com>2013-09-13 20:18:52 +0400
committermaria nadejde <maria.nadejde@gmail.com>2013-09-13 20:18:52 +0400
commit3c441bdaa3bfeb21ba2fe162e7efcbee00fcc26d (patch)
tree5202cac8e55212f397584907b87da7b69ffe2d6b /moses/ChartParser.cpp
parent48fa62838c3746bcefcae7b1526a1dba324c211c (diff)
parent643fa188054bf05b370d56dad3e2c17a474f3f2f (diff)
Merge branch 'GHKMStruct' of github.com:moses-smt/mosesdecoder into GHKMStruct
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 a5f179e9a..fcf271786 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