Downloads · 30 days
44
36% of all-time downloads
munibz/pii-distilbert-en
pii-distilbert-en is a token classification model from munibz. Use it when you need labels on individual words, such as names. The card lists the license as apache-2.0.
Fine-tuned distilbert-base-cased for PII (Personally Identifiable Information) detection on the English subset of ai4privacy/pii-masking-300k.
Downloads · 30 days
44
36% of all-time downloads
All-time downloads
123
Public
Parameters
65.2M
261 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors261 MB · 100%
From the Hugging Face model README
Fine-tuned distilbert-base-cased for PII (Personally Identifiable Information) detection
on the English subset of ai4privacy/pii-masking-300k.
PERSON, EMAIL, PHONE, USERNAME, ID_NUMBER, ADDRESS, IP_ADDRESS,
URL, DATE_TIME, PASSWORD, DEMOGRAPHIC, OTHER
from transformers import pipeline
ner = pipeline("ner", model="munibz/pii-distilbert-en", aggregation_strategy="simple")
text = "Hi, I'm John Smith. Email me at [email protected]."
print(ner(text))