Downloads · 30 days
131
18% of all-time downloads
Laibniz/italian-ner-pii-browser-distilbert
italian-ner-pii-browser-distilbert is a token classification model from Laibniz. Use it when you need labels on individual words, such as names. It is set up for transformers.js. The card lists the license as apache-2.0.
A lightweight Italian Named Entity Recognition model optimized for browser-only inference, based on:
Downloads · 30 days
131
18% of all-time downloads
All-time downloads
715
Public
Repo size
67 MB
Likes
0
Public
Click a slice to open those files.
.onnx67 MB · 99%
From the Hugging Face model README
A lightweight Italian Named Entity Recognition model optimized for browser-only inference, based on:
osiria/distilbert-italian-cased-ner
License: Apache-2.0
Original authors: Osiria
This repository provides a quantized ONNX version (~65 MB) suitable for running entirely in the browser via Transformers.js.
This model is designed as a privacy-friendly pre-filter layer to detect and help anonymize:
Typical use case:
Run NER locally in the user's browser before sending text to an LLM, masking personal identifiers first.
All inference can run client-side.
Compared to the original PyTorch model:
A ~65 MB download is roughly comparable to streaming 1–2 minutes of HD video (4–5 Mbps).
Base model: osiria/distilbert-italian-cased-ner
Architecture: DistilBERT
Task: Token Classification (NER)
Language: Italian
This repository does not retrain the model.
It provides:
You can test the model directly using the Hugging Face widget on this page.
Example text:
Il paziente Mario Rossi, nato il 12/04/1987, vive a Milano e lavora per l'Agenzia Spaziale Italiana.
Expected entities include:
import { pipeline, env } from "@huggingface/transformers";
env.allowRemoteModels = true;
env.backends.onnx.wasm.simd = true;
env.backends.onnx.wasm.numThreads = 2;
const ner = await pipeline(
"token-classification",
"laibniz/italian-ner-pii-browser-distilbert",
{
quantized: true,
aggregation_strategy: "simple"
}
);
const text = "Il paziente Mario Rossi vive a Milano.";
const entities = await ner(text);
console.log(entities);
All inference runs locally in the browser.
This model is intended for:
It should be combined with:
This is not a full anonymization system by itself.
This work builds upon:
osiria/distilbert-italian-cased-ner
Apache-2.0 License
https://huggingface.co/osiria/distilbert-italian-cased-ner
All credit for original model training and dataset preparation belongs to the original authors.
This repository provides ONNX export and quantized packaging for browser use.
If you need:
Feel free to reach out.