Skip to content

Commit

Permalink
Output empty translation for empty sentence
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumekln committed Feb 8, 2017
1 parent cad7dfb commit 994a9d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions translate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ local function main()
for b = 1, #results do
if (#srcBatch[b].words == 0) then
_G.logger:warning('Line ' .. sentId .. ' is empty.')
outFile:write('\n')
else
_G.logger:info('SENT %d: %s', sentId, buildSentence(srcBatch[b]))

Expand Down

0 comments on commit 994a9d6

Please sign in to comment.