nationaldesignstudio/rampart
token-classification
1. Live 7-Language PII Detector & Redactor
onnx/model_q4.onnx
(14,693,379 B, CC-BY-4.0) via shared Transformers.js into a dedicated Web Worker.
Nothing you type or upload is transmitted to any server.
Pick a 7-language sample preset, type your own text, or load a local .txt / .csv / .json file:
Detected PII Highlights
Redacted Output ([TYPE] Tags)
2. Merged Entity Spans & Replacement Map
On Transformers.js 3.7.5, Rampart emits raw per-token B-/I-/O predictions.
Our deterministic BIO span merger joins WordPiece subwords, Unicode-normalized offsets, and punctuation bridges
into clean structured entities below.
| # | Entity Type | Group | Detected Text | Replacement | Confidence | Char Span |
|---|---|---|---|---|---|---|
| Run a scan above to inspect detected PII spans. | ||||||
3. How Rampart Works & Source Code
Fine-tuned from nreimers/MiniLM-L6-H384-uncased on
ai4privacy/pii-masking-openpii-1.5m (CC-BY-4.0), Rampart trims the WordPiece vocabulary
from 30,522 to 19,730 entries and applies 4-bit MatMul + INT8 embedding quantization to fit in 14.69 MB.