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:
authorUlrich Germann <Ulrich.Germann@gmail.com>2015-04-03 18:16:52 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-04-03 18:16:52 +0300
commit93ce2423dfa741225837bb1a180cfcdc672c4d65 (patch)
tree55f1735e58abf1fe26bc6e35253fd40ec85f1894 /moses/TranslationTask.h
parenta0c9d89a42d9260266f4ef9a09552d3bfc93f7f0 (diff)
1. A context string for biased sampling in Mmsapt can now be provided on the
command line with --context-string. Not available in server mode yet. 2. Numerous bug fixes related to biased sampling. 3. Biased sampling now checks that the sampling sticks to the bias. If the distribution of samples deviates too much from the bias, samples whose selection would push the sample distribution even further from the bias are not considered, even if that means that fewer samples are chosen in total.
Diffstat (limited to 'moses/TranslationTask.h')
-rw-r--r--moses/TranslationTask.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/moses/TranslationTask.h b/moses/TranslationTask.h
index c51750bdd..6679cb9b3 100644
--- a/moses/TranslationTask.h
+++ b/moses/TranslationTask.h
@@ -63,7 +63,8 @@ protected:
// function can determine (via a check on the weak pointer) if the
// task is still live or not, or maintain a shared_ptr to ensure the
// task stays alive till it's done with it.
-
+
+ std::string m_context_string;
public:
boost::shared_ptr<TranslationTask>
@@ -104,6 +105,9 @@ public:
return m_scope;
}
+ std::string const& GetContextString() const;
+ void SetContextString(std::string const& context);
+
protected:
boost::shared_ptr<Moses::InputType> m_source;
boost::shared_ptr<Moses::IOWrapper> m_ioWrapper;