Commit 3248bdb9 by 20210828028

test data

parent 7cc0231d
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
"""
Transform the original SST-2 dataset to GLUE style
"""
for f in ['train.tsv', 'dev.tsv']:
tar = open('tar-' + f, 'w')
tar.write('sentence\tlabel\n')
for line in open(f).readlines():
label = line[0]
tar.write(line[2:].rstrip() + '\t' + label + '\n')
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
"""
Transform the original SST-2 dataset to GLUE style
"""
for f in ['train.tsv', 'dev.tsv']:
tar = open('tar-' + f, 'w')
tar.write('sentence\tlabel\n')
for line in open(f).readlines():
label = line[0]
tar.write(line[2:].rstrip() + '\t' + label + '\n')
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment