diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-03-30 01:51:22 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-03-30 01:51:22 +0300 |
commit | 18d254749729396885d10c9ce9dec12d7c2c84bd (patch) | |
tree | 9241b78e6c4573b88c8bfc62b764897580a57a31 /moses/TranslationTask.cpp | |
parent | 1525f1ea621f7232ec6b23ef5de98a0b0da4d0ba (diff) |
Added member for storing annotations by feature functions.
Diffstat (limited to 'moses/TranslationTask.cpp')
-rw-r--r-- | moses/TranslationTask.cpp | 2 |
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; } |