From 7019abf652aba3c83857d93ae729eb72aefb625f Mon Sep 17 00:00:00 2001 From: ccorbett Date: Sun, 13 Aug 2006 18:11:52 +0000 Subject: [PATCH] reordering scores are now implemented for n-best lists git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@690 1f5c12ca-751b-0410-a591-d2e778427230 --- moses-cmd/src/IOCommandLine.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/moses-cmd/src/IOCommandLine.cpp b/moses-cmd/src/IOCommandLine.cpp index 8e46928d4..f6753d547 100755 --- a/moses-cmd/src/IOCommandLine.cpp +++ b/moses-cmd/src/IOCommandLine.cpp @@ -162,6 +162,17 @@ void IOCommandLine::SetNBest(const LatticePathList &nBestList, long translationI m_nBestFile << "d: "; m_nBestFile << path.GetScoreBreakdown().GetScoreForProducer(StaticData::Instance()->GetDistortionScoreProducer()) << " "; + //reordering + vector rms = StaticData::Instance()->GetReorderModels(); + if(rms.size() > 0) + { + vector::iterator iter; + for(iter = rms.begin(); iter != rms.end(); ++iter) + { + m_nBestFile << path.GetScoreBreakdown().GetScoreForProducer(*iter) << " "; + } + } + // lm const LMList& lml = StaticData::Instance()->GetAllLM(); if (lml.size() > 0) {