Downloads · 30 days
2
3% of all-time downloads
Lahad/gliner_wolof_NER
gliner_wolof_NER is a token classification model from Lahad. Use it when you need labels on individual words, such as names. It is set up for gliner. The card lists the license as mit.
A Named Entity Recognition (NER) model for Wolof language, fine-tuned from urchade/glinermultipii-v1 on the MasakhaNER dataset.
Downloads · 30 days
2
3% of all-time downloads
All-time downloads
69
Public
Repo size
1.2 GB
Likes
1
Public
Click a slice to open those files.
.bin1.2 GB · 98%
From the Hugging Face model README
A Named Entity Recognition (NER) model for Wolof language, fine-tuned from urchade/gliner_multi_pii-v1 on the MasakhaNER dataset.
This model can identify the following entity types in Wolof text:
from gliner import GLiNER
# Load the model
model = GLiNER.from_pretrained("Lahad/gliner_wolof_NER")
# Define entity types
labels = ["PER", "ORG", "LOC", "DATE"]
# Predict entities
text = "Ousmane Sonko jàngae na ci Daaray Cheikh Anta Diop ci Dakar."
entities = model.predict_entities(text, labels, threshold=0.5)
for entity in entities:
print(f"{entity['text']} => {entity['label']} (score: {entity['score']:.2f})")
→ Ousmane Sonko => PER (score: 0.95)
→ Daaray Cheikh Anta Diop => ORG (score: 0.89)
→ Dakar => LOC (score: 0.97)
This project uses the MasakhaNER dataset, which provides high-quality NER annotations for 10 African languages including Wolof (wol).
Dataset Split:
Entity Types:
Evaluation on the test set:
| Entity Type | Precision | Recall | F1-Score | Support |
|---|---|---|---|---|
| DATE | 30.77% | 22.86% | 26.23% | 70 |
| LOC | 76.75% | 84.95% | 80.65% | 206 |
| ORG | 41.89% | 56.36% | 48.06% | 55 |
| PER | 53.02% | 70.69% | 60.59% | 174 |
| GLOBAL | 58.87% | 68.32% | 63.24% | 505 |
The model was fine-tuned on a relatively limited dataset (MasakhaNER Wolof). Current performance reflects this constraint, particularly for DATE and ORG entity types which have fewer training examples.
Future Improvements:
With more annotated data, we expect to significantly improve the model's performance.
MIT