From four fixed labels to any type you need
The previous version of this page ran an English BERT model trained on CoNLL-2003. It knew four labels (person, organisation, location and “miscellaneous”), ran twice for every request and inserted the analysed text into the page as HTML. Anything outside those four labels, from medications to case numbers, was out of reach, and so was any text not written in English.
The new extractor uses GLiNER, a family of models built for open-type entity recognition. Instead of a fixed output layer with one slot per label, GLiNER reads the type names as part of its input, encodes every span of up to twelve words, and scores each span against each type. A type the model has never seen in training still works, as long as its name means something.
Three models, measured on the same tests
We ran each model on three public benchmarks with exact-span scoring: a prediction counts only if its boundaries and its type both match the annotation.
| Benchmark | What it tests | Fast (173 MB) | Balanced (303 MB) | Most accurate (580 MB) |
|---|---|---|---|---|
| CoNLL-2003, 400 sentences | People, organisations, places in English news | F1 0.65 | 0.64 | 0.63 |
| WikiANN, 8 languages × 250 sentences | The same three types in en, tr, de, es, fr, ru, ar, zh | 0.47 | 0.44 | 0.55 |
| CrossNER, 5 domains × 150 sentences | Unusual types: algorithms, music genres, political parties, scientists… | 0.34 | 0.51 | 0.65 |
Two things stand out. For everyday types all three models are close, so the fast one is enough for names, companies and places. For specialised types the bigger models pull clearly ahead, which is what the Balanced default is for. WikiANN scores look low partly because its annotations include case endings: in Turkish, “Club Brugge’de” is the gold span, so a model that marks “Club Brugge” counts as wrong. Counting overlapping spans as matches, the most accurate model scores 0.80 in Turkish and 0.71 on average.
Personal data: model plus patterns
Personal data is a mix of things a model has to understand (a name, an address written in prose, a date of birth) and identifiers with a fixed format. The Personal data preset combines both:
- Model types: person, street address, date of birth, passport or ID number, bank account number, username, money.
- Exact patterns: email addresses, phone numbers in international and grouped national formats, IBANs with the mod-97 check, card numbers with the Luhn check, IPv4 and IPv6 addresses, URLs.
We tested the type names before choosing them. “Passport or id number” caught a passport number with 79% confidence where “id number” gave 57% and “document number” 48%, so small wording changes matter, and the preset uses the wording that worked best.
A redacted copy you can actually read
Black bars make a document unreadable; tags keep it useful. The Redacted copy tab offers three styles:
| Style | Example | Best for |
|---|---|---|
| Numbered tags | [PERSON_1] met [PERSON_2]; [PERSON_1] paid | Sharing a document while keeping who-did-what |
| Type tags | [PERSON] met [PERSON] | Training data, minimal information |
| Black bars | ████ met ████ | Printing, screenshots |
Only the types visible in the legend are replaced, so you can, for example, keep company names and remove people. The model works in your browser, so a contract or a medical note never leaves your computer while it is being anonymised.
Practical limits
Recognition is probabilistic. A name the model has never seen in a lower-case chat message, an unusual abbreviation or a type with a vague name can be missed or mislabelled; lowering the minimum confidence shows more candidates. Coreference is not resolved: “Haddad” and “Amira Haddad” are two list entries, although the same text under the same type is grouped. For redaction that matters legally, use the tool to do the bulk of the work and read the result once.