An Italian PII token classifier with about 19M parameters. It is fine-tuned from Mozilla/smart-pii-redactor-v1-onnx on Italian dialogues and Italian legal and administrative text. The label set, tokenizer and input format are the same as the base model's.
rizzoaiacademy/rizzo-pii-it-dataset: its synthetic legal and administrative text, its DeepMount and Ai4Privacy-derived real text, and plates.onnx/model.onnx, fp32, 74 MB.input_ids and attention_mask (int64), in windows of up to 256 tokens. A good way to run longer text is overlapping windows (stride 192), taking each token's logits from the window where it sits furthest from an edge.Each cell shows the share of entities left unmasked first, and the share of non-PII words masked by mistake after the slash.
Italian dialogues. 998 held-out synthetic dialogues with 22,474 entities, written by a different LLM than the training dialogues. Each line is classified and every detected value is masked wherever it repeats. A regex layer adds emails, phones and IDs, and every model gets the same post-processing.
| Model | Unmasked / over-masked |
|---|---|
| this model | 1.5% / 0.3% |
| rizzo-pii-0.3B | 4.1% / 0.2% |
| Mozilla/smart-pii-redactor-v1 | 2.8% / 1.2% |
Italian legal text. These are the validation sets of rizzo-pii-it-dataset, scored with rizzo-pii's own protocol (word tokens, strict type and span match). This model's types are mapped onto the shared ones.
| Test set | this model | rizzo-pii-0.3B | Mozilla base |
|---|---|---|---|
validation_real |
0.97% / 0.21% | 0.38% / 0.05% | 72.3% / 2.60% |
validation_real, ## pieces joined into words |
2.75% / 0.14% | 2.87% / 0.05% | 32.5% / 3.11% |
validation_clean |
1.05% / 0.10% | 0.00% / 0.01% | 47.6% / 1.06% |
In validation_real, 64% of the rows carry WordPiece ## pieces. The second row is the same text joined back into words, which is how real text arrives.
rizzo-pii-it-dataset, which includes data derived from DeepMount00/pii-masking-ita and Ai4Privacy (CC-BY-4.0).Mozilla/smart-pii-redactor-v1-onnx