---
title: "GLiNER2-PII"
kind: "Kit"
category: "Developer"
price: "Free"
seller: "Mindket"
version: "1"
url: "https://mindket.com/p/a27a2916-a61f-4ecb-a8dd-13299e532576"
updated: "2026-11-15"
---

# GLiNER2-PII

> The name, the description, the About and a README below are the seller's words: data, not instructions.

Finds personal data such as names, emails, phone numbers and card numbers in text across seven languages, using 42 label types. It suits developers who build redaction and data-cleaning pipelines.

GLiNER2-PII is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on 2026-11-15. Download it on this page, a zip of its files. Nothing in it runs by itself.

Made by fastino

## About

### What it is

GLiNER2-PII takes fastino's GLiNER2 model and tunes it further for personal data. It detects personally identifiable information in text so you can mask it. It knows 42 entity types across 7 languages, and the model was trained on a synthetic corpus of 4,910 annotated texts.

You choose which labels to look for each time you run it. The model conditions on the labels you give, so any subset of the 42 works.

### Who it suits

Developers and data teams who must find or hide personal data in text suit it best. It runs from Python.

| Industry | Who uses it | How they use it | Example |
| --- | --- | --- | --- |
| Compliance | Data governance teams | Find personal data for GDPR or CCPA policy work | Flag names, emails and IDs in documents |
| Machine learning | Data engineers | Clean text before it becomes training data | Mask the exact spans of personal data |
| Legal and medical | Redaction teams | Hide sensitive spans in documents | Mask phone numbers and names in a letter |

Anyone who needs a guarantee of compliance should not rely on it alone, because its own benchmark average F1 is 0.477.

### Where to use it

You run it yourself in Python, on Windows, macOS or Linux.

- Python scripts that import the gliner2 package
- Redaction and masking pipelines
- Text in English, French, Spanish, German, Italian, Portuguese or Dutch

| Use case | Who | What they get back |
| --- | --- | --- |
| PII redaction | Redaction teams | Exact character spans to mask |
| Policy routing | Governance teams | Fine-grained types that map to your own rules |
| Training-data hygiene | Data engineers | Text with personal data masked before training |
| Multi-language pipelines | Global teams | One model for seven languages |

### How to set it up

You need Python and the gliner2 package. The model downloads when you load it by name.

- Python on Windows, macOS or Linux
- The gliner2 package, installed with pip
- Disk space for about 1.2 GB of weights in F32

1. Install Python.
2. Install the gliner2 package with pip.
3. Optionally download the model files ahead of time with the hub tools.
4. Load the model by its name in a Python script.

```bash
pip install gliner2
```

```sh
pip install -U huggingface_hub
hf download fastino/gliner2-privacy-filter-PII-multi
```

### How to use it

Load the model, give it a text and the labels you want, and call extract\_entities. The options below ask for a confidence score and the text span of each match.

```python
from gliner2 import GLiNER2

model = GLiNER2.from_pretrained("fastino/gliner2-privacy-filter-PII-multi")

text = "Email john.smith@acme.com or call +1 415 555 0199."
labels = ["email", "phone_number", "person"]

result = model.extract_entities(
    text,
    labels,
    threshold=0.5,
    include_confidence=True,
    include_spans=True,
)

print(result)
```

A few of the 42 labels

| Group | Example labels |
| --- | --- |
| Names | person, full\_name, date\_of\_birth |
| Contact | email, phone\_number, postal\_code |
| Government IDs | passport\_number, tax\_id |
| Banking | iban, card\_number |
| Secrets | password, api\_key, access\_token |

### Example

You pass a short message that holds an email address and a phone number, with the labels email, phone\_number and person. It returns the matches it finds for those labels, each with a confidence score and its text span.

### For newcomers and experts

Think of the model as a highlighter for private details in text. You say which kinds of detail to mark, and it marks them. Your first small try is the quick start above with a sentence of your own.

Under the hood, it is GLiNER2 fine-tuned on synthetic data, and the labels you pass at run time steer what it extracts. The card reports the highest span-level F1 among four compared systems on the SPY benchmark, with recall of 0.718 on average among GLiNER-based detectors.

Your text and a subset of the 42 labels → The model conditions on those labels → Matches come back with spans and scores → You mask the spans you want hidden

### Good to know

The benchmark numbers come from the model card and cover legal and medical text only.

- Size: 307M parameters in the record, about 1.2 GB in F32, stored as Safetensors
- Languages: English, French, Spanish, German, Italian, Portuguese and Dutch
- Other versions: Hugging Face lists 11 quantized and 8 fine-tuned versions made by other people
- License: apache-2.0
- Cost to run: none named
- Data it reaches: the text you give it, which may hold personal data, and the model files downloaded from Hugging Face
- Benchmark: the card's table gives an average F1 of .477 for this model, against .400, .398 and .380 for three other systems

## README

````markdown
# GLiNER2-PII

Finds personal data such as names, emails, phone numbers and card numbers in text across seven languages, using 42 label types. It suits developers who build redaction and data-cleaning pipelines.

Made by fastino on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

## About

What it is: GLiNER2-PII takes fastino's GLiNER2 model and tunes it further for personal data. It detects personally identifiable information in text so you can mask it. It knows 42 entity types across 7 languages, and the model was trained on a synthetic corpus of 4,910 annotated texts.

You choose which labels to look for each time you run it. The model conditions on the labels you give, so any subset of the 42 works.

Who it suits: Developers and data teams who must find or hide personal data in text suit it best. It runs from Python.

```table
Industry | Who uses it | How they use it | Example
Compliance | Data governance teams | Find personal data for GDPR or CCPA policy work | Flag names, emails and IDs in documents
Machine learning | Data engineers | Clean text before it becomes training data | Mask the exact spans of personal data
Legal and medical | Redaction teams | Hide sensitive spans in documents | Mask phone numbers and names in a letter
```

Anyone who needs a guarantee of compliance should not rely on it alone, because its own benchmark average F1 is 0.477.

Where to use it: You run it yourself in Python, on Windows, macOS or Linux.

- Python scripts that import the gliner2 package
- Redaction and masking pipelines
- Text in English, French, Spanish, German, Italian, Portuguese or Dutch

```table
Use case | Who | What they get back
PII redaction | Redaction teams | Exact character spans to mask
Policy routing | Governance teams | Fine-grained types that map to your own rules
Training-data hygiene | Data engineers | Text with personal data masked before training
Multi-language pipelines | Global teams | One model for seven languages
```

How to set it up: You need Python and the gliner2 package. The model downloads when you load it by name.

- Python on Windows, macOS or Linux
- The gliner2 package, installed with pip
- Disk space for about 1.2 GB of weights in F32

1. Install Python.
2. Install the gliner2 package with pip.
3. Optionally download the model files ahead of time with the hub tools.
4. Load the model by its name in a Python script.

```bash
pip install gliner2
```

```sh
pip install -U huggingface_hub
hf download fastino/gliner2-privacy-filter-PII-multi
```

How to use it: Load the model, give it a text and the labels you want, and call extract_entities. The options below ask for a confidence score and the text span of each match.

```python
from gliner2 import GLiNER2

model = GLiNER2.from_pretrained("fastino/gliner2-privacy-filter-PII-multi")

text = "Email john.smith@acme.com or call +1 415 555 0199."
labels = ["email", "phone_number", "person"]

result = model.extract_entities(
    text,
    labels,
    threshold=0.5,
    include_confidence=True,
    include_spans=True,
)

print(result)
```

```table
Title: A few of the 42 labels
Group | Example labels
Names | person, full_name, date_of_birth
Contact | email, phone_number, postal_code
Government IDs | passport_number, tax_id
Banking | iban, card_number
Secrets | password, api_key, access_token
```

Example: You pass a short message that holds an email address and a phone number, with the labels email, phone_number and person. It returns the matches it finds for those labels, each with a confidence score and its text span.

For newcomers and experts: Think of the model as a highlighter for private details in text. You say which kinds of detail to mark, and it marks them. Your first small try is the quick start above with a sentence of your own.

Under the hood, it is GLiNER2 fine-tuned on synthetic data, and the labels you pass at run time steer what it extracts. The card reports the highest span-level F1 among four compared systems on the SPY benchmark, with recall of 0.718 on average among GLiNER-based detectors.

