Skip to content
Snippets Groups Projects
Commit 22fdadcc authored by Charlotte Mauvezin's avatar Charlotte Mauvezin
Browse files

display proper table

parent 93a268bf
No related branches found
No related tags found
1 merge request!13Better parser
Pipeline #103837 passed
......@@ -595,11 +595,17 @@ def run_multiple(file_csv, folder, threshold, verbose):
else:
raise Exception(f"No file found for files {annot}, {predict}")
if count:
print(
"Average score on all corpus"
"| Precision | Recall | F1 |\n"
"|-----------|--------|-------|\n"
f"| {round(precision/count, 3)} | {round(recall/count, 3)} | {round(f1/count, 3)} |\n"
print("Average score on all corpus")
tt.print(
[
[
round(precision / count, 3),
round(recall / count, 3),
round(f1 / count, 3),
]
],
["Precision", "Recall", "F1"],
style=tt.styles.markdown,
)
else:
raise Exception("No file were counted")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment