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.cpp
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.cpp')
-rw-r--r--moses/TranslationTask.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/moses/TranslationTask.cpp b/moses/TranslationTask.cpp
index 92bf12156..b8ad55978 100644
--- a/moses/TranslationTask.cpp
+++ b/moses/TranslationTask.cpp
@@ -23,6 +23,22 @@ using namespace std;
namespace Moses
{
+std::string const&
+TranslationTask
+::GetContextString() const
+{
+ return m_context_string;
+}
+
+void
+TranslationTask
+::SetContextString(std::string const& context)
+{
+ m_context_string = context;
+}
+
+
+
boost::shared_ptr<TranslationTask>
TranslationTask
::create(boost::shared_ptr<InputType> const& source)