From 3e4c5a6261770bced301b5e74233e7866166ea5b Mon Sep 17 00:00:00 2001 From: Christian Krinitsin Date: Sun, 1 Jun 2025 21:35:14 +0200 Subject: clean up repository --- classification/output.py | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 classification/output.py (limited to 'classification/output.py') diff --git a/classification/output.py b/classification/output.py deleted file mode 100644 index 971c3830..00000000 --- a/classification/output.py +++ /dev/null @@ -1,12 +0,0 @@ -from os import path, makedirs - -def output(text : str, category : str, labels : list, scores : list, identifier : str): - file_path = f"output/{category}/{identifier}" - makedirs(path.dirname(file_path), exist_ok = True) - - with open(file_path, "w") as file: - for label, score in zip(labels, scores): - file.write(f"{label}: {score:.3f}\n") - - file.write("\n") - file.write(text) -- cgit 1.4.1