From f1dfca6447637c87b490d160f6bbb312a297e8d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20N=C3=BCsse?= Date: Sun, 28 Apr 2024 10:58:59 +0200 Subject: [PATCH] make result more helpful --- scripts/checkProfanity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkProfanity.py b/scripts/checkProfanity.py index e1222ecb..f98cd597 100755 --- a/scripts/checkProfanity.py +++ b/scripts/checkProfanity.py @@ -11,7 +11,7 @@ print("Checking: "+str(line.rstrip())) prediction = predict_prob([line.rstrip()]) if prediction[0] > 0.5: - file.write(str(line.rstrip())+"\n") + file.write(str(prediction[0]) + " - " + str(line.rstrip())+"\n") print("Offending line: "+str(line.rstrip())) file.close() \ No newline at end of file