fastText
ONNX
Safetensors
Multiple languages
sentiment-analysis
african-languages
g2p
universal-orthography
Instructions to use AfriSpeech/african-sentiment-id with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- fastText
How to use AfriSpeech/african-sentiment-id with fastText:
from huggingface_hub import hf_hub_download import fasttext model = fasttext.load_model(hf_hub_download("AfriSpeech/african-sentiment-id", "model.bin")) - Notebooks
- Google Colab
- Kaggle
Universal African Sentiment Classifier
Sentiment classification (positive/ negative) for African languages, trained on universal G2P orthography so it works across all 693 languages without per-language conditioning.
Models
model.bin/model.ftzโ FastText supervised classifier.onnx/โ Fine-tuned BERT-tiny exported to ONNX.
Usage
# 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/")
- Downloads last month
- 68
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support