CoolFace
Datasetpublic

redmadrobot-rnd/pii_train

Russian PII NER Training Dataset Dataset Description This is the training corpus for PII (Personally Identifiable Information) detection and Named Entity Recognition (NER) on Russian-language text. It targets guardrail and anonymization pipelines that must reliably find personal data (names, addresses, contacts) and Russian identity-document numbers (passport, SNILS, INN, OMS, etc.) in text. The corpus combines real, manually annotated examples from production… See the full description on the dataset page: https://huggingface.co/datasets/redmadrobot-rnd/pii_train.

sourceHugging Facemitupdated 14d agoView on Hugging Face
1likes108downloads
Dataset Card

Russian PII NER Training Dataset

Dataset Description

This is the training corpus for PII (Personally Identifiable Information) detection and Named Entity Recognition (NER) on Russian-language text. It targets guardrail and anonymization pipelines that must reliably find personal data (names, addresses, contacts) and Russian identity-document numbers (passport, SNILS, INN, OMS, etc.) in text.

The corpus combines real, manually annotated examples from production logs — where all real personal data has been replaced with synthetic equivalents — with synthetic document-style texts and hand-filtered hard negatives. It is token-level annotated in the standard BIO scheme across 21 entity types.

Dataset Sources

Relation to the benchmark

This dataset is the train counterpart of **redmadrobot-rnd/pii_benchmark** (2,841 evaluation sentences): identical label set, annotation scheme, and three-column schema, disjoint rows.

Content Categories

The corpus is annotated across 21 entity types, grouped into four families.

1. Person (names) FIRST_NAME, LAST_NAME, MIDDLE_NAME — given name, surname, and patronymic, including mixed-case, latin-script, and out-of-order spellings.

2. Location / Address COUNTRY, REGION, DISTRICT, CITY, STREET, HOUSE — the full Russian address hierarchy down to the house/building number.

3. Contacts EMAIL, PHONE, URL, IP_ADDRESS — structured contact and network identifiers in many real-world formats.

4. Russian identity-document numbers PASSPORT, INN (taxpayer number), SNILS (insurance account), OMS (medical insurance policy), CREDIT_CARD, DRIVER_LICENSE, MILITARY_ID, BIRTH_CERTIFICATE — document numbers in their canonical and noisy/typo'd forms.

Training Sample Composition

The dataset contains 17,137 sentences with 39,687 annotated entity spans.

Table 1. Entity spans per type

EntityCountEntityCountEntityCount
FIRST_NAME3,876URL2,090BIRTH_CERTIFICATE1,590
LAST_NAME3,361COUNTRY1,999MILITARY_ID1,442
CITY2,669HOUSE1,906INN1,163
PASSPORT2,540EMAIL1,755CREDIT_CARD989
MIDDLE_NAME2,344DISTRICT1,696IP_ADDRESS939
STREET2,190DRIVER_LICENSE1,688SNILS924
PHONE2,134REGION1,650OMS742

Table 2. Spans grouped into coarse categories (the schema used for cross-model comparison on pii_benchmark)

Coarse categoryFine typesSpans
LOCATIONCOUNTRY, REGION, DISTRICT, CITY, STREET, HOUSE12,110
PERSONFIRSTNAME, LASTNAME, MIDDLE_NAME9,581
RUDOCIDSNILS, OMS, MILITARYID, BIRTHCERTIFICATE4,698
PASSPORTPASSPORT2,540
PHONEPHONE2,134
URLURL2,090
EMAILEMAIL1,755
DRIVER_LICENSEDRIVER_LICENSE1,688
INNINN1,163
CREDIT_CARDCREDIT_CARD989
IP_ADDRESSIP_ADDRESS939

Data Structure

ColumnTypeDescription
textstringThe sentence as a single string
tokensstringJSON list of word tokens
ner_tagsstringJSON list of BIO tags, one per token

The 21 entity types appear in the BIO scheme as B-<TYPE> / I-<TYPE> (plus O), e.g. B-FIRST_NAME, I-STREET, B-SNILS — 43 labels in total.

Curation Rationale

General-purpose Russian NER corpora cover person and location names but not the Russian identity-document taxonomy (passport, SNILS, INN, OMS, driver licence, military ID, birth certificate) that an anonymization guardrail has to redact, and they contain no negative examples for numeric strings that merely look like document identifiers. This corpus was built to fill both gaps, with a fine-grained address hierarchy so that redaction can be selective rather than blanket.

Source Data

Table 3. Source families

FamilyRowsSpansDescription
Annotated logs9,94025,042Real user queries, messages, and machine/log-style text, pseudonymized, then BIO-labeled token-by-token and manually verified.
Synthetic documents6,43714,355Generated templates per Russian document type, with formatting and casing variation, to stress structured-identifier detection. Labels are emitted by the generator alongside the text, so spans are exact by construction.
Hard negatives760290Borderline examples — numbers, codes, and measurements that look like document identifiers but are not — filtered manually to confirm no span should be labeled.

Table 4. Synthetic document templates, rows per type

TemplateRowsTemplateRows
mixed documents (free-form)977passport496
mixed documents898INN491
short texts671SNILS475
birth certificate510credit card468
driver licence502OMS policy448
military ID501

Provenance is documented here but is not shipped as a column — the rows form a single flat table, exactly like the benchmark.

Personal and Sensitive Information

The corpus is about personal data but is not intended to contain any. All real personal data in the log-sourced rows was replaced with synthetic equivalents prior to annotation; document numbers, cards, names, addresses, emails, phones, and IPs are synthetic and do not identify real people. Document identifiers are format-valid (including checksums where applicable) so that detectors can be trained on realistic inputs — do not treat them as issued documents.

Citation

If you use this dataset, please cite this repository.

BibTeX:

bibtex
@misc{redmadrobot_pii_train,
  title        = {Russian PII NER Training Dataset},
  author       = {Red Mad Robot R\&D},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/datasets/redmadrobot-rnd/pii_train}},
  note         = {Companion evaluation set: \url{https://huggingface.co/datasets/redmadrobot-rnd/pii_benchmark}}
}