Downloads · 30 days
12
2% of all-time downloads
arnolfokam/mbert-base-uncased-kin
mbert-base-uncased-kin is a token classification model from arnolfokam. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as apache-2.0.
mbert-base-uncased-kin is a model based on the fine-tuned multilingual BERT base uncased model. It has been trained to recognize four types of entities: - dates & time (DATE) - Location (LOC) - Organizations (ORG) - P…
Downloads · 30 days
12
2% of all-time downloads
All-time downloads
750
Public
Repo size
1.8 GB
Likes
0
Public
Click a slice to open those files.
.bin709 MB · 100%
From the Hugging Face model README
mbert-base-uncased-kin is a model based on the fine-tuned multilingual BERT base uncased model. It has been trained to recognize four types of entities:
This model was fine-tuned on the Kinyarwanda corpus (kin) of the MasakhaNER dataset. However, we thresholded the number of entity groups per sentence in this dataset to 10 entity groups.
This model was trained on a single NVIDIA P5000 from Paperspace
We evaluated this model on the test split of the Kinyarwandan corpus (kin) present in the MasakhaNER with no thresholding.
| Model Name | Precision | Recall | F1-score |
|---|---|---|---|
| mbert-base-uncased-kin | 81.35 | 83.98 | 82.64 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained("arnolfokam/mbert-base-uncased-kin")
model = AutoModelForTokenClassification.from_pretrained("arnolfokam/mbert-base-uncased-kin")
nlp = pipeline("ner", model=model, tokenizer=tokenizer)
example = "Rayon Sports yasinyishije rutahizamu w’Umurundi"
ner_results = nlp(example)
print(ner_results)