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:
authorChristian Buck <cbuck@lantis.de>2013-04-12 22:43:53 +0400
committerChristian Buck <cbuck@lantis.de>2013-04-12 22:43:53 +0400
commitbb5d70fc7cdf864f1594e70260633242fb49af26 (patch)
treef7d31dff6852c1960a81cefec2e98a7374ede8bf /moses/InputType.h
parent9c2c6c603b9f4a37d0e6a4004b11067dc8d58b7f (diff)
integrated xml passthrough handling (by Nicola Bertoldi)
Diffstat (limited to 'moses/InputType.h')
-rw-r--r--moses/InputType.h7
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;