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>2015-03-02 17:32:18 +0300
committerMatthias Huck <huck@i6.informatik.rwth-aachen.de>2015-03-02 17:32:18 +0300
commit2543c78b711c9ca32ba63da1d41e33e231c9759c (patch)
tree3b07c5713fc28fc2c9324e45567b3346899d9317 /moses/ChartParser.cpp
parent9291bb80ca0f0cf6afb7780b8265cecc1556c17e (diff)
RulePairUnlexicalizedSource feature function
Diffstat (limited to 'moses/ChartParser.cpp')
-rw-r--r--moses/ChartParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/ChartParser.cpp b/moses/ChartParser.cpp
index 40f18e7e8..5281bafdf 100644
--- a/moses/ChartParser.cpp
+++ b/moses/ChartParser.cpp
@@ -99,9 +99,9 @@ void ChartParserUnknown::Process(const Word &sourceWord, const WordsRange &range
float unknownScore = FloorScore(TransformScore(prob));
targetPhrase->GetScoreBreakdown().Assign(&unknownWordPenaltyProducer, unknownScore);
- targetPhrase->EvaluateInIsolation(*unksrc);
targetPhrase->SetTargetLHS(targetLHS);
targetPhrase->SetAlignmentInfo("0-0");
+ targetPhrase->EvaluateInIsolation(*unksrc);
if (staticData.IsDetailedTreeFragmentsTranslationReportingEnabled() || staticData.PrintNBestTrees() || staticData.GetTreeStructure() != NULL) {
targetPhrase->SetProperty("Tree","[ " + (*targetLHS)[0]->GetString().as_string() + " "+sourceWord[0]->GetString().as_string()+" ]");
}