Spaces:
Sleeping
Sleeping
title: Hatespeech | |
emoji: π¬ | |
colorFrom: yellow | |
colorTo: purple | |
sdk: gradio | |
sdk_version: 5.29.0 | |
app_file: app.py | |
pinned: false | |
license: mit | |
# Swahili Hate Speech Classifier | |
This Space is a demo of a fine-tuned BERT model for classifying Swahili text into three categories | |
- **Non-hate speech** | |
- **Political hate speech** | |
- **Offensive language** | |
### π§ Model | |
The model was trained using a labeled Swahili dataset for hate speech detection. It is based on a BERT architecture and fine-tuned specifically for this 3-class classification task. | |
Model repo: [`sandbox338/hatespeech`](https://huggingface.co/sandbox338/hatespeech) | |
### π¬ How to Use | |
1. Enter a Swahili sentence or paragraph into the textbox. | |
2. Click **Submit**. | |
3. The model will return one of the three class labels. | |
### π Example Inputs | |
- `Hii ni ujumbe wa kawaida bila matusi.` β *Non-hate speech* | |
- `Wanasiasa hawa ni wabaya na lazima waondoke!` β *Political hate speech* | |
- `Unasema upuuzi na wewe ni mjinga kabisa!` β *Offensive language* | |
### π© Usability Testing | |
This tool is part of an ongoing usability evaluation. Please try it out and share feedback on: | |
- Clarity of results | |
- Ease of use | |
- Suggestions for improvement | |
--- |