Paste some text or click an example, and press Find personal data. The first run downloads the model once (about 177 MB with its tokenizer); after that it is cached on this device and the next visit starts in a few seconds. You get the text with each item marked, and a redacted copy with placeholders such as [PHONE].
The same in your code
Same model and the same decoding, on any CPU, from one Python file.
pip install onnxruntime tokenizers numpy huggingface_hub
wget https://huggingface.co/amyrmahdy/decima-pii/resolve/v0.2.1/decima_pii.py
from decima_pii import DecimaPII
pii = DecimaPII.from_pretrained("amyrmahdy/decima-pii", revision="v0.2.1")
pii.find("My name is Sara Ahmadi and my card is 5185 5272 2255 5565.")
# [{'start': 11, 'end': 22, 'label': 'PERSON_NAME', 'text': 'Sara Ahmadi'},
# {'start': 38, 'end': 57, 'label': 'CARD', 'text': '5185 5272 2255 5565'}]
pii.redact("Merhaba, ben Ayşe Yılmaz, telefonum 0532 123 45 67.")
# 'Merhaba, ben [PERSON_NAME], telefonum [PHONE].'
On a test set I did not make
MultiGraSCCo (Baroud et al., LREC 2026) is a set of clinical letters translated into ten languages by other researchers. decima-pii never trained on it. Scored on the five types it shares with this model (names, phones, emails, addresses, dates of birth; 1,814 spans), relaxed typed F1 as in their paper:
| decima-pii v0.2 | v0.1 | OpenAI privacy-filter | |
|---|---|---|---|
| All four languages | 0.910 | 0.870 | 0.647 |
| English | 0.957 | 0.957 | 0.901 |
| Arabic | 0.913 | 0.843 | 0.581 |
| Persian | 0.849 | 0.805 | 0.508 |
| Turkish | 0.928 | 0.889 | 0.626 |
Not a pure first look: earlier versions were checked on this set, so read these numbers as "after a few looks". For v0.2 I also froze an Arabic test set none of my models had seen (Sitr, Gulf and Levant messages, no names) and ran v0.2 on it once: 0.875, against 0.856 for v0.1. v0.2.1 is the same model with one decoding rule added: a number right after a phone word such as جوالي is now marked as a phone. The model card has strict scores, four more outside test sets, where it loses, the limits, and how it was made.