diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-11-11 22:56:43 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-11-11 22:56:43 +0300 |
commit | b01eb7cbd02ab5aac72f7e137c9d586033ebe481 (patch) | |
tree | aa8683fb209120332eed59fce1b3a493301cb457 /moses/server | |
parent | e357a75972c9546a52550d0b24fb4952d89252df (diff) |
Bug fix: m_reportAllFactors was never initialized or set.
Removed altogether, now using m_options.output.ReportAllFactors.
Diffstat (limited to 'moses/server')
-rw-r--r-- | moses/server/TranslationRequest.cpp | 4 | ||||
-rw-r--r-- | moses/server/TranslationRequest.h | 4 |
2 files changed, 1 insertions, 7 deletions
diff --git a/moses/server/TranslationRequest.cpp b/moses/server/TranslationRequest.cpp index ec4d0fad0..8f15b30ff 100644 --- a/moses/server/TranslationRequest.cpp +++ b/moses/server/TranslationRequest.cpp @@ -168,7 +168,7 @@ void TranslationRequest:: output_phrase(ostream& out, Phrase const& phrase) const { - if (!m_reportAllFactors) { + if (!m_options.output.ReportAllFactors) { for (size_t i = 0 ; i < phrase.GetSize(); ++i) out << *phrase.GetFactor(i, 0) << " "; } else out << phrase; @@ -294,8 +294,6 @@ parse_request(std::map<std::string, xmlrpc_c::value> const& params) m_withWordAlignInfo = check(params, "word-align"); m_withGraphInfo = check(params, "sg"); m_withTopts = check(params, "topt"); - // m_reportAllFactors = check(params, "report-all-factors"); - // m_nbestDistinct = check(params, "nbest-distinct"); m_withScoreBreakdown = check(params, "add-score-breakdown"); si = params.find("lambda"); if (si != params.end()) diff --git a/moses/server/TranslationRequest.h b/moses/server/TranslationRequest.h index 9736a7a8f..b93043b9b 100644 --- a/moses/server/TranslationRequest.h +++ b/moses/server/TranslationRequest.h @@ -42,11 +42,7 @@ TranslationRequest : public virtual Moses::TranslationTask bool m_withWordAlignInfo; bool m_withGraphInfo; bool m_withTopts; - bool m_reportAllFactors; - // bool m_nbestDistinct; bool m_withScoreBreakdown; - // size_t m_nbestSize; - uint64_t m_session_id; // 0 means none, 1 means new void |