token-classification Β· ModernBERT (8,192 tok) Β· 195.27 MB WASM q4 Β· 81 BIO Labels Β· MIT

Nym Multilingual PII β€” 81-Label Cross-Lingual Inspector & Redactor

onnx-community/nym-pii-multilingual-ONNX (fine-tuned from jhu-clsp/mmBERT-base by Wismut/nym-pii-multilingual, MIT) detects 40 PII entity types (81 BIO labels) across ~23 languages and 6 scripts (Latin, Cyrillic, CJK, Korean, Arabic, Devanagari) in an 8,192-token unpadded ModernBERT encoder β€” running strictly inside a local Web Worker.

At a glance

Browser ONNX Repo onnx-community/nym-pii-multilingual-ONNX
Upstream Base Model Wismut/nym-pii-multilingual
Pipeline Task token-classification
Quantisation & Size q4 Β· 195.27 MB (+15.4 MB vocab)
Architecture & Window ModernBERT Β· 8,192 tokens
Label Space & Vocab 81 BIO (40 types) Β· 256K SP
Backend & Runtime WASM Β· Transformers.js 3.7.5
License MIT

1. Cross-Lingual PII Inspector & Surgical Redactor

Synthetic Data & Privacy Notice: All presets are 100% synthetic (zero real customer or patient data). Everything you type, paste, or drop stays strictly inside this browser tab. Neural PII detection is assistive β€” pair with regex checks and human review for regulated workflows.
Runs pipe(text, { ignore_labels: [] }) off-main-thread on CPU WASM q4.
0.50
Redaction mode:
Filter active entity categories (5 PII groups covering 40 types)
Latency–
Entities detected–
SentencePiece tokens–
NaN logit check–
Backend / dtypeWASM Β· q4
Risk posture–
Identity / Names Contact & Location Financial / IBAN / CC Gov ID / Passport Secrets / Network / IP

Detected PII Spans

Prepare the model above to inspect live 81-label PII spans.

Surgical Redacted Output ([TYPE_N] Tags)

Redacted text will appear here after scanning.

2. See Inside: SentencePiece BIO Tokens & Span Table

Nym tokenizes text with a 256,000-piece SentencePiece vocabulary (▁ word-boundary prefixes, per-digit splitting on IDs, and direct CJK/non-Latin tokens) across an 8,192-token ModernBERT encoder.

Merged PII entity spans with category, original slice, replacement, confidence, and character offsets
# Entity Type Group Detected Text Replacement Confidence Char Span
Run a scan above to inspect merged PII entity spans.

3. Use-Case Ladder

4. How It Works & Source Code

Show the code β€” off-main-thread 81-label token classification and >512-token diagnostics in worker.js
Show the code β€” SentencePiece BIO span merging and aggregation strategies in nym-core.mjs

References