Views
No views yet

private_person, private_email, private_phone, private_address, private_url,
private_date, account_number, and secret (API keys, passwords, tokens, PINs).openai/privacy-filter token-classifier
on 200 samples, comparing per-token PII labels. At ~1/16 the parameter count its
tagging tracks closely. The full 200-sample comparison is in
eval_samples_200.jsonl:| Metric | Result |
|---|---|
| Per-token agreement (all tokens) | 96.27% |
| Entity agreement (PII tokens only) | 90.52% |
| Macro-F1 over PII classes | 89.10 |
| Category | Precision | Recall | F1 |
|---|---|---|---|
| private_email | 94.6 | 99.6 | 97.1 |
| private_url | 95.0 | 99.3 | 97.1 |
| account_number | 86.7 | 94.0 | 90.2 |
| private_address | 85.3 | 95.7 | 90.2 |
| private_date | 94.3 | 84.7 | 89.2 |
| private_person | 90.9 | 78.5 | 84.2 |
| secret | 79.8 | 87.8 | 83.6 |
| private_phone | 98.2 | 69.1 | 81.2 |
1from byrne_anon import ByrneAnon
2
3anon = ByrneAnon(".")
4
5anon.detect("Email me at sarah.j@example.com or call 415-555-0182.")
6# [{'type': 'private_email', 'text': 'sarah.j@example.com', 'start': 11, 'end': 31},
7# {'type': 'private_phone', 'text': '415-555-0182', 'start': 39, 'end': 52}]
8
9anon.redact("Ship to 1600 Pennsylvania Avenue NW, Washington DC 20500.")
10# 'Ship to [PRIVATE_ADDRESS], [PRIVATE_ADDRESS].'detect() returns entities with byte offsets; redact() replaces them with [TYPE]
placeholders.| File | Purpose |
|---|---|
model.safetensors, config.json | SpikeWhale backbone weights + config |
pii_head.pt | token-classification head (640 → 33 BIOES) |
pii_labels.json | id → BIOES label map |
tokenizer.json, tokenizer_config.json | byte-level SpikeTokenizer |
byrne_anon.py | self-contained detect() / redact() API |
model_v2.py, config.py, spike_tokenizer.py | SpikeWhale architecture + tokenizer |
private_phone recall and secret
precision are the weaker spots. Unusual email formats (+tags, very short, very long
local parts) may be partially tagged.byrne_anon.py (local modeling code, no
remote code execution).1@misc{byrne2026byrneanon,
2 title = {Byrne-Anon: A Compact 85M PII Detector and Text Anonymizer},
3 author = {Byrne, Dean},
4 year = {2026},
5 howpublished = {\url{https://huggingface.co/Quazim0t0/Byrne-Anon}},
6}