You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

pv-darija-ner

Finds personal information (PII) in Moroccan Arabic (Darija) text. Multilingual Privacy Vault uses it on speech transcripts to find the PII it then removes from the audio.

Model

  • BERT-base token classifier: 12 layers, 768 hidden, 64k WordPiece vocab, up to 512 tokens.
  • Fine-tuned from hananour/darija-ner (general Darija NER, trained on DarNERcorp) to tag PII instead.
  • The vault uses it on its own for Darija.

Labels

BIO tags (B-/I-) for 5 entity types, plus O for everything else:

Entity Meaning
NAME Person name
PHONE_NUMBER Phone number
CIN National ID card number
EMAIL Email address
LOCATION Location

Usage

Private repo: you need a Hugging Face token with access to it.

In the Privacy Vault repo (token in HF_TOKEN, hf.token or hf auth login):

uv run python scripts/download_models.py --languages darija

This puts the model in artifacts/dev/models/ner/darija-ner.

Directly with transformers:

from transformers import pipeline

ner = pipeline("token-classification", model="KBayoud/pv-darija-ner", token="hf_...")
ner("...")
Downloads last month
-
Safetensors
Model size
0.1B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for KBayoud/pv-darija-ner

Finetuned
(1)
this model