Literature · OpenMed
GLiNER2.5-PII-Multilingual-v1
A multilingual sequence tagger for detecting and masking personally identifying information in clinical and general text.
What GLiNER2.5-PII-Multilingual-v1 is
GLiNER2.5-PII-Multilingual-v1 is an open-source token classification model designed to identify and mask personally identifying information (PII). Developed by OpenMed, it locates clinical and administrative identifiers such as patient names, medical license numbers, record identifiers, dates, ages, addresses, phone numbers, and email addresses, returning character-level start and end spans alongside confidence scores.
The model addresses the challenge of patient privacy and de-identification in medical documentation. While primarily fine-tuned on Spanish clinical case reports, it also transfers to identifying personal identifiers across six other European languages: English, French, German, Italian, Dutch, and Swedish.
Rather than categorising specific entity classes into separate labels, the model maps all detected identifiers onto a single generic label: 'personally identifying information'. This makes it suitable for masking workflows where identifying every sensitive token is prioritised over fine-grained classification.
How it works
The model is a fine-tuned version of Fastino's fastino/gliner2.5-multi-v1, built on the GLiNER2 architecture with 287.4 million parameters. It was trained using the prompt 'personally identifying information' to identify sensitive spans across heterogeneous texts.
Training and tuning relied on 303 Spanish clinical case reports from the MEDDOCAN corpus alongside 2,730 synthetic multilingual documents from the Gretel synthetic PII finance dataset. During decoding, a default threshold of 0.15 is used to select entity candidates, tuned to favour recall so that personal identifiers are less likely to remain unmasked. For long documents, text is broken into sentence segments matching training chunk windows before projecting character offsets back to the full text.
Key facts
- Base architecture
- GLiNER2.5 (fastino/gliner2.5-multi-v1)
- Parameters
- 287.4M
- Task
- Token classification / PII sequence tagging
- Target label
- personally identifying information
- Default threshold
- 0.15
- Primary clinical language
- Spanish
- Additional languages
- English, French, German, Italian, Dutch, Swedish
- Training data
- MEDDOCAN corpus (Spanish clinical text) and Gretel synthetic PII finance multilingual dataset
What you can use it for
- Spanish clinical text de-identification
- Detecting sensitive patient and clinician identifiers—including names, ID codes, ages, dates, and locations—in Spanish-language medical summaries and admission notes prior to research sharing.
- Multilingual document scrubbing
- Locating personal identity tokens such as account numbers, addresses, phone numbers, and full names across English, French, German, Italian, Dutch, and Swedish texts.
- Automated document masking pipelines
- Extracting exact character spans with confidence scores to replace sensitive tokens with placeholder tags like [PII] in high-throughput local CPU or GPU setups.
Run it here
We list this model but cannot run it yet: its weights load through the openmed package, which we have not written a loader for yet.
Everything on this page still applies. Running it needs a loader for this repository, not a bigger machine.
Strengths and limits
Good at
- Attains a 98.57 character F2 score and fully masks 98.94% of critical identifiers on held-out Spanish MEDDOCAN evaluation cases.
- Maintains high specificity on non-sensitive clinical text, masking zero spans across 24 control clinical notes devoid of personal data.
- Operates efficiently with 287.4 million parameters and can be executed locally on standard CPU hardware as well as GPUs.
- Extracts exact character-level offsets directly, allowing direct integration into redaction workflows.
Watch out for
- For research use only: it is not a medical device and must not be used for diagnosis, treatment or any clinical decision.
- It does not provide fine-grained entity types, meaning downstream replacement strategies like category-specific synthetic surrogates require separate classification steps.
- Clinical fine-tuning was restricted to Spanish, with non-Spanish language performance evaluated only on synthetic financial records rather than authentic medical documentation.
- Lower sensitivity is observed on certain categories, such as patient profession spans and German legal names (61.68% fully masked).
- It cannot guarantee complete anonymisation; human verification is required as some identifying spans (e.g. written dates or alphanumeric tax IDs) may be missed.
Inputs and outputs
You provide
Text
Entities are labelled token by token.
You get back
Labels with confidence scores, highest first.
Licence
Check the licence before commercial use · apache-2.0
The apache-2.0 licence carries terms worth reading before you depend on it.
Questions
Can I use GLiNER2.5-PII-Multilingual-v1 commercially?
Check the licence before commercial use. The apache-2.0 licence carries terms worth reading before you depend on it.
What entity labels does this model output?
The model outputs a single generic label: 'personally identifying information'. It identifies the spans that should be redacted rather than categorising whether a span is a name, date, or address.
Can the model process entire clinical records at once?
Yes. When called via the OpenMed SDK, documents are split into sentence groups matching the model's window size and returned with offsets mapped directly to the original complete text.
Why is the default score threshold set to 0.15?
The threshold of 0.15 was selected during tuning to optimise recall (measured by F2 score), ensuring that identifying data is aggressively caught even if precision drops slightly.
Does this model distinguish between patient names and clinician names?
No. Both patient and healthcare provider names are detected under the generic 'personally identifying information' label without role distinction.
How to cite it
Maziyar Panahi, 'OpenMed NER: Open-Source, Domain-Adapted State-of-the-Art Transformers for Biomedical NER Across 12 Public Datasets', arXiv:2508.01630, 2025.
Written from GLiNER2.5-PII-Multilingual-v1's own documentation (model card). Statements citing a figure that does not appear there are removed before publication. Licence and running details come from our registry.
