baseline- return input

This commit is contained in:
Jakub Pokrywka 2022-02-08 12:32:42 +01:00
parent 06d170be0b
commit 358b7b2791
3 changed files with 8518 additions and 0 deletions

12
baseline-random-input.py Normal file
View File

@ -0,0 +1,12 @@
import gzip
import random
random.seed(42)
for dataset in 'dev-0', 'test-A':
with gzip.open(f'{dataset}/in.tsv.gz', 'rt') as f_in, open(f'{dataset}/out.tsv', 'w') as f_out:
for line in f_in:
line = line.rstrip('\n').split('\t')
line = line[1:]
#line = random.shuffle(line)
line = '\t'.join(line) + '\n'
f_out.write(line)

4348
dev-0/out.tsv Normal file

File diff suppressed because one or more lines are too long

4158
test-A/out.tsv Normal file

File diff suppressed because one or more lines are too long