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/TranslationOptionCollectionText.cpp
parent2df1301946b37819f21572116ee7901e5ac08d6b (diff)
InputPath now has a weak pointer to the TranslationTask it belongs to.
Diffstat (limited to 'moses/TranslationOptionCollectionText.cpp')
-rw-r--r--moses/TranslationOptionCollectionText.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/TranslationOptionCollectionText.cpp b/moses/TranslationOptionCollectionText.cpp
index 354d09f47..3325e9ced 100644
--- a/moses/TranslationOptionCollectionText.cpp
+++ b/moses/TranslationOptionCollectionText.cpp
@@ -48,11 +48,11 @@ TranslationOptionCollectionText::TranslationOptionCollectionText(ttasksptr const
InputPath *path;
if (range.GetNumWordsCovered() == 1) {
- path = new InputPath(subphrase, labels, range, NULL, NULL);
+ path = new InputPath(ttask, subphrase, labels, range, NULL, NULL);
vec.push_back(path);
} else {
const InputPath &prevPath = GetInputPath(startPos, endPos - 1);
- path = new InputPath(subphrase, labels, range, &prevPath, NULL);
+ path = new InputPath(ttask, subphrase, labels, range, &prevPath, NULL);
vec.push_back(path);
}