diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-12-03 20:04:10 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-12-03 20:04:10 +0300 |
commit | ccbcc14ed863dc903bb8b2d84f5989ef806a0e75 (patch) | |
tree | 54af4d7b63bb27e48d6868a5413fbb83379afd06 /moses/IOWrapper.cpp | |
parent | 184e79f4d6943f1ada23ab1f8780cb1097e08121 (diff) |
move OutputDetailedTranslationReport() to Managers
Diffstat (limited to 'moses/IOWrapper.cpp')
-rw-r--r-- | moses/IOWrapper.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/moses/IOWrapper.cpp b/moses/IOWrapper.cpp index becde9b65..aa6b6401e 100644 --- a/moses/IOWrapper.cpp +++ b/moses/IOWrapper.cpp @@ -756,23 +756,6 @@ size_t IOWrapper::CalcSourceSize(const Moses::ChartHypothesis *hypo) return ret; } -void IOWrapper::OutputDetailedTranslationReport( - const ChartHypothesis *hypo, - const Sentence &sentence, - long translationId) -{ - if (hypo == NULL) { - return; - } - std::ostringstream out; - ApplicationContext applicationContext; - - OutputTranslationOptions(out, applicationContext, hypo, sentence, translationId); - UTIL_THROW_IF2(m_detailedTranslationCollector == NULL, - "No ouput file for detailed reports specified"); - m_detailedTranslationCollector->Write(translationId, out.str()); -} - //DIMw void IOWrapper::OutputDetailedAllTranslationReport( const std::vector<boost::shared_ptr<Moses::ChartKBestExtractor::Derivation> > &nBestList, |