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-03-30 01:51:22 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-03-30 01:51:22 +0300
commit18d254749729396885d10c9ce9dec12d7c2c84bd (patch)
tree9241b78e6c4573b88c8bfc62b764897580a57a31 /moses/TranslationTask.cpp
parent1525f1ea621f7232ec6b23ef5de98a0b0da4d0ba (diff)
Added member for storing annotations by feature functions.
Diffstat (limited to 'moses/TranslationTask.cpp')
-rw-r--r--moses/TranslationTask.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/moses/TranslationTask.cpp b/moses/TranslationTask.cpp
index 9100cd3ed..92bf12156 100644
--- a/moses/TranslationTask.cpp
+++ b/moses/TranslationTask.cpp
@@ -30,6 +30,7 @@ TranslationTask
boost::shared_ptr<IOWrapper> nix;
boost::shared_ptr<TranslationTask> ret(new TranslationTask(source, nix));
ret->m_self = ret;
+ ret->m_scope.reset(new ContextScope);
return ret;
}
@@ -40,6 +41,7 @@ TranslationTask
{
boost::shared_ptr<TranslationTask> ret(new TranslationTask(source, ioWrapper));
ret->m_self = ret;
+ ret->m_scope.reset(new ContextScope);
return ret;
}