diff --git a/tools/conllXtostandoff.py b/tools/conllXtostandoff.py index 68864e12f..1d887f520 100755 --- a/tools/conllXtostandoff.py +++ b/tools/conllXtostandoff.py @@ -68,8 +68,8 @@ def output(infn, docnum, sentences): else: outfnbase = os.path.basename(infn) outfn = os.path.join(output_directory, outfnbase) - txtout = codecs.open(outfn + '.txt', 'wt', encoding=OUTPUT_ENCODING) - soout = codecs.open(outfn + '.ann', 'wt', encoding=OUTPUT_ENCODING) + txtout = codecs.open(outfn + '.txt', 'w', encoding=OUTPUT_ENCODING) + soout = codecs.open(outfn + '.ann', 'w', encoding=OUTPUT_ENCODING) offset, idnum, ridnum = 0, 1, 1