Downloads · 30 days
10
2% of all-time downloads
eolang/Swahili-NER-BertBase-Cased
Swahili-NER-BertBase-Cased is a token classification model from eolang. 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.
You can use this model with Transformers pipeline for NER.
Downloads · 30 days
10
2% of all-time downloads
All-time downloads
427
Public
Repo size
1.4 GB
Likes
1
Public
Click a slice to open those files.
.bin709 MB · 99%
From the Hugging Face model README
You can use this model with Transformers pipeline for NER.
from transformers import pipeline
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("eolang/Swahili-NER-BertBase-Cased")
model = AutoModelForTokenClassification.from_pretrained("eolang/Swahili-NER-BertBase-Cased")
nlp = pipeline("ner", model=model, tokenizer=tokenizer)
example = "Kwa nini Kenya inageukia mazao ya GMO kukabiliana na ukame"
ner_results = nlp(example)
print(ner_results)
This model was fine-tuned on the Swahili Version of the WikiAnn dataset for cross-lingual name tagging and linking based on Wikipedia articles in 295 languages
This model was trained on a single NVIDIA A 5000 GPU with recommended hyperparameters from the original BERT paper which trained & evaluated the model on CoNLL-2003 NER task.