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:
authorUlrich Germann <Ulrich.Germann@gmail.com>2015-10-17 18:36:21 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-10-17 18:36:21 +0300
commitcdcafd817b10d51ab646d318930f44440cffbf24 (patch)
tree97a1f49bb43388ef290c2ddc3c3339db173d186c /moses/TranslationOptionCollectionConfusionNet.cpp
parent2df1301946b37819f21572116ee7901e5ac08d6b (diff)
InputPath now has a weak pointer to the TranslationTask it belongs to.
Diffstat (limited to 'moses/TranslationOptionCollectionConfusionNet.cpp')
-rw-r--r--moses/TranslationOptionCollectionConfusionNet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/TranslationOptionCollectionConfusionNet.cpp b/moses/TranslationOptionCollectionConfusionNet.cpp
index 6ee83d969..86d045b3f 100644
--- a/moses/TranslationOptionCollectionConfusionNet.cpp
+++ b/moses/TranslationOptionCollectionConfusionNet.cpp
@@ -62,7 +62,7 @@ TranslationOptionCollectionConfusionNet(ttasksptr const& ttask,
const ScorePair &scores = col[i].second;
ScorePair *inputScore = new ScorePair(scores);
- InputPath *path = new InputPath(subphrase, labels, range, NULL, inputScore);
+ InputPath *path = new InputPath(ttask, subphrase, labels, range, NULL, inputScore);
list.push_back(path);
m_inputPathQueue.push_back(path);
@@ -113,7 +113,7 @@ TranslationOptionCollectionConfusionNet(ttasksptr const& ttask,
ScorePair *inputScore = new ScorePair(*prevInputScore);
inputScore->PlusEquals(scores);
- InputPath *path = new InputPath(subphrase, labels, range, &prevPath, inputScore);
+ InputPath *path = new InputPath(ttask, subphrase, labels, range, &prevPath, inputScore);
list.push_back(path);
m_inputPathQueue.push_back(path);