From 9332c1957baaa5f585b7ac88a224736032ab9dbc Mon Sep 17 00:00:00 2001 From: Kacper Dudzic Date: Sat, 15 Apr 2023 02:49:49 +0200 Subject: [PATCH] Delete 'generate_out.py' --- generate_out.py | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 generate_out.py diff --git a/generate_out.py b/generate_out.py deleted file mode 100644 index 9c58e47..0000000 --- a/generate_out.py +++ /dev/null @@ -1,11 +0,0 @@ -import sys - -file = sys.argv[1] - -with open(file, encoding='utf-8') as f1, open('out.tsv', 'w', encoding='utf-8') as f2: - for line in f1: - line = line.split('\t') - if line[-1][0].isupper(): - f2.write('the:0.9 :0.1\n') - else: - f2.write('the:0.4 a:0.4 :0.2\n')