baseline- return input
This commit is contained in:
parent
06d170be0b
commit
358b7b2791
12
baseline-random-input.py
Normal file
12
baseline-random-input.py
Normal 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
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
4158
test-A/out.tsv
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user