From 7aa68ca3f24208a168820bcdc91e3a3bcf0ff59c Mon Sep 17 00:00:00 2001 From: Franck Dary <franck.dary@lis-lab.fr> Date: Wed, 9 Oct 2019 15:34:02 +0200 Subject: [PATCH] Fixed scripts --- tools/conll2text.py | 2 +- tools/conlluAddMissingColumns.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/conll2text.py b/tools/conll2text.py index 268981f..5334ee2 100755 --- a/tools/conll2text.py +++ b/tools/conll2text.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#! /usr/bin/python3 import sys diff --git a/tools/conlluAddMissingColumns.py b/tools/conlluAddMissingColumns.py index e125838..7e902c4 100755 --- a/tools/conlluAddMissingColumns.py +++ b/tools/conlluAddMissingColumns.py @@ -29,7 +29,7 @@ if __name__ == "__main__" : lastWasEmpty = False - for line in open(sys.argv[1], "r") : + for line in open(sys.argv[1], "r", encoding="utf8") : lastWasEmpty = False if len(line.strip()) < 2 : lastWasEmpty = True -- GitLab