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:
authorHieu Hoang <hieu@hoang.co.uk>2014-08-04 22:28:04 +0400
committerHieu Hoang <hieu@hoang.co.uk>2014-08-04 22:28:04 +0400
commite863592f40efb41eef11f1de09b1da59c0246611 (patch)
tree08106fe61e3f51257b970f6adceee7c902252fa0 /moses/ChartParser.cpp
parentabe68be588db3a96c5e247162b72054cbc146031 (diff)
TargetPhrase to have pointer to the phrase table that creates it
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 b77a5c20c..a8a72e680 100644
--- a/moses/ChartParser.cpp
+++ b/moses/ChartParser.cpp
@@ -85,7 +85,7 @@ void ChartParserUnknown::Process(const Word &sourceWord, const WordsRange &range
UTIL_THROW_IF2(targetLHS->GetFactor(0) == NULL, "Null factor for target LHS");
// add to dictionary
- TargetPhrase *targetPhrase = new TargetPhrase();
+ TargetPhrase *targetPhrase = new TargetPhrase(NULL);
Word &targetWord = targetPhrase->AddWord();
targetWord.CreateUnknownWord(sourceWord);
@@ -108,7 +108,7 @@ void ChartParserUnknown::Process(const Word &sourceWord, const WordsRange &range
// drop source word. create blank trans opt
float unknownScore = FloorScore(-numeric_limits<float>::infinity());
- TargetPhrase *targetPhrase = new TargetPhrase();
+ TargetPhrase *targetPhrase = new TargetPhrase(NULL);
// loop
const UnknownLHSList &lhsList = staticData.GetUnknownLHS();
UnknownLHSList::const_iterator iterLHS;