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:
authorJames Zhang <jzhang331@bloomberg.net>2015-03-07 02:37:07 +0300
committerKenneth Heafield <github@kheafield.com>2015-03-12 00:33:17 +0300
commit23704613deb69a2169abeee2e7c5e9d3cbe3674a (patch)
tree26b1e080353a17319a9902c48f672ed9282b83a6 /moses/StaticData.h
parent8b61f396a7558bf628c2e94a9583023b9ae34a8c (diff)
added a simple translation interface
Diffstat (limited to 'moses/StaticData.h')
-rw-r--r--moses/StaticData.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/moses/StaticData.h b/moses/StaticData.h
index 193f79aad..1c31a472c 100644
--- a/moses/StaticData.h
+++ b/moses/StaticData.h
@@ -365,6 +365,16 @@ public:
if (m_reportSegmentationEnriched) return 2;
return 0;
}
+ void SetReportSegmentation(const int &val) {
+ if (val == 0)
+ m_reportSegmentation = m_reportSegmentationEnriched = false;
+ else if (val == 1)
+ m_reportSegmentation = true;
+ else if (val == 2)
+ m_reportSegmentationEnriched = true;
+ else
+ std::cerr << "Warning: Invalid value for reportSegmentation (0 - 2)! Ignoring";
+ }
bool GetReportAllFactors() const {
return m_reportAllFactors;
}