juakazike/sw-ground-truth
Viewer • Updated • 64.7k • 12
Fine-tuned afro-xlmr-base for binary gender bias detection in Swahili text.
Part of the JuaKazi Gender Sensitization Engine — the only tool in East Africa that detects, corrects, and explains gender bias in African-language text.
| Metric | Score |
|---|---|
| F1 | 0.673 |
| Precision | 0.672 |
| Recall | 0.674 |
v1 (3 epochs): F1=0.854 · P=0.938 · R=0.784
| ID | Label |
|---|---|
| 0 | NEUTRAL |
| 1 | BIAS |
Stage 2 fallback — Swahili only, warn-only, never sets has_bias_detected=True directly.
Set in HuggingFace Space secrets:
JUAKAZI_ML_MODEL = juakazike/sw-bias-classifier-v3
JUAKAZI_ML_THRESHOLD = 0.75
from transformers import pipeline
classifier = pipeline("text-classification", model="juakazike/sw-bias-classifier-v3")
classifier("Daktari wa kiume alipima mgonjwa.")
# [{'label': 'BIAS', 'score': 0.89}]
Base model
Davlan/afro-xlmr-base