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-26 19:37:04 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-03-26 19:37:04 +0300
commitb3ff4ff13ac35293dcdb272f99b52388b560cb65 (patch)
tree1333c33a8a1ea4b8d4168ed17d8e20516fd2e737 /moses/Manager.h
parentd364211d9088667ddb98136e0c9a29b913c31717 (diff)
Managers have now access to the entire translation task.
Diffstat (limited to 'moses/Manager.h')
-rw-r--r--moses/Manager.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/moses/Manager.h b/moses/Manager.h
index 4de0f5f95..c611ef9dd 100644
--- a/moses/Manager.h
+++ b/moses/Manager.h
@@ -151,7 +151,8 @@ protected:
void OutputAlignment(std::ostringstream &out, const TrellisPath &path) const;
public:
- Manager(InputType const& source);
+ // Manager(InputType const& source);
+ Manager(ttasksptr const& ttask);
~Manager();
const TranslationOptionCollection* getSntTranslationOptions();
@@ -180,9 +181,8 @@ public:
void OutputSearchGraphAsSLF(long translationId, std::ostream &outputSearchGraphStream) const;
void OutputSearchGraphAsHypergraph(std::ostream &outputSearchGraphStream) const;
void GetSearchGraph(std::vector<SearchGraphNode>& searchGraph) const;
- const InputType& GetSource() const {
- return m_source;
- }
+
+ virtual const InputType& GetSource() const;
/***
* to be called after processing a sentence (which may consist of more than just calling ProcessSentence() )