arnolfokam / roberta-base-kin

huggingface.co
Total runs: 18
24-hour runs: 1
7-day runs: -1
30-day runs: 5
Model's Last Updated: November 24 2021
token-classification

Introduction of roberta-base-kin

Model Details of roberta-base-kin

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:

  • dates & time (DATE)
  • Location (LOC)
  • Organizations (ORG)
  • Person (PER)

Intended Use

  • Intended to be used for research purposes concerning Named Entity Recognition for African Languages.
  • Not intended for practical purposes.

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
  • Learning Rate: 5e-5
  • Batch Size: 32
  • Maximum Sequence Length: 164
  • Epochs: 30

Evaluation Data

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

Metrics

  • Precision
  • Recall
  • F1-score

Limitations

  • The size of the pre-trained language model prevents its usage in anything other than research.
  • Lack of analysis concerning the bias and fairness in these models may make them dangerous if deployed into production system.
  • The train data is a less populated version of the original dataset in terms of entity groups per sentence. Therefore, this can negatively impact the performance.

Caveats and Recommendations

  • The topics in the dataset corpus are centered around News . Future training could be done with a more diverse corpus.

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)

Runs of arnolfokam roberta-base-kin on huggingface.co

18
Total runs
1
24-hour runs
-2
3-day runs
-1
7-day runs
5
30-day runs

More Information About roberta-base-kin huggingface.co Model

More roberta-base-kin license Visit here:

https://choosealicense.com/licenses/apache-2.0

roberta-base-kin huggingface.co

roberta-base-kin huggingface.co is an AI model on huggingface.co that provides roberta-base-kin's model effect (), which can be used instantly with this arnolfokam roberta-base-kin model. huggingface.co supports a free trial of the roberta-base-kin model, and also provides paid use of the roberta-base-kin. Support call roberta-base-kin model through api, including Node.js, Python, http.

roberta-base-kin huggingface.co Url

https://huggingface.co/arnolfokam/roberta-base-kin

arnolfokam roberta-base-kin online free

roberta-base-kin huggingface.co is an online trial and call api platform, which integrates roberta-base-kin's modeling effects, including api services, and provides a free online trial of roberta-base-kin, you can try roberta-base-kin online for free by clicking the link below.

arnolfokam roberta-base-kin online free url in huggingface.co:

https://huggingface.co/arnolfokam/roberta-base-kin

roberta-base-kin install

roberta-base-kin is an open source model from GitHub that offers a free installation service, and any user can find roberta-base-kin on GitHub to install. At the same time, huggingface.co provides the effect of roberta-base-kin install, users can directly use roberta-base-kin installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

roberta-base-kin install url in huggingface.co:

https://huggingface.co/arnolfokam/roberta-base-kin

Url of roberta-base-kin

roberta-base-kin huggingface.co Url

Provider of roberta-base-kin huggingface.co

arnolfokam
ORGANIZATIONS

Other API from arnolfokam