Spaces:
Sleeping
Sleeping
File size: 1,228 Bytes
54ee68b f0cfb0b 54ee68b fad5d56 54ee68b f0cfb0b 54ee68b fad5d56 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
---
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
--- |