Fixed output writing
This commit is contained in:
parent
8d1e133c8e
commit
12b6ee8fc6
10544
dev-0/out.tsv
10544
dev-0/out.tsv
File diff suppressed because it is too large
Load Diff
12
solution.py
12
solution.py
@ -31,8 +31,12 @@ predicted_testA = clf.predict(testA_new_counts)
|
||||
print(len(dev0))
|
||||
print(len(predicted_dev0))
|
||||
|
||||
with open("dev-0/out.tsv"):
|
||||
print(predicted_dev0)
|
||||
with open("dev-0/out.tsv", "w") as out1:
|
||||
for line in predicted_dev0:
|
||||
out1.write(line)
|
||||
out1.write("\n")
|
||||
|
||||
with open("test-A/out.tsv"):
|
||||
print(predicted_testA)
|
||||
with open("test-A/out.tsv", "w") as out2:
|
||||
for line in predicted_testA:
|
||||
out2.write(line)
|
||||
out2.write("\n")
|
||||
|
10304
test-A/out.tsv
10304
test-A/out.tsv
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user