AfroXLM-R base fine tuned on the Hausa subset of AfriSenti for three class sentiment classification (negative, neutral, positive).
Held out test set (5,303 tweets):
| Model | Accuracy | Macro F1 |
|---|---|---|
| This model | 0.7788 | 0.7787 |
| TF-IDF + logistic regression | 0.7466 | 0.7453 |
| Lexicon rule | 0.5497 | 0.5452 |
Learning rate 2e-5, batch size 16, 5 epochs, max length 64, AdamW with weight decay 0.01, linear schedule with 10% warmup.
Hausa negation (the discontinuous ba ... ba frame) lowers accuracy by about 3 points. Curses phrased as prayers are confidently misread as positive, because religious vocabulary in the training data is 68% positive.
Dataset: Muhammad et al. (2023), AfriSenti, EMNLP 2023. Base model: Alabi et al. (2022), COLING 2022.
Davlan/afro-xlmr-base