diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-12-10 06:17:36 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-12-11 04:09:22 +0300 |
commit | 29694af6e43c1cec7a6fd0b157eb44faca706129 (patch) | |
tree | acda250a83c5a3a4244be011f1f4b9e6337f5d6b /moses/server | |
parent | 240b88c6834c9c94e8a6448a34dc4ad33bdf3fbd (diff) |
Code cleanup and refactoring.
Diffstat (limited to 'moses/server')
-rw-r--r-- | moses/server/TranslationRequest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/server/TranslationRequest.cpp b/moses/server/TranslationRequest.cpp index d5141aae1..174fe39e6 100644 --- a/moses/server/TranslationRequest.cpp +++ b/moses/server/TranslationRequest.cpp @@ -262,7 +262,7 @@ parse_request(std::map<std::string, xmlrpc_c::value> const& params) m_scope.reset(new Moses::ContextScope); } - boost::shared_ptr<Moses::AllOptions> opts(new Moses::AllOptions(StaticData::Instance().options())); + boost::shared_ptr<Moses::AllOptions> opts(new Moses::AllOptions(*StaticData::Instance().options())); opts->update(params); m_withGraphInfo = check(params, "sg"); @@ -327,7 +327,7 @@ run_chart_decoder() { Moses::TreeInput tinput(m_options); istringstream buf(m_source_string + "\n"); - tinput.Read(buf, options()->input.factor_order, *m_options); + tinput.Read(buf); Moses::ChartManager manager(this->self()); manager.Decode(); |