diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-10-17 18:36:21 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-10-17 18:36:21 +0300 |
commit | cdcafd817b10d51ab646d318930f44440cffbf24 (patch) | |
tree | 97a1f49bb43388ef290c2ddc3c3339db173d186c /moses/ChartParser.cpp | |
parent | 2df1301946b37819f21572116ee7901e5ac08d6b (diff) |
InputPath now has a weak pointer to the TranslationTask it belongs to.
Diffstat (limited to 'moses/ChartParser.cpp')
-rw-r--r-- | moses/ChartParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/ChartParser.cpp b/moses/ChartParser.cpp index 98ff9bd00..966e69a7e 100644 --- a/moses/ChartParser.cpp +++ b/moses/ChartParser.cpp @@ -232,11 +232,11 @@ void ChartParser::CreateInputPaths(const InputType &input) InputPath *node; if (range.GetNumWordsCovered() == 1) { - node = new InputPath(subphrase, labels, range, NULL, NULL); + node = new InputPath(m_ttask, subphrase, labels, range, NULL, NULL); vec.push_back(node); } else { const InputPath &prevNode = GetInputPath(startPos, endPos - 1); - node = new InputPath(subphrase, labels, range, &prevNode, NULL); + node = new InputPath(m_ttask, subphrase, labels, range, &prevNode, NULL); vec.push_back(node); } |