1. WordPiece ## BIO Stream & Merged Spans
Step A · Raw B- / I- / O WordPiece Stream
Direct output of pipe(text, { ignore_labels: [] }). Subwords begin with ##.
Step B · Merged Entity Spans (≥ 0.50)
Contiguous B-TYPE/I-TYPE runs, ## continuations, and tight punctuation bridges collapsed to exact offsets.
Per-Token WordPiece & BIO Breakdown
| Idx | WordPiece | Original Slice | BIO Label | Score | Confidence | Offsets |
|---|---|---|---|---|---|---|
| Run inspection above to populate per-token scores. | ||||||
2. Live 8-Point Confidence Threshold Sweep (Precision / Recall / F1)
Evaluates real merged spans from the active ground-truth sample across thresholds 0.20–0.90
so you can pick the right operating point for strict blocking vs low false-positive redaction.
| Threshold | Predicted | TP / FP / FN | Precision | Recall | F1 Score | F1 Visual |
|---|---|---|---|---|---|---|
| Run inspection above to compute the live 8-point precision/recall sweep. | ||||||
3. Exact 49-Label config.id2label Schema (5 Risk Tiers)
Grounded verbatim in live onnx-community/bert-small-pii-detection-ONNX/config.json
(0: "O" plus IDs 1–48 across 24 entity types). Cards highlight when detected in the active text.