NER

Model description

roberta-base-kin is a model based on the fine-tuned RoBERTa base model. It has been trained to recognize four types of entities:

Intended Use

Training Data

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.

Training procedure

This model was trained on a single NVIDIA P5000 from Paperspace

Hyperparameters

Evaluation Data

We evaluated this model on the test split of the Kinyarwandan corpus (kin) present in the MasakhaNER with no thresholding.

Metrics

Limitations

Caveats and Recommendations

Results

Model Name Precision Recall F1-score
roberta-base-kin 76.26 80.58 78.36

Usage

from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline

tokenizer = AutoTokenizer.from_pretrained("arnolfokam/roberta-base-kin")
model = AutoModelForTokenClassification.from_pretrained("arnolfokam/roberta-base-kin")

nlp = pipeline("ner", model=model, tokenizer=tokenizer)
example = "Rayon Sports yasinyishije rutahizamu w’Umurundi"

ner_results = nlp(example)
print(ner_results)