diff options
author | Christian Buck <cbuck@lantis.de> | 2013-04-12 22:43:53 +0400 |
---|---|---|
committer | Christian Buck <cbuck@lantis.de> | 2013-04-12 22:43:53 +0400 |
commit | bb5d70fc7cdf864f1594e70260633242fb49af26 (patch) | |
tree | f7d31dff6852c1960a81cefec2e98a7374ede8bf /moses/InputType.h | |
parent | 9c2c6c603b9f4a37d0e6a4004b11067dc8d58b7f (diff) |
integrated xml passthrough handling (by Nicola Bertoldi)
Diffstat (limited to 'moses/InputType.h')
-rw-r--r-- | moses/InputType.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/moses/InputType.h b/moses/InputType.h index b72cccfd8..36966ed9a 100644 --- a/moses/InputType.h +++ b/moses/InputType.h @@ -56,6 +56,7 @@ protected: long m_segId; ReorderingConstraint m_reorderingConstraint; /**< limits on reordering specified either by "-mp" switch or xml tags */ std::string m_textType; + std::string m_passthrough; public: @@ -112,6 +113,12 @@ public: void SetTextType(std::string type) { m_textType = type; } + std::string GetPassthroughInformation() const { + return m_passthrough; + } + void SetPassthroughInformation(std::string &passthrough) { + m_passthrough = passthrough; + } //! returns the number of words moved virtual int ComputeDistortionDistance(const WordsRange& prev, const WordsRange& current) const; |