Downloads · 30 days
359
6% of all-time downloads
bardsai/eu-pii-anonimization-multilang-v2-preview
eu-pii-anonimization-multilang-v2-preview is a token classification model from bardsai. Use it when you need labels on individual words, such as names. The card lists the license as apache-2.0.
Important This is preview model, wherre we will be doing rolling release of new checkpoints. It might change the output of the model as the times go.
Downloads · 30 days
359
6% of all-time downloads
All-time downloads
6.2K
Public
Parameters
278M
1.1 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors1.1 GB · 99%
From the Hugging Face model README
Important This is preview model, wherre we will be doing rolling release of new checkpoints. It might change the output of the model as the times go.
A multilingual PII detector built for EU compliance reality: 24 official languages, GDPR special categories, AI Act high-risk data - in one model.

v2 continues training from bardsai/eu-pii-anonimization-multilang on additional multilingual data and adds a dedicated DATE class for generic calendar dates - distinct from the existing DATE_OF_BIRTH category. This makes v2 a better fit for redacting timelines in documents, tickets, and chat logs where any date can be identifying in context. Entity coverage grows to 36 classes.
GDPR and the AI Act require you to detect and redact personal data across every language your users write in. Most open-source PII models were trained on English with a few translations bolted on, and they cover the basics - names, emails, phone numbers - while missing exactly the categories regulators care about: biometric data, genetic data, health information, political opinions, ethnic origin.
bardsai/eu-pii-anonimization-multilangv2 is trained end-to-end on real multilingual data (not English-translated), covers 36 entity classes mapped to GDPR Article 9 special categories and AI Act high-risk identifiers.
DATE class on top of DATE_OF_BIRTH, so date-based identifiers in free text are caught too.Compliance and privacy engineers at EU companies who need to:
from transformers import AutoTokenizer, AutoModelForTokenClassification
import torch
model_name = "bardsai/eu-pii-anonimization-multilangv2"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForTokenClassification.from_pretrained(model_name)
text = "John Smith, passport AB123456, phone +48 123 456 789"
inputs = tokenizer(text, return_tensors="pt", truncation=True)
with torch.no_grad():
outputs = model(**inputs)
predictions = torch.argmax(outputs.logits, dim=-1)
tokens = tokenizer.convert_ids_to_tokens(inputs["input_ids"][0])
labels = [model.config.id2label[p.item()] for p in predictions[0]]
for token, label in zip(tokens, labels):
if label != "O":
print(label, token)
Or with a pipeline and span aggregation:
from transformers import pipeline
nlp = pipeline(
"token-classification",
model="bardsai/eu-pii-anonimization-multilangv2",
aggregation_strategy="simple",
)
print(nlp("Jan Kowalski, PESEL 80010112345, born 1980-01-01, Warszawa."))
36 classes across eight families, with B-/I- BIO labeling:
Full label list in config.json (id2label / label2id).
The model was trained on a combination of public and proprietary data:
Public datasets
Proprietary data
This is a model, not a compliance program. A few things to keep in mind:
model.safetensors - model weightsconfig.json - config and label mappingtokenizer.json, tokenizer_config.json - tokenizer assetsspecial_tokens_map.json - special token mapping@misc{bards.ai_2026,
author = { bards.ai and Karol Samorański and Michał Swędrowski and Michał Pogoda-Rosikoń },
title = { eu-pii-anonimization-multilang-v2-preview (Revision bea7d79) },
year = 2026,
url = { https://huggingface.co/bardsai/eu-pii-anonimization-multilang-v2-preview },
doi = { 10.57967/hf/9113 },
publisher = { Hugging Face }
}
We build product ML for teams shipping AI to real users - RAG, agents, fine-tuned models, evals, and the unglamorous infrastructure that keeps them working. 16+ open models on Hugging Face, 10+ publications, production deployments at Comcast, Chili Piper, and Surfer SEO.