Instructions to use IamVERA-AB/x-ray with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER2
How to use IamVERA-AB/x-ray with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("IamVERA-AB/x-ray") # Extract entities text = "Apple CEO Tim Cook announced iPhone 15 in Cupertino yesterday." result = extractor.extract_entities(text, ["company", "person", "product", "location"]) print(result) - Notebooks
- Google Colab
- Kaggle
Vera X-Ray: personal data recognition for Dutch and English
Current version: v28. This is the recognition model behind Vera X-Ray 1.0.28, the browser extension by IamVERA that finds and masks personal data in a document before it reaches an AI model. The model runs entirely in the user's browser, through ONNX Runtime Web. No document text leaves the device.
It is a fine-tune of fastino/gliner2-multi-v1
(Apache 2.0). Besides ordinary personal data it covers the GDPR special categories
(Art. 9 and 10): health, beliefs, sexuality, ethnicity, trade union membership and criminal
data. It also covers abuse and safeguarding information.
Files
| File | What it is | Bytes |
|---|---|---|
model_shared.onnx |
the shared base graph; takes an adapter's LoRA matrices as inputs | 425,758,812 |
adapter_core.safetensors |
xray22s: core pass (ordinary personal data) and health pass |
26,372,312 |
adapter_second.safetensors |
xray22r: beliefs, personal life, criminal data and safeguarding |
26,372,312 |
tokenizer.json |
tokenizer of the base model, with GLiNER2's special tokens | 16,337,353 |
tokenizer_config.json |
tokenizer configuration | 21,626 |
The SHA-256 of every file is in SHA256SUMS. This version is also tagged v28 in this
repository.
One graph, two adapters, 495 MB. v28 consists of two fine-tunes of the same base
model, each with its own LoRA adapter (rank 32). Vera X-Ray 1.0.28 shipped them as two
merged models of 651 MB each, 1.3 GB in total. This repository has the smaller form of the
same two fine-tunes: the base graph is exported once, and every adapted layer computes
W x + b + 2 · B (A x) with the adapter's matrices as inputs. The base weights are stored
as fp16 and computed in fp32; the word embeddings keep their int8 rows. That is 62% smaller,
and the base weights are held in memory once.
Measured against the merged models, over 881,712 spans: the largest score change is 0.003, and one span crosses its threshold. On the 1,617 test documents the merged models miss 1,135 values and this form misses 1,136. The only difference is one quote of a child, scored 0.448 instead of 0.450 against a threshold of 0.45. False alarms are the same.
How it is used
The model follows GLiNER2's entity-extraction prompt:
( [P] entities ( [E] label₁ [E] label₂ … ) ) [SEP_TEXT] word₁ word₂ …
Vera X-Ray runs four passes, each with its own label set, and combines the model's spans with deterministic rules and validators (IBAN, BSN, payment cards, postcodes, phone numbers and more). Thresholds are calibrated per label and language. The model is advisory: it adds to the rules, and every finding is shown to the user for review before anything is sent.
Labels.
- Core: person, organization, city, address, country, date, date of birth, age, phone number, email address, case number, reference number, money amount, student number, employee number, membership number, professional registration number, national identification number, patient number, family member, diagnosis, medication.
- Health: symptom, medical finding, lab result, assessment score, medical history, mental health condition, pregnancy, disability, allergy, genetic data, biometric data.
- Beliefs and personal life: religious belief, philosophical belief, racial or ethnic origin, sexual orientation, sex life, trade union membership, political opinion, criminal record or proceedings, allegation.
- Safeguarding: physical abuse, sexual abuse, psychological abuse, financial abuse, domestic violence, stalking, alleged perpetrator, safe location, safeguarding plan, suicide or self-harm, patient quote, information about a minor.
Results
These are measured on a held-out test split of 1,617 Dutch and English documents, with rules and model combined as shipped in Vera X-Ray 1.0.28. Thresholds were calibrated on a separate split of 558 documents.
| Measure | Found |
|---|---|
| Ordinary personal data | 19,474 / 19,945 (97.6%) |
| Special categories | 11,432 / 12,223 (93.5%) |
| Model false alarms | 3,343 (2.1 per document) |
Highlights per category:
- names 99.1% (4,613 values) and cities 99.7%;
- 100% on date of birth, phone, IBAN, passport, citizen service number (BSN) and payment card;
- lab results 99.7%, disability 99.6%, symptoms 98.5%, physical abuse 98.4%, sexual abuse 97.6%, trade union membership 97.1%.
Known weaknesses. Categories below their gate (90% ordinary, 95% special):
- ordinary: diagnosis 79.9%, income 83.5%, medication 85.7%;
- health and personal life: biometric data 80.6%, medical history 88.0%, political opinion 87.6%, philosophical belief 91.5%, race or ethnicity 92.6%, sex life 93.0%;
- abuse and vulnerability: stalking 79.5%, psychological abuse 81.9%, financial abuse 83.7%, alleged perpetrator 86.4%, safeguarding plan 87.5%, suicide or self-harm 93.0%, safe location 93.8%, quote of a client or child 93.6%.
English scores lower than Dutch in several categories. All evaluation text is synthetic, and so is nearly all training text, so real documents will score lower. A negative result never marks a document as safe.
Training data
About 31,900 examples written for Vera X-Ray: synthetic Dutch and English documents with invented people and records. Added to them were 6,988 examples, at most 1,000 from each of these sets:
- MedDeID synthetic clinical notes, Dutch and en-GB (CC BY 4.0, MedDeID contributors);
- TAB, Text Anonymization Benchmark, training split only (MIT, Norsk Regnesentral);
- gretel synthetic_pii_finance_multilingual, Dutch and English (Apache 2.0);
- NVIDIA Nemotron-PII (CC BY 4.0);
- OpenNyAI InLegalNER (MIT according to the dataset card).
Labels were mapped to Vera X-Ray's label set, and labels a source does not annotate were filled in by Vera X-Ray's rules and an earlier model. TAB and InLegalNER are published court judgments; all other training text is synthetic.
Licence
The fine-tuned weights are released under CC BY-NC 4.0: free for non-commercial use,
with attribution to IamVERA. For commercial use, contact IamVERA. The base model
fastino/gliner2-multi-v1 is Apache 2.0; its licence and notices apply to the parts that
come from it.
Intended use and limits
- Intended use: finding personal data in Dutch and English text so a person can review it and mask it before the text is shared.
- Not intended for: automated release decisions without human review, profiling, or inferring special-category information about people.
- Limits: the model is not a guarantee. It can miss information and it can mark text that is not personal data.
Model tree for IamVERA-AB/x-ray
Base model
fastino/gliner2-multi-v1