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/TranslationOptionCollectionLattice.cpp
parent2df1301946b37819f21572116ee7901e5ac08d6b (diff)
InputPath now has a weak pointer to the TranslationTask it belongs to.
Diffstat (limited to 'moses/TranslationOptionCollectionLattice.cpp')
-rw-r--r--moses/TranslationOptionCollectionLattice.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/moses/TranslationOptionCollectionLattice.cpp b/moses/TranslationOptionCollectionLattice.cpp
index fde40e538..7fadc2542 100644
--- a/moses/TranslationOptionCollectionLattice.cpp
+++ b/moses/TranslationOptionCollectionLattice.cpp
@@ -61,7 +61,8 @@ TranslationOptionCollectionLattice
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);
path->SetNextNode(nextNode);
m_inputPathQueue.push_back(path);
@@ -113,7 +114,8 @@ void TranslationOptionCollectionLattice::Extend(const InputPath &prevPath, const
ScorePair *inputScore = new ScorePair(*prevInputScore);
inputScore->PlusEquals(scores);
- InputPath *path = new InputPath(subphrase, labels, range, &prevPath, inputScore);
+ InputPath *path = new InputPath(prevPath.ttask, subphrase, labels,
+ range, &prevPath, inputScore);
path->SetNextNode(nextNode);
m_inputPathQueue.push_back(path);