CoolFace
Datasetpublic

575-lab/kiji-inspector-reviewed-pairs

Kiji PII Detection Training Data Synthetic multilingual dataset for training PII (Personally Identifiable Information) detection models with token-level entity annotations and coreference resolution. Dataset Summary Samples 99,990 (train: 89,991, test: 9,999) Languages 6 (Dutch, Spanish, German, English, Danish, French) Countries 20 PII entity types 26 Total entity annotations 814,306 (avg 8.1 per sample) Coreference clusters 142,142 (99% of… See the full description on the dataset page: https://huggingface.co/datasets/575-lab/kiji-inspector-reviewed-pairs.

sourceHugging Faceapache-2.0updated 5mo agoView on Hugging Face
0likes35downloads
Dataset Card

Kiji PII Detection Training Data

Synthetic multilingual dataset for training PII (Personally Identifiable Information) detection models with token-level entity annotations and coreference resolution.

Dataset Summary

Samples99,990 (train: 89,991, test: 9,999)
Languages6 (Dutch, Spanish, German, English, Danish, French)
Countries20
PII entity types26
Total entity annotations814,306 (avg 8.1 per sample)
Coreference clusters142,142 (99% of samples)
Text length130–1,149 chars (avg 446)

Usage

python
from datasets import load_dataset

ds = load_dataset("575-lab/kiji-inspector-reviewed-pairs")

# Access a sample
sample = ds["train"][0]
print(sample["text"])
print(sample["privacy_mask"])   # PII entity annotations
print(sample["coreferences"])   # Coreference clusters
print(sample["language"])       # e.g. "English"
print(sample["country"])        # e.g. "United States"

Schema

Each sample contains:

ColumnTypeDescription
textstringNatural language text with embedded PII
privacy_masklist[{"value": str, "label": str}]PII entities with their text span and label
coreferenceslist[{"mentions": list[str], "entity_type": str, "cluster_id": int}]Coreference clusters linking mentions of the same entity
languagestringLanguage of the text
countrystringCountry context for the PII (affects address/ID formats)

Example sample

json
{
  "text": "Contact Dr. Maria Santos at maria.santos@hospital.org or call +1-555-123-4567.",
  "privacy_mask": [
    {"value": "Maria", "label": "FIRSTNAME"},
    {"value": "Santos", "label": "SURNAME"},
    {"value": "maria.santos@hospital.org", "label": "EMAIL"},
    {"value": "+1-555-123-4567", "label": "PHONENUMBER"}
  ],
  "coreferences": [
    {
      "mentions": ["Dr. Maria Santos", "maria.santos"],
      "entity_type": "FIRSTNAME",
      "cluster_id": 0
    }
  ],
  "language": "English",
  "country": "United States"
}

PII Labels

LabelCount
FIRSTNAME86,136
CITY80,194
BUILDINGNUM76,268
SURNAME74,278
STREET71,946
ZIP55,054
STATE43,194
COUNTRY22,728
COMPANYNAME16,036
DATEOFBIRTH15,114
PHONENUMBER13,740
EMAIL13,322
DRIVERLICENSENUM13,078
SSN12,886
SECURITYTOKEN12,816
PASSPORTID12,702
IBAN12,688
PASSWORD12,586
NATIONALID12,510
TAXNUM12,346
LICENSEPLATENUM12,320
IDCARDNUM12,140
URL12,096
AGE11,610
CREDITCARDNUMBER7,130
USERNAME6,468

Language Distribution

LanguageSamples%
Spanish16,84616.8%
German16,70816.7%
Dutch16,70416.7%
Danish16,69216.7%
English16,54616.5%
French16,49416.5%

Country Distribution

CountrySamples%
Denmark16,69216.7%
Belgium11,65411.7%
Switzerland8,9388.9%
Netherlands8,4188.4%
Canada5,9245.9%
Germany5,5745.6%
Austria5,5125.5%
Luxembourg3,3043.3%
France3,2963.3%
Peru2,8902.9%
Mexico2,8862.9%
Colombia2,8242.8%
New Zealand2,8102.8%
United Kingdom2,8042.8%
Chile2,7902.8%
(5 more)13,67413.7%

Data Generation

Samples are synthetically generated using LLMs with structured outputs. The generation pipeline:

  1. 1.NER generation — LLM produces text with embedded PII and entity annotations
  2. 2.Coreference generation — second pass links pronouns and references to their antecedent entities
  3. 3.Review (optional) — additional LLM pass validates and corrects annotations
  4. 4.Format conversion — samples are converted to a clean, standardized schema

Intended Use

This dataset is designed for training token-classification models that detect and classify PII in text. The coreference annotations enable training models that can also resolve entity mentions (e.g., linking "he" back to "John Smith").

Limitations

  • —All data is synthetically generated — entity distributions may not match real-world text
  • —Coreference annotations are LLM-generated and may contain errors
  • —Address and ID formats are country-specific but may not cover all regional variations