diff options
author | phikoehn <pkoehn@inf.ed.ac.uk> | 2013-05-31 15:28:57 +0400 |
---|---|---|
committer | phikoehn <pkoehn@inf.ed.ac.uk> | 2013-05-31 15:28:57 +0400 |
commit | d1650a5aa7621f24b8bbf59da23071d45f145ad1 (patch) | |
tree | 6faad1cb2c19e8ff2d6230fc00b0d36171ed0b7b /moses/InputType.h | |
parent | 68501f5a363d63cfcfd2a9fec3683bddbe0dd4e8 (diff) |
basic support for alternate weight settings
Diffstat (limited to 'moses/InputType.h')
-rw-r--r-- | moses/InputType.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/moses/InputType.h b/moses/InputType.h index d0106e5ca..89efe9e7c 100644 --- a/moses/InputType.h +++ b/moses/InputType.h @@ -48,10 +48,12 @@ protected: long m_translationId; //< contiguous Id long m_documentId; long m_topicId; + std::string m_weightSetting; std::vector<std::string> m_topicIdAndProb; bool m_useTopicId; bool m_useTopicIdAndProb; bool m_hasMetaData; + bool m_specifiesWeightSetting; long m_segId; ReorderingConstraint m_reorderingConstraint; /**< limits on reordering specified either by "-mp" switch or xml tags */ std::string m_textType; @@ -109,6 +111,18 @@ public: std::string GetTextType() const { return m_textType; } + void SetSpecifiesWeightSetting(bool specifiesWeightSetting) { + m_specifiesWeightSetting = specifiesWeightSetting; + } + bool GetSpecifiesWeightSetting() const { + return m_specifiesWeightSetting; + } + void SetWeightSetting(std::string settingName) { + m_weightSetting = settingName; + } + std::string GetWeightSetting() const { + return m_weightSetting; + } void SetTextType(std::string type) { m_textType = type; } |