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:
authorXapaJIaMnu <nheart@gmail.com>2015-06-25 15:12:33 +0300
committerXapaJIaMnu <nheart@gmail.com>2015-06-25 15:12:33 +0300
commit47a488767e4944e5768bda70fe3271528e753ef5 (patch)
treecc153a1da7e1771f70e020c9fa05bc53b14b7a8e /moses/TranslationTask.cpp
parent5a0168a6fae2a4e7a104aa9e99e7fbf17fc02c7d (diff)
Enable the bias weights to be (re)set by the server.
Diffstat (limited to 'moses/TranslationTask.cpp')
-rw-r--r--moses/TranslationTask.cpp7
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;