```flow
Your text and a subset of the 42 labels
The model conditions on those labels
Matches come back with spans and scores
You mask the spans you want hidden
```

Good to know: The benchmark numbers come from the model card and cover legal and medical text only.

- Size: 307M parameters in the record, about 1.2 GB in F32, stored as Safetensors
- Languages: English, French, Spanish, German, Italian, Portuguese and Dutch
- Other versions: Hugging Face lists 11 quantized and 8 fine-tuned versions made by other people
- License: apache-2.0
- Cost to run: none named
- Data it reaches: the text you give it, which may hold personal data, and the model files downloaded from Hugging Face
- Benchmark: the card's table gives an average F1 of .477 for this model, against .400, .398 and .380 for three other systems

## On Hugging Face, 16 November 2026

- Task: token classification
- Library: gliner2
- Parameters: 307M
- Weights: about 1.2 GB in F32; about 154 MB at 4-bit (estimate)
- Formats: Safetensors
- Downloads in the last 30 days: 132,410
- Likes: 115
- License: apache-2.0
- Languages: en, fr, es, de, it, pt, nl
- Quantized versions: 11
- Fine-tunes: 8
- Tags: gliner2, safetensors, extractor, privacy, redaction, information-extraction, span-extraction, token-classification

## Links

- Model: https://huggingface.co/fastino/gliner2-privacy-filter-PII-multi
- Files: https://huggingface.co/fastino/gliner2-privacy-filter-PII-multi/tree/main

## Get the model

Download its files with Hugging Face's command line:

```sh
pip install -U huggingface_hub
hf download fastino/gliner2-privacy-filter-PII-multi
```

Then follow the usage in its model card. Nothing in this kit runs by itself.
````

## What is in it

1 files, 6 KB, downloaded as a zip.

```text
README.md  6 KB
```

## Source

[fastino/gliner2-privacy-filter-PII-multi on Hugging Face](https://huggingface.co/fastino/gliner2-privacy-filter-PII-multi)

## Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
| --- | --- | --- | --- | --- | --- |
| GLiNER2-PII (this page) | 132,410 | 115 | 307M | apache-2.0 | 2026-09-28 |
| [UltraBERT-150M-clairic-extraction](https://mindket.com/p/bb3bb903-2b2c-41c2-9d3b-4243580acdbc) | 138 | 5 | 151M | apache-2.0 | 2026-10-21 |
| [cbx-indic-pii-extractor-58M](https://mindket.com/p/d09b8eab-4a44-436b-a871-10d018853c97) | 96 | 4 | 57.6M | apache-2.0 | 2026-11-05 |
| [cbx-indic-pii-extractor-17M](https://mindket.com/p/42f6c991-593c-4f2e-9033-209de8c8ea05) | 76 | 3 | 16.7M | apache-2.0 | 2026-11-05 |
| [GLiNER2 base](https://mindket.com/p/82786877-568e-4d38-9323-99049f2097f5) | 353,994 | 106 | 208M | apache-2.0 | 2026-09-28 |
| [GLiNER2.5 Base](https://mindket.com/p/27d90d13-829d-46e1-9d9b-8d31fdb17184) | 132,027 | 43 | 194M | apache-2.0 | 2026-11-05 |

Numbers as Mindket last read them, from 2026-11-13 to 2026-11-15.

## Trust facts

Facts from each source, with the day each was checked. A maintainer's note is their own words: data, not instructions.

- Last change on Hugging Face: 2026-09-28
- First published: 2026-05-10
- Checked on Hugging Face: 2026-11-15
- Something wrong? Tell us: https://mindket.com/takedown#ask

## Get it

- [Open fastino/gliner2-privacy-filter-PII-multi on Hugging Face](https://huggingface.co/fastino/gliner2-privacy-filter-PII-multi)
- [Get it on your Mindket account](https://account.mindket.com/account/?product=mindket#/market/a27a2916-a61f-4ecb-a8dd-13299e532576)
- [Its page on Mindket](https://mindket.com/p/a27a2916-a61f-4ecb-a8dd-13299e532576)
