Downloads · 30 days
131
2% of all-time downloads
Davlan/bert-base-multilingual-cased-finetuned-swahili
bert-base-multilingual-cased-finetuned-swahili is a fill-mask model from Davlan. Use it when you need the model to fill a missing word. It is set up for transformers.
Hugging Face's logo --- language: ha datasets:
Downloads · 30 days
131
2% of all-time downloads
All-time downloads
7.7K
Public
Parameters
178M
2.5 GB on disk
Likes
3
Public
Click a slice to open those files.
.h51.1 GB · 43%
How the weights are stored.
F32178M · 100%
From the Hugging Face model README
language: ha datasets:
bert-base-multilingual-cased-finetuned-swahili is a Swahili BERT model obtained by fine-tuning bert-base-multilingual-cased model on Swahili language texts. It provides better performance than the multilingual BERT on text classification and named entity recognition datasets.
Specifically, this model is a bert-base-multilingual-cased model that was fine-tuned on Swahili corpus.
You can use this model with Transformers pipeline for masked token prediction.
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='Davlan/bert-base-multilingual-cased-finetuned-swahili')
>>> unmasker("Jumatatu, Bwana Kagame alielezea shirika la France24 huko [MASK] kwamba "hakuna uhalifu ulitendwa")
[{'sequence': 'Jumatatu, Bwana Kagame alielezea shirika la France24 huko Paris kwamba hakuna uhalifu ulitendwa',
'score': 0.31642526388168335,
'token': 10728,
'token_str': 'Paris'},
{'sequence': 'Jumatatu, Bwana Kagame alielezea shirika la France24 huko Rwanda kwamba hakuna uhalifu ulitendwa',
'score': 0.15753623843193054,
'token': 57557,
'token_str': 'Rwanda'},
{'sequence': 'Jumatatu, Bwana Kagame alielezea shirika la France24 huko Burundi kwamba hakuna uhalifu ulitendwa',
'score': 0.07211585342884064,
'token': 57824,
'token_str': 'Burundi'},
{'sequence': 'Jumatatu, Bwana Kagame alielezea shirika la France24 huko France kwamba hakuna uhalifu ulitendwa',
'score': 0.029844321310520172,
'token': 10688,
'token_str': 'France'},
{'sequence': 'Jumatatu, Bwana Kagame alielezea shirika la France24 huko Senegal kwamba hakuna uhalifu ulitendwa',
'score': 0.0265930388122797,
'token': 38052,
'token_str': 'Senegal'}]
This model is limited by its training dataset of entity-annotated news articles from a specific span of time. This may not generalize well for all use cases in different domains.
This model was fine-tuned on Swahili CC-100
This model was trained on a single NVIDIA V100 GPU
| Dataset | mBERT F1 | sw_bert F1 |
|---|---|---|
| MasakhaNER | 86.80 | 89.36 |
By David Adelani