diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-04-03 18:16:52 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-04-03 18:16:52 +0300 |
commit | 93ce2423dfa741225837bb1a180cfcdc672c4d65 (patch) | |
tree | 55f1735e58abf1fe26bc6e35253fd40ec85f1894 /moses/TranslationTask.cpp | |
parent | a0c9d89a42d9260266f4ef9a09552d3bfc93f7f0 (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.cpp | 16 |
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) |