diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-12-05 20:59:53 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-12-05 20:59:53 +0300 |
commit | 23ca29a2ea13bfa12210f4f278785aefdd45a672 (patch) | |
tree | 7a10fd28d59c5c22e9848bd44f6d1ad09e9d7a31 /moses/IOWrapper.cpp | |
parent | 0d8e20980eed5f6fcefe89584dc5995e39b091a2 (diff) |
add Decode to API framework
Diffstat (limited to 'moses/IOWrapper.cpp')
-rw-r--r-- | moses/IOWrapper.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/moses/IOWrapper.cpp b/moses/IOWrapper.cpp index 9e3e0f57f..ee7b12db5 100644 --- a/moses/IOWrapper.cpp +++ b/moses/IOWrapper.cpp @@ -533,39 +533,6 @@ void IOWrapper::OutputSurface(std::ostream &out, const Phrase &phrase, const std -//DIMw -void IOWrapper::OutputDetailedAllTranslationReport( - const std::vector<boost::shared_ptr<Moses::ChartKBestExtractor::Derivation> > &nBestList, - const ChartManager &manager, - const Sentence &sentence, - long translationId) -{ - std::ostringstream out; - ApplicationContext applicationContext; - - const ChartCellCollection& cells = manager.GetChartCellCollection(); - size_t size = manager.GetSource().GetSize(); - for (size_t width = 1; width <= size; ++width) { - for (size_t startPos = 0; startPos <= size-width; ++startPos) { - size_t endPos = startPos + width - 1; - WordsRange range(startPos, endPos); - const ChartCell& cell = cells.Get(range); - const HypoList* hyps = cell.GetAllSortedHypotheses(); - out << "Chart Cell [" << startPos << ".." << endPos << "]" << endl; - HypoList::const_iterator iter; - size_t c = 1; - for (iter = hyps->begin(); iter != hyps->end(); ++iter) { - out << "----------------Item " << c++ << " ---------------------" - << endl; - OutputTranslationOptions(out, applicationContext, *iter, - sentence, translationId); - } - } - } - UTIL_THROW_IF2(m_detailedTranslationCollector == NULL, - "No output file for details specified"); - m_detailedTranslationCollector->Write(translationId, out.str()); -} ////////////////////////////////////////////////////////////////////////// /*** |