Add missing likelihood for solved solution
This commit is contained in:
parent
0f31b5f89d
commit
b3599b1850
6590
dev-0/out.tsv
6590
dev-0/out.tsv
File diff suppressed because it is too large
Load Diff
19
output_prob.py
Normal file
19
output_prob.py
Normal 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/")
|
6624
test-A/out.tsv
6624
test-A/out.tsv
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user