Downloads · 30 days
6
7% of all-time downloads
Lamaachi/distilbert-moroccan-pii-classifier
distilbert-moroccan-pii-classifier is a text classification model from Lamaachi. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of DistilBERT for Named Entity Recognition (NER) focused on PII detection and CV parsing in the Moroccan context.
Downloads · 30 days
6
7% of all-time downloads
All-time downloads
89
Public
Parameters
66.4M
266 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors266 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of DistilBERT for Named Entity Recognition (NER) focused on PII detection and CV parsing in the Moroccan context.
It is designed to extract structured information from multilingual text including Darija (Moroccan Arabic), Arabic, and French, commonly found in resumes and semi-structured documents.
This model can be directly used for:
from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
tokenizer = AutoTokenizer.from_pretrained("lamaachi/distilbert-moroccan-pii-classifier")
model = AutoModelForTokenClassification.from_pretrained("your-username/distilbert-moroccan-pii-classifier")
nlp = pipeline("ner", model=model, tokenizer=tokenizer)
text = "Smiya dyali Youssef, num 0612345678, email: [email protected]"
result = nlp(text)
print(result)