Huashu Design
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
A small CPU-friendly model that finds 22 kinds of personal data in Italian legal text, including codice fiscale and partita IVA, for reversible anonymization. Suits law firms and developers building privacy filters.
rizzo-pii-0.3B is a kit in the Legal category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download rizzoaiacademy/rizzo-pii-0.3B
rizzo-pii-0.3B is a small token-classification model that finds personal data in Italian legal text, with about 0.3 billion parameters on a ModernBERT-style backbone. It tags 22 categories, including Italian identifiers such as the codice fiscale and the partita IVA. Its job is to make anonymization reversible.
Law firms and compliance teams who want to use an outside language model without sending client details. It also suits developers building privacy filters for Italian documents that must run on a normal computer.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Legal | Law firms | Replace names and IDs with placeholders before an AI call | Mask a client's codice fiscale |
| Compliance | Data protection teams | Find personal data in documents | Scan a contract for IBANs and emails |
| Software | Privacy tool developers | Add local PII detection to an app | Run the model on CPU in a desktop tool |
| Research | NLP researchers | Study Italian PII recognition | Compare entity tags on legal text |
Anyone working mainly in other languages can skip it, since the model is Italian-first and the card's own training mix covers eight languages.
| Use case | Who | What they get back |
|---|---|---|
| Detect personal data | Developers | Entities with a group name and a confidence score |
| Reversible anonymization | Law firms | Placeholders such as FULLNAME_1, plus a local dictionary to restore them |
| Italian legal identifiers | Compliance teams | Tags for CF, PIVA, CATASTO, DOCID and PROVINCE |
pip install -U huggingface_hub hf download rizzoaiacademy/rizzo-pii-0.3B
Build a token-classification pipeline with simple aggregation, which merges word pieces into whole entities, and run it over your text. For each entity you get its group, the matched word and a score.
from transformers import pipeline
nlp = pipeline(
"token-classification",
model="rizzoaiacademy/rizzo-pii-0.3B",
aggregation_strategy="simple", # merges B-/I- subwords into whole entities
)For the intended reversible use, the card defines a small function that swaps each entity for a numbered placeholder and keeps a dictionary. You send only the placeholder text to the outside model, then use the dictionary to rebuild the original in its answer.
def anonymize(text, ents):
"""Replace each entity with a numbered placeholder; keep a reversible dictionary."""
mapping, out, counters = {}, text, {}
for e in sorted(ents, key=lambda x: x["start"], reverse=True):
g = e["entity_group"]
counters[g] = counters.get(g, 0) + 1
tag = f"[{g}_{counters[g]}]"
mapping[tag] = text[e["start"]:e["end"]]
out = out[:e["start"]] + tag + out[e["end"]:]
return out, mapping
anon, table = anonymize(text, nlp(text))| Tool | What it does |
|---|---|
| pipeline with token-classification | Finds personal data entities in text |
| anonymize | Swaps entities for numbered placeholders and returns a restore dictionary |
You pass an Italian sentence that holds a name, a codice fiscale, an IBAN and an email. The model tags each one with its group and a score near 1.00, and the helper turns them into placeholders like FULLNAME_1 and CF_1.
If you are new, run the pipeline on one short Italian sentence and read the printed entities. Then try the anonymize helper to see the placeholders and the dictionary that stays on your machine.
Experts will note the card's production tip. Pair the model with regular expressions and checksums for structured fields, such as email, phone, IBAN, CF, PIVA, card numbers, amounts and plates, and let the checksum win when the two disagree. The context window is 8192 tokens.
A small CPU-friendly model that finds 22 kinds of personal data in Italian legal text, including codice fiscale and partita IVA, for reversible anonymization. Suits law firms and developers building privacy filters.
Made by rizzoaiacademy on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: rizzo-pii-0.3B is a small token-classification model that finds personal data in Italian legal text, with about 0.3 billion parameters on a ModernBERT-style backbone. It tags 22 categories, including Italian identifiers such as the codice fiscale and the partita IVA. Its job is to make anonymization reversible.
Who it suits: Law firms and compliance teams who want to use an outside language model without sending client details. It also suits developers building privacy filters for Italian documents that must run on a normal computer.
Industry | Who uses it | How they use it | Example
Legal | Law firms | Replace names and IDs with placeholders before an AI call | Mask a client's codice fiscale
Compliance | Data protection teams | Find personal data in documents | Scan a contract for IBANs and emails
Software | Privacy tool developers | Add local PII detection to an app | Run the model on CPU in a desktop tool
Research | NLP researchers | Study Italian PII recognition | Compare entity tags on legal text
Anyone working mainly in other languages can skip it, since the model is Italian-first and the card's own training mix covers eight languages.
Where to use it:
Use case | Who | What they get back
Detect personal data | Developers | Entities with a group name and a confidence score
Reversible anonymization | Law firms | Placeholders such as FULLNAME_1, plus a local dictionary to restore them
Italian legal identifiers | Compliance teams | Tags for CF, PIVA, CATASTO, DOCID and PROVINCE
How to set it up:
pip install -U huggingface_hub
hf download rizzoaiacademy/rizzo-pii-0.3B
How to use it: Build a token-classification pipeline with simple aggregation, which merges word pieces into whole entities, and run it over your text. For each entity you get its group, the matched word and a score.
from transformers import pipeline
nlp = pipeline(
"token-classification",
model="rizzoaiacademy/rizzo-pii-0.3B",
aggregation_strategy="simple", # merges B-/I- subwords into whole entities
)
For the intended reversible use, the card defines a small function that swaps each entity for a numbered placeholder and keeps a dictionary. You send only the placeholder text to the outside model, then use the dictionary to rebuild the original in its answer.
def anonymize(text, ents):
"""Replace each entity with a numbered placeholder; keep a reversible dictionary."""
mapping, out, counters = {}, text, {}
for e in sorted(ents, key=lambda x: x["start"], reverse=True):
g = e["entity_group"]
counters[g] = counters.get(g, 0) + 1
tag = f"[{g}_{counters[g]}]"
mapping[tag] = text[e["start"]:e["end"]]
out = out[:e["start"]] + tag + out[e["end"]:]
return out, mapping
anon, table = anonymize(text, nlp(text))
Tool | What it does
pipeline with token-classification | Finds personal data entities in text
anonymize | Swaps entities for numbered placeholders and returns a restore dictionary
Example: You pass an Italian sentence that holds a name, a codice fiscale, an IBAN and an email. The model tags each one with its group and a score near 1.00, and the helper turns them into placeholders like FULLNAME_1 and CF_1.
For newcomers and experts: If you are new, run the pipeline on one short Italian sentence and read the printed entities. Then try the anonymize helper to see the placeholders and the dictionary that stays on your machine.
Experts will note the card's production tip. Pair the model with regular expressions and checksums for structured fields, such as email, phone, IBAN, CF, PIVA, card numbers, amounts and plates, and let the checksum win when the two disagree. The context window is 8192 tokens.
Your document goes to the local model
Entities become numbered placeholders
Only placeholders go to the outside LLM
The local dictionary restores the reply
Good to know:
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download rizzoaiacademy/rizzo-pii-0.3B
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| rizzo-pii-0.3B This page | 6,484 | 23 | 308M | mit | |
| privacy-filter-nemotron-v2Shares privacy · token-classification · transformers | 154,398 | 57 | 1.4B | apache-2.0 | |
| PII-TracerShares privacy · token-classification · safetensors | 8,506 | 97 | 596M | mit | |
| SaulLM-54B-InstructShares transformers · safetensors | 315 | 16 | 46.7B | mit |
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
perplexity-ai · Kit
Finds personal data in chat conversations and masks it, using a 600M-parameter encoder with a token tagger and a sensitivity score. It suits teams that clean c…
OpenMed · Kit
Finds and masks personal data in text, across 55 fine-grained categories such as names, contact details and IDs. It suits teams that redact text before sharing…
Equall · Kit
A language model tuned for legal text, trained on US and European legal sources. A research release for people who study or adapt legal AI. Its answers are inf…