Skip to content

Commit bc2e680

Browse files
fix: raise score_threshold to 0.5 reduce false positives
1 parent b161bcc commit bc2e680

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/privacy_proxy/app/pseudonymizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def detect_entities(text: str, language: str = None, enabled_types=None) -> list
136136
text=stripped_text,
137137
language=language,
138138
entities=["IBAN_CODE", "ORGANIZATION", "PERSON", "LOCATION", "ID"],
139-
score_threshold=0.3,
139+
score_threshold=0.5,
140140
)
141141
if enabled_types:
142142
results = [r for r in results if r.entity_type in enabled_types]

0 commit comments

Comments
 (0)