17 lines
345 B
Python
17 lines
345 B
Python
import csv
|
|
|
|
counter = 0
|
|
with open('in.tsv') as tsvfile:
|
|
reader = csv.reader(tsvfile, delimiter='\t')
|
|
for row in reader:
|
|
print(row)
|
|
counter+=1
|
|
|
|
print(counter)
|
|
|
|
with open('prediction.tsv', 'wt') as tsvfile:
|
|
tsv_writer = csv.writer(tsvfile, delimiter='\t')
|
|
for i in range(counter):
|
|
tsv_writer.writerow('S')
|
|
|