Add missing likelihood for solved solution

This commit is contained in:
Łukasz Szymula 2020-05-21 00:02:53 +02:00
parent 0f31b5f89d
commit b3599b1850
3 changed files with 6626 additions and 6607 deletions

File diff suppressed because it is too large Load Diff

19
output_prob.py Normal file
View File

@ -0,0 +1,19 @@
def replace_prob(path):
reading_file = open(path+"out.tsv", "r")
list = []
for line in reading_file:
if (float(line)> 0.95):
list.append(0.95)
elif (float(line) < 0.05):
list.append(0.05)
else:
list.append(float(line))
reading_file.close()
writing_file = open(path+"out_new.tsv", "w")
for line1 in list:
writing_file.write(str(line1)+"\n")
writing_file.close()
replace_prob("test-A/")
replace_prob("dev-0/")

File diff suppressed because it is too large Load Diff