mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-03 17:33:52 +03:00
add logging to match pharaoh
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@91 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
572f3a2dbe
commit
2e25dc3ea0
@ -175,7 +175,7 @@ void Manager::ProcessOneHypothesis(const list < DecodeStep > &decodeStepList
|
|||||||
, m_staticData.GetWeightDistortion()
|
, m_staticData.GetWeightDistortion()
|
||||||
, m_staticData.GetWeightWordPenalty()
|
, m_staticData.GetWeightWordPenalty()
|
||||||
, m_futureScore, m_source);
|
, m_futureScore, m_source);
|
||||||
if(m_staticData.GetVerboseLevel() > 0)
|
if(m_staticData.GetVerboseLevel() > 2)
|
||||||
{
|
{
|
||||||
hypo->PrintHypothesis(m_source, m_staticData.GetWeightDistortion(), m_staticData.GetWeightWordPenalty());
|
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);
|
const TargetPhraseCollection *phraseColl = phraseDictionary.FindEquivPhrase(sourcePhrase);
|
||||||
if (phraseColl != NULL)
|
if (phraseColl != NULL)
|
||||||
{
|
{
|
||||||
|
if (m_staticData.GetVerboseLevel() >= 3) {
|
||||||
|
cout << "[" << sourcePhrase << "; " << startPos << "-" << endPos << "]\n";
|
||||||
|
}
|
||||||
TargetPhraseCollection::const_iterator iterTargetPhrase;
|
TargetPhraseCollection::const_iterator iterTargetPhrase;
|
||||||
for (iterTargetPhrase = phraseColl->begin() ; iterTargetPhrase != phraseColl->end() ; ++iterTargetPhrase)
|
for (iterTargetPhrase = phraseColl->begin() ; iterTargetPhrase != phraseColl->end() ; ++iterTargetPhrase)
|
||||||
{
|
{
|
||||||
@ -380,7 +383,11 @@ void Manager::CreateTranslationOptions(const Phrase &phrase
|
|||||||
TranslationOption transOpt(wordsRange
|
TranslationOption transOpt(wordsRange
|
||||||
, targetPhrase);
|
, targetPhrase);
|
||||||
m_possibleTranslations.push_back(transOpt);
|
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)
|
else if (sourcePhrase.GetSize() == 1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user