PrivoNest-NER
PrivoNest-NER is a multilingual token-classification model for proposing privacy-related entity spans in text. PrivoNest's surrounding detection engine can validate candidate values, apply policy, and mask or tokenize the resolved spans. Those actions are separate from the model's token predictions.
Model details
| Item | PrivoNest ONNX release |
|---|---|
| Architecture | XLMRobertaForTokenClassification |
| Transformer | 12 layers, hidden size 768, 12 attention heads |
| Vocabulary size | 250,002 |
| Output classes | 177 (O plus BIO classes for 88 base categories, as reported by the publisher) |
| ONNX graph | model.onnx, FP32 |
| Graph size | 1,110,398,102 bytes (approximately 1.034 GiB) |
| Artifact revision recorded in the publisher's runtime log | ee00929f50f6805d39ecd33154e238fc96cc00f8 |
| Graph SHA-256 recorded in that log | ff680f26358ebf0b5b33de52b7e1fffc643323de170e4623ceec499785aa2338 |
How to interpret labels
The publisher's 88 base entity categories match the taxonomy of the
PrivoNest annotated dataset described below. The numeric output order
must come from this model's config.json id2label mapping. The alphabetical
inventory in this card is for readers; it is not a class-ID table.
NATIONAL_ID is a base entity label. Country-specific names such as
PK_CNIC and IN_AADHAAR are dataset subtype metadata, not additional
BIO output classes. A deployment can attach a subtype after detection using
country rules and value validation. It should preserve the distinction
between a detected type and a policy decision to mask it.
All 88 base entity categories
The counts below are gold annotation counts in the inspected validation
and test files, not per-label model accuracy. One category,
CONFIDENTIAL_BUSINESS_DATA, occurs in the test file but not in validation.
| Base label | Validation entities | Test entities |
|---|---|---|
ACADEMIC_PROGRAM | 594 | 1,621 |
ACCOUNT_ID | 606 | 1,673 |
AGE | 659 | 1,694 |
API_KEY | 511 | 1,272 |
AUTH_TOKEN | 434 | 1,281 |
BANK_ACCOUNT | 885 | 2,382 |
BANK_ROUTING | 467 | 1,225 |
BEHAVIORAL_DATA | 27 | 142 |
BIOMETRIC_DATA | 58 | 142 |
CARD_EXPIRY | 412 | 1,264 |
CASE_RECORD | 41 | 142 |
CERTIFICATE_ID | 484 | 1,278 |
CHILD_DATA | 44 | 142 |
CITIZENSHIP | 38 | 142 |
COMMUNICATION_CONTENT | 37 | 142 |
CONFIDENTIAL_BUSINESS_DATA | 0 | 1 |
COOKIE_ID | 503 | 1,222 |
COURSE_CODE | 654 | 1,591 |
CREDIT_CARD | 916 | 2,437 |
CREDIT_CARD_CVV | 479 | 1,311 |
CRIMINAL_RECORD | 50 | 168 |
CRYPTO_WALLET | 489 | 1,256 |
DATE_OF_BIRTH | 1,160 | 2,842 |
DATE_PERSONAL | 519 | 1,265 |
DEVICE_IDENTIFIER | 516 | 1,274 |
DRIVER_LICENSE | 762 | 2,045 |
EDUCATION_DATA | 36 | 141 |
EDUCATION_INSTITUTION_ID | 631 | 1,660 |
EMAIL | 4,645 | 12,106 |
EMPLOYEE_ID | 484 | 1,344 |
EMPLOYMENT_DATA | 51 | 168 |
ENROLLMENT_ID | 484 | 1,285 |
EXAM_ID | 503 | 1,225 |
FAMILY_RELATIONSHIP | 29 | 142 |
FINANCIAL_DATA | 50 | 474 |
GENDER | 844 | 2,071 |
GENETIC_DATA | 51 | 142 |
HEALTH_DATA | 84 | 474 |
HEALTH_ID | 489 | 1,283 |
IBAN | 409 | 991 |
IMMIGRATION_STATUS | 34 | 142 |
INSURANCE_ID | 465 | 1,258 |
IP_ADDRESS | 638 | 1,700 |
JOB_TITLE | 941 | 2,522 |
LOCATION | 640 | 1,680 |
MAC_ADDRESS | 480 | 1,225 |
MARITAL_STATUS | 36 | 168 |
MEDICAL_RECORD | 457 | 1,277 |
NATIONAL_ID | 2,117 | 5,595 |
ORGANIZATION | 1,024 | 2,833 |
OTHER_GOVERNMENT_ID | 450 | 1,336 |
PASSPORT | 979 | 2,463 |
PASSWORD | 479 | 1,220 |
PAYMENT_ID | 485 | 1,273 |
PERSON | 18,787 | 49,120 |
PHONE | 2,250 | 5,675 |
PHYSICAL_ATTRIBUTE | 615 | 1,633 |
PIN | 484 | 1,281 |
POLITICAL_OPINION | 53 | 168 |
POSTAL_ADDRESS | 1,191 | 3,317 |
POSTAL_CODE | 463 | 1,248 |
PRECISE_GEOLOCATION | 490 | 1,180 |
PRIVATE_KEY | 481 | 1,253 |
PROFESSIONAL_LICENSE | 482 | 1,221 |
PROFILING_SCORE | 38 | 142 |
RACIAL_OR_ETHNIC_ORIGIN | 56 | 141 |
RELIGIOUS_BELIEF | 66 | 168 |
SEXUAL_ORIENTATION | 41 | 142 |
SEX_LIFE | 31 | 142 |
SOCIAL_MEDIA_ID | 676 | 1,653 |
STUDENT_ATTENDANCE | 472 | 1,198 |
STUDENT_GPA | 601 | 1,627 |
STUDENT_GRADE | 619 | 1,670 |
STUDENT_ID | 482 | 1,247 |
STUDENT_MARKS | 615 | 1,742 |
STUDENT_ROLL_NUMBER | 639 | 1,659 |
STUDENT_SECTION | 470 | 1,205 |
SWIFT_BIC | 435 | 1,287 |
TAX_ID | 981 | 2,459 |
TRADE_UNION_MEMBERSHIP | 40 | 142 |
TRANSCRIPT_ID | 480 | 1,249 |
TRAVEL_RECORD | 34 | 142 |
URL | 624 | 1,615 |
USERNAME | 473 | 1,224 |
USER_AGENT | 508 | 1,248 |
VEHICLE_ID | 508 | 1,243 |
VISA_OR_PERMIT | 463 | 1,263 |
VOTER_ID | 460 | 1,266 |
Some categories, such as URL, IP_ADDRESS, ORGANIZATION, LOCATION,
AGE, and DATE_PERSONAL, can occur in public or ordinary text. A deployment's
policy and the surrounding context determine the appropriate protection action.
Confidential business information is distinct from personal information.
Dataset subtype metadata
The inspected validation and test records contain 153 distinct subtype
strings. The subtypes field is row-level metadata in these JSONL files;
it is not a position-aligned subtype annotation for every entity span.
The following regional examples were observed:
| Country | Observed national-ID subtype tag |
|---|---|
| PK | PK_CNIC |
| IN | IN_AADHAAR |
| BD | BD_NID |
| AE | AE_EMIRATES_ID |
| SA | SA_NATIONAL_ID |
| OM | OM_CIVIL_ID |
| BH | BH_CPR |
| QA | QA_QID |
| EG | EG_NATIONAL_ID |
All observed subtype tags (metadata inventory; format validity and model subtype prediction are not established by this list):
AE_EMIRATES_ID, AF_TAZKIRA, AO_NATIONAL_ID, AR_DNI, AT_SVNR, AU_TFN, BB_NATIONAL_ID, BD_NID, BE_NATIONAL_NUMBER, BF_NATIONAL_ID, BH_CPR, BI_NATIONAL_ID, BJ_NATIONAL_ID, BN_NATIONAL_ID, BO_CI, BR_CPF, BS_NATIONAL_ID, BW_NATIONAL_ID, BY_ID, BZ_NATIONAL_ID, CA_SIN, CD_NATIONAL_ID, CF_NATIONAL_ID, CG_NATIONAL_ID, CH_AHV, CI_NATIONAL_ID, CL_RUT, CM_NATIONAL_ID, CN_RESIDENT_ID, CO_CEDULA, CR_NATIONAL_ID, CU_NATIONAL_ID, CV_NATIONAL_ID, CY_ID_CARD, CZ_RODNE_CISLO, DE_ID_CARD, DJ_NATIONAL_ID, DK_CPR, DO_CEDULA, DZ_NATIONAL_ID, EC_CEDULA, EG_NATIONAL_ID, ES_DNI, FI_HETU, FJ_NATIONAL_ID, FR_NIR, GA_NATIONAL_ID, GH_CARD, GM_NATIONAL_ID, GN_NATIONAL_ID, GQ_NATIONAL_ID, GR_ADT, GT_NATIONAL_ID, GW_NATIONAL_ID, GY_NATIONAL_ID, HK_HKID, HN_NATIONAL_ID, HT_NATIONAL_ID, HU_ID_CARD, ID_NIK, IE_PPSN, IN_AADHAAR, IQ_NATIONAL_ID, IR_NATIONAL_ID, IT_CODICE_FISCALE, JM_NATIONAL_ID, JO_NATIONAL_ID, JP_MY_NUMBER, KE_NATIONAL_ID, KG_IIN, KM_NATIONAL_ID, KP_ID, KR_RRN, KW_CIVIL_ID, KZ_IIN, LB_NATIONAL_ID, LI_AHV, LK_NIC, LR_NATIONAL_ID, LS_NATIONAL_ID, LU_MATRICULE, LY_NATIONAL_ID, MA_NATIONAL_ID, MC_ID, MD_IDNP, MG_NATIONAL_ID, ML_NATIONAL_ID, MR_NATIONAL_ID, MT_ID_CARD, MU_NID, MW_NATIONAL_ID, MX_CURP, MY_MYKAD, MZ_NATIONAL_ID, NA_NATIONAL_ID, NE_NATIONAL_ID, NG_NIN, NI_NATIONAL_ID, NL_BSN, NO_FODSELSNUMMER, NZ_IRD, OM_CIVIL_ID, PA_NATIONAL_ID, PE_DNI, PG_NATIONAL_ID, PH_PHILSYS, PK_CNIC, PL_PESEL, PS_NATIONAL_ID, PT_NIF, PY_CEDULA, QA_QID, RO_CNP, RU_INTERNAL_PASSPORT, RW_NATIONAL_ID, SA_NATIONAL_ID, SB_NATIONAL_ID, SC_NATIONAL_ID, SD_NATIONAL_ID, SE_PERSONNUMMER, SG_NRIC, SL_NATIONAL_ID, SM_ID, SN_NATIONAL_ID, SO_NATIONAL_ID, SR_NATIONAL_ID, ST_NATIONAL_ID, SV_NATIONAL_ID, SY_NATIONAL_ID, SZ_NATIONAL_ID, TD_NATIONAL_ID, TG_NATIONAL_ID, TH_NATIONAL_ID, TL_NATIONAL_ID, TN_NATIONAL_ID, TO_NATIONAL_ID, TR_TC_KIMLIK, TT_NATIONAL_ID, TW_NATIONAL_ID, TZ_NATIONAL_ID, UA_ID_CARD, UG_NATIONAL_ID, UK_NINO, US_SSN, UY_CI, VE_CEDULA, VN_CCCD, VU_NATIONAL_ID, WS_NATIONAL_ID, YE_NATIONAL_ID, ZA_ID, ZM_NATIONAL_ID, ZW_NATIONAL_ID
Languages and geographic coverage in the inspected dataset
The two supplied evaluation files contain 39 language tags: 37 base
languages plus Roman Hindi (hi-Latn) and Roman Urdu (ur-Latn). The
table records dataset rows, not model F1 or equal proficiency by language.
| Tag | Language | Validation rows | Test rows |
|---|---|---|---|
ar | Arabic | 2,824 | 4,647 |
bn | Bangla | 415 | 1,186 |
cs | Czech | 379 | 1,187 |
da | Danish | 367 | 1,187 |
de | German | 456 | 1,182 |
el | Greek | 396 | 1,186 |
en | English | 15,964 | 32,132 |
es | Spanish | 9,577 | 4,528 |
fa | Persian | 376 | 1,186 |
fi | Finnish | 386 | 1,187 |
fil | Filipino | 428 | 1,187 |
fr | French | 10,946 | 7,150 |
ha | Hausa | 407 | 1,181 |
hi | Hindi | 571 | 1,244 |
hi-Latn | Roman Hindi | 409 | 1,187 |
hu | Hungarian | 392 | 1,187 |
id | Indonesian | 419 | 1,186 |
it | Italian | 386 | 1,185 |
ja | Japanese | 435 | 1,187 |
ko | Korean | 388 | 1,186 |
ms | Malay | 433 | 1,185 |
nl | Dutch | 407 | 1,185 |
no | Norwegian | 385 | 1,187 |
pa | Punjabi | 388 | 1,186 |
pl | Polish | 373 | 1,187 |
pt | Portuguese | 656 | 1,620 |
ro | Romanian | 371 | 1,186 |
ru | Russian | 398 | 1,185 |
sv | Swedish | 391 | 1,186 |
sw | Swahili | 455 | 1,182 |
ta | Tamil | 408 | 1,185 |
th | Thai | 380 | 1,187 |
tr | Turkish | 417 | 1,186 |
uk | Ukrainian | 355 | 1,187 |
ur | Urdu | 433 | 1,221 |
ur-Latn | Roman Urdu | 361 | 1,187 |
vi | Vietnamese | 381 | 1,187 |
yo | Yoruba | 424 | 1,186 |
zh | Chinese | 404 | 1,184 |
The files also carry 153 country and territory tags, including the nine regional markets Pakistan, India, Bangladesh, UAE, Saudi Arabia, Oman, Bahrain, Qatar and Egypt. Every country tag has at least one English-tagged row in both inspected files. Country metadata does not prove that every identifier format has been validated for that jurisdiction.
All observed country and territory tags:
AE, AF, AO, AR, AT, AU, BB, BD, BE, BF, BH, BI, BJ, BN, BO, BR, BS, BW, BY, BZ, CA, CD, CF, CG, CH, CI, CL, CM, CN, CO, CR, CU, CV, CY, CZ, DE, DJ, DK, DO, DZ, EC, EG, ES, FI, FJ, FR, GA, GB, GH, GM, GN, GQ, GR, GT, GW, GY, HK, HN, HT, HU, ID, IE, IN, IQ, IR, IT, JM, JO, JP, KE, KG, KM, KP, KR, KW, KZ, LB, LI, LK, LR, LS, LU, LY, MA, MC, MD, MG, ML, MR, MT, MU, MW, MX, MY, MZ, NA, NE, NG, NI, NL, NO, NZ, OM, PA, PE, PG, PH, PK, PL, PS, PT, PY, QA, RO, RU, RW, SA, SB, SC, SD, SE, SG, SL, SM, SN, SO, SR, ST, SV, SY, SZ, TD, TG, TH, TL, TN, TO, TR, TT, TW, TZ, UA, UG, US, UY, VE, VN, VU, WS, YE, ZA, ZM, ZW
Roman Bangla and Romanized Arabic are not separate language tags in these two files. Their presence inside mixed-language text has not been measured.
Evaluation context
| Inspected file | Records | Annotated spans | Empty-gold records |
|---|---|---|---|
val.jsonl | 53,741 | 64,468 | 29,266 |
test.jsonl | 90,487 | 170,122 | 25,092 |
The publisher's training screenshot shows final validation precision 0.999519, recall 0.999720, and F1 0.999620. These are metrics displayed during training. These figures should not be presented as independent client-data accuracy or per-language performance. A separately reproducible benchmark should state its input revision, model revision, span policy and full per-label results.
Intended use and integration
- Load the model with its matching tokenizer.
- Decode BIO predictions with the real
id2labeltable inconfig.json. - Convert token offsets into character spans in the original text. Handle normalization, non-Latin writing and longer inputs explicitly.
- Map the base label to the application's policy taxonomy. Apply country checks only where the format and context justify them.
- Resolve conflicting spans, then apply masking, tokenization, allow or block policy. Test the actual protected text separately from detections.
The model can be evaluated on its own, and as part of a larger PrivoNest pipeline. These are different measurements. For a controlled integration test, compare model-only, engine-only and combined results on the same data.
Performance and limitations
The described artifact is FP32 ONNX. An INT8 version requires its own accuracy and latency comparison on the intended hardware; quantization does not repair label mappings or boundary decoding.
Names, free-form addresses, clinical prose, mixed languages and very long documents can produce errors. Synthetic validation results do not guarantee a minimum accuracy on future client data. Evaluate the intended document types and privacy policy before deployment.