mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-20 07:42:21 +03:00
Bug fix in scripts/server/sim-pe.py.
This commit is contained in:
parent
59ddfdfaa0
commit
365a2ae95d
@ -113,7 +113,7 @@ def translate(proxy, args, line):
|
||||
if type(line) is unicode:
|
||||
param = { 'text' : line.strip().encode('utf8') }
|
||||
elif type(line) is str:
|
||||
param = { 'text' : line.strip().encode('utf8') }
|
||||
param = { 'text' : line.strip() }
|
||||
else:
|
||||
raise Exception("Can't handle input")
|
||||
if args.A: param['align'] = True
|
||||
|
Loading…
Reference in New Issue
Block a user