GodsDevProject commited on
Commit
6525b3f
·
verified ·
1 Parent(s): c8c768c

Delete redaction.py

Browse files
Files changed (1) hide show
  1. redaction.py +0 -7
redaction.py DELETED
@@ -1,7 +0,0 @@
1
- def redaction_confidence(result: dict) -> float:
2
- url = result.get("url","").lower()
3
- score = 0.9
4
- if "pdf" in url: score -= 0.3
5
- if "redact" in url: score -= 0.4
6
- if "download" in url: score -= 0.2
7
- return max(0.0, score)