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-cmd | |
parent | 77c743e65f2c9defe38a9263acdb8b39f391593d (diff) |
ignore empty input lines
Diffstat (limited to 'moses-cmd')
-rw-r--r-- | moses-cmd/src/Main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/moses-cmd/src/Main.cpp b/moses-cmd/src/Main.cpp index 0eeaa74e5..44eca6535 100644 --- a/moses-cmd/src/Main.cpp +++ b/moses-cmd/src/Main.cpp @@ -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(); |