Downloads · 30 days
28
28% of all-time downloads
AfriSpeech/african-sentiment-id
african-sentiment-id is a machine learning model from AfriSpeech. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for fasttext. The card lists the license as mit.
Sentiment classification (positive/ negative) for African languages, trained on universal G2P orthography so it works across all 693 languages without per-language conditioning.
Downloads · 30 days
28
28% of all-time downloads
All-time downloads
100
Public
Repo size
8.7 GB
Likes
0
Public
Click a slice to open those files.
.bin6.7 GB · 99%
From the Hugging Face model README
Sentiment classification (positive/ negative) for African languages, trained on universal G2P orthography so it works across all 693 languages without per-language conditioning.
model.bin / model.ftz — FastText supervised classifier.onnx/ — Fine-tuned BERT-tiny exported to ONNX.# FastText
import fasttext
model = fasttext.load_model("model.bin")
model.predict("a universal g2p sentence")
# ONNX transformer (onnxruntime + tokenizer)
import onnxruntime, transformers
sess = onnxruntime.InferenceSession("onnx/model.onnx")
tok = transformers.AutoTokenizer.from_pretrained("onnx/")