Fixed output writing

This commit is contained in:
ksanu 2020-03-29 00:27:17 +01:00
parent 8d1e133c8e
commit 12b6ee8fc6
3 changed files with 10432 additions and 10428 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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")

File diff suppressed because it is too large Load Diff