diff options
author | Eva Hasler <ehasler@saxnot.inf.ed.ac.uk> | 2012-04-08 00:03:30 +0400 |
---|---|---|
committer | Eva Hasler <ehasler@saxnot.inf.ed.ac.uk> | 2012-04-08 00:03:30 +0400 |
commit | 56f1101dfcc115e9209cfa391b83165b0073be0f (patch) | |
tree | 37842d473b422f314402749ea9478c989eed960a /moses-chart-cmd | |
parent | 77c743e65f2c9defe38a9263acdb8b39f391593d (diff) |
ignore empty input lines
Diffstat (limited to 'moses-chart-cmd')
-rw-r--r-- | moses-chart-cmd/src/Main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/moses-chart-cmd/src/Main.cpp b/moses-chart-cmd/src/Main.cpp index f41bdb701..d6d603c1b 100644 --- a/moses-chart-cmd/src/Main.cpp +++ b/moses-chart-cmd/src/Main.cpp @@ -89,6 +89,7 @@ public: VERBOSE(2,"\nTRANSLATING(" << lineNumber << "): " << *m_source); + if ((*m_source).GetSize() == 0) return; ChartManager manager(*m_source, &system); manager.ProcessSentence(); |