From 2e25dc3ea04a11e4f80921638570f107a211243b Mon Sep 17 00:00:00 2001 From: redpony Date: Thu, 13 Jul 2006 18:03:49 +0000 Subject: [PATCH] add logging to match pharaoh git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@91 1f5c12ca-751b-0410-a591-d2e778427230 --- moses/src/Manager.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/moses/src/Manager.cpp b/moses/src/Manager.cpp index cfc03d61a..a8e62c2f1 100755 --- a/moses/src/Manager.cpp +++ b/moses/src/Manager.cpp @@ -175,7 +175,7 @@ void Manager::ProcessOneHypothesis(const list < DecodeStep > &decodeStepList , m_staticData.GetWeightDistortion() , m_staticData.GetWeightWordPenalty() , m_futureScore, m_source); - if(m_staticData.GetVerboseLevel() > 0) + if(m_staticData.GetVerboseLevel() > 2) { hypo->PrintHypothesis(m_source, m_staticData.GetWeightDistortion(), m_staticData.GetWeightWordPenalty()); } @@ -371,6 +371,9 @@ void Manager::CreateTranslationOptions(const Phrase &phrase const TargetPhraseCollection *phraseColl = phraseDictionary.FindEquivPhrase(sourcePhrase); if (phraseColl != NULL) { + if (m_staticData.GetVerboseLevel() >= 3) { + cout << "[" << sourcePhrase << "; " << startPos << "-" << endPos << "]\n"; + } TargetPhraseCollection::const_iterator iterTargetPhrase; for (iterTargetPhrase = phraseColl->begin() ; iterTargetPhrase != phraseColl->end() ; ++iterTargetPhrase) { @@ -380,7 +383,11 @@ void Manager::CreateTranslationOptions(const Phrase &phrase TranslationOption transOpt(wordsRange , targetPhrase); m_possibleTranslations.push_back(transOpt); + if (m_staticData.GetVerboseLevel() >= 3) { + cout << "\t" << transOpt << "\n"; + } } + if (m_staticData.GetVerboseLevel() >= 3) { cout << endl; } } else if (sourcePhrase.GetSize() == 1) {