diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-10-28 16:01:11 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-10-28 16:01:11 +0300 |
commit | 07c8614877b3eaef17d9dd3f987b84099c2c8088 (patch) | |
tree | 76756279002e903fd1e02f47af65b7f3269a77dc /moses/server | |
parent | e3d5c477df3d498afe486ab378231dec65b3c3c8 (diff) |
Once set, context weights are now always const on the ContextScope.
Diffstat (limited to 'moses/server')
-rw-r--r-- | moses/server/TranslationRequest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/moses/server/TranslationRequest.cpp b/moses/server/TranslationRequest.cpp index 4635065c6..09d21c322 100644 --- a/moses/server/TranslationRequest.cpp +++ b/moses/server/TranslationRequest.cpp @@ -55,8 +55,7 @@ Run() // settings within the session scope param_t::const_iterator si = params.find("context-weights"); - if (si != params.end()) - m_context_weights = m_scope->GetContextWeights(&si->second); + if (si != params.end()) m_scope->GetContextWeights(&si->second); Moses::StaticData const& SD = Moses::StaticData::Instance(); |