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 <ugermann@inf.ed.ac.uk>2015-06-08 14:08:27 +0300
committerUlrich Germann <ugermann@inf.ed.ac.uk>2015-06-08 14:08:27 +0300
commit26e4cee9b18135400e1fa34e574af80f3c87d84b (patch)
tree18621724e82839df9a42fa750b70917812b41426 /moses/TranslationTask.h
parentb682a0663645ae5ccbf279ff72ac581d9ec28fb0 (diff)
New create function that includes scope. New member function to exposure IOWrapper.
Diffstat (limited to 'moses/TranslationTask.h')
-rw-r--r--moses/TranslationTask.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/moses/TranslationTask.h b/moses/TranslationTask.h
index 2b75c47d5..500967538 100644
--- a/moses/TranslationTask.h
+++ b/moses/TranslationTask.h
@@ -92,6 +92,12 @@ public:
create(boost::shared_ptr<Moses::InputType> const& source,
boost::shared_ptr<Moses::IOWrapper> const& ioWrapper);
+ static
+ boost::shared_ptr<TranslationTask>
+ create(boost::shared_ptr<Moses::InputType> const& source,
+ boost::shared_ptr<Moses::IOWrapper> const& ioWrapper,
+ boost::shared_ptr<ContextScope> const& scope);
+
~TranslationTask();
/** Translate one sentence
* gets called by main function implemented at end of this source file */
@@ -102,6 +108,11 @@ public:
return m_source;
}
+ boost::shared_ptr<Moses::IOWrapper const>
+ GetIOWrapper() const {
+ return m_ioWrapper;
+ }
+
boost::shared_ptr<BaseManager>
SetupManager(SearchAlgorithm algo = DefaultSearchAlgorithm);