PII Detection Configuration
Options
| Option | Default | Description |
|---|---|---|
presidio_url | http://localhost:5002 | Presidio analyzer URL |
languages | [en] | Languages to detect. Must match Docker build |
fallback_language | en | Fallback if detected language not in list |
score_threshold | 0.7 | Minimum confidence (0.0-1.0) |
entities | See below | Entity types to detect |
Languages
Languages must be installed during Docker build:ca, zh, hr, da, nl, en, fi, fr, de, el, it, ja, ko, lt, mk, nb, pl, pt, ro, ru, sl, es, sv, uk
Single Language
If only one language is specified, language detection is skipped for better performance:Fallback Language
If the detected language isn’t in your list, the fallback is used:Entities
| Entity | Examples |
|---|---|
PERSON | Dr. Sarah Chen, John Smith |
EMAIL_ADDRESS | sarah.chen@hospital.org |
PHONE_NUMBER | +1-555-123-4567 |
CREDIT_CARD | 4111-1111-1111-1111 |
IBAN_CODE | DE89 3704 0044 0532 0130 00 |
IP_ADDRESS | 192.168.1.1 |
LOCATION | New York, 123 Main St |
US_SSN | 123-45-6789 |
US_PASSPORT | 123456789 |
CRYPTO | Bitcoin addresses |
URL | https://example.com |