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:
Diffstat (limited to 'moses2/parameters/ContextParameters.h')
-rw-r--r--moses2/parameters/ContextParameters.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/moses2/parameters/ContextParameters.h b/moses2/parameters/ContextParameters.h
new file mode 100644
index 000000000..5226e8eca
--- /dev/null
+++ b/moses2/parameters/ContextParameters.h
@@ -0,0 +1,19 @@
+// -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*-
+#pragma once
+#include <string>
+#include "OptionsBaseClass.h"
+
+namespace Moses2
+{
+
+class ContextParameters : public OptionsBaseClass
+{
+public:
+ ContextParameters();
+ bool init(Parameter const& params);
+ size_t look_ahead; // # of words to look ahead for context-sensitive decoding
+ size_t look_back; // # of works to look back for context-sensitive decoding
+ std::string context_string; // fixed context string specified on command line
+};
+
+}