ignore empty input lines

This commit is contained in:
Eva Hasler 2012-04-07 21:03:30 +01:00
parent 77c743e65f
commit 56f1101dfc
2 changed files with 2 additions and 0 deletions

View File

@ -89,6 +89,7 @@ public:
VERBOSE(2,"\nTRANSLATING(" << lineNumber << "): " << *m_source);
if ((*m_source).GetSize() == 0) return;
ChartManager manager(*m_source, &system);
manager.ProcessSentence();

View File

@ -102,6 +102,7 @@ public:
// execute the translation
// note: this executes the search, resulting in a search graph
// we still need to apply the decision rule (MAP, MBR, ...)
if ((*m_source).GetSize() == 0) return;
Manager manager(*m_source,staticData.GetSearchAlgorithm(), &system);
manager.ProcessSentence();