diff options
author | XapaJIaMnu <nheart@gmail.com> | 2015-06-25 15:12:33 +0300 |
---|---|---|
committer | XapaJIaMnu <nheart@gmail.com> | 2015-06-25 15:12:33 +0300 |
commit | 47a488767e4944e5768bda70fe3271528e753ef5 (patch) | |
tree | cc153a1da7e1771f70e020c9fa05bc53b14b7a8e /moses/TranslationTask.cpp | |
parent | 5a0168a6fae2a4e7a104aa9e99e7fbf17fc02c7d (diff) |
Enable the bias weights to be (re)set by the server.
Diffstat (limited to 'moses/TranslationTask.cpp')
-rw-r--r-- | moses/TranslationTask.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/moses/TranslationTask.cpp b/moses/TranslationTask.cpp index dd9fcbc52..0c6e6c69e 100644 --- a/moses/TranslationTask.cpp +++ b/moses/TranslationTask.cpp @@ -38,6 +38,13 @@ TranslationTask::GetContextWeights() const void TranslationTask +::ReSetContextWeights(std::map<std::string, float> const& new_weights) +{ + m_context_weights = new_weights; +} + +void +TranslationTask ::SetContextString(std::string const& context) { m_context_string = context; |