arnolfokam / mbert-base-uncased-ner-swa

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

Introduction of mbert-base-uncased-ner-swa

Model Details of mbert-base-uncased-ner-swa

Model description

mbert-base-uncased-ner-swa is a model based on the fine-tuned Multilingual BERT base uncased model, previously fine-tuned for Named Entity Recognition using 10 high-resourced languages. 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 Swahili corpus (swa) 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 Swahili corpus (swa) 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
mbert-base-uncased-ner-swa 82.85 88.13 85.41

Usage

from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline

tokenizer = AutoTokenizer.from_pretrained("arnolfokam/mbert-base-uncased-ner-swa")
model = AutoModelForTokenClassification.from_pretrained("arnolfokam/mbert-base-uncased-ner-swa")

nlp = pipeline("ner", model=model, tokenizer=tokenizer)
example = "Wizara ya afya ya Tanzania imeripoti Jumatatu kuwa, watu takriban 14 zaidi wamepata maambukizi ya Covid-19."

ner_results = nlp(example)
print(ner_results)

Runs of arnolfokam mbert-base-uncased-ner-swa on huggingface.co

13
Total runs
0
24-hour runs
2
3-day runs
1
7-day runs
10
30-day runs

More Information About mbert-base-uncased-ner-swa huggingface.co Model

More mbert-base-uncased-ner-swa license Visit here:

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

mbert-base-uncased-ner-swa huggingface.co

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

mbert-base-uncased-ner-swa huggingface.co Url

https://huggingface.co/arnolfokam/mbert-base-uncased-ner-swa

arnolfokam mbert-base-uncased-ner-swa online free

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

arnolfokam mbert-base-uncased-ner-swa online free url in huggingface.co:

https://huggingface.co/arnolfokam/mbert-base-uncased-ner-swa

mbert-base-uncased-ner-swa install

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

mbert-base-uncased-ner-swa install url in huggingface.co:

https://huggingface.co/arnolfokam/mbert-base-uncased-ner-swa

Url of mbert-base-uncased-ner-swa

mbert-base-uncased-ner-swa huggingface.co Url

Provider of mbert-base-uncased-ner-swa huggingface.co

arnolfokam
ORGANIZATIONS

Other API from arnolfokam