Logo Lanfrica

Esubalew-kunta/amharic-hate-speech-detection

Domain:

natural language processing

Record type:

modelsoftware
Creator:
Esu
Host:
Hate speech classifier for Amharic text using fine-tuned mBERT. Accuracy 91.59%, F1 0.9172. Trained on 30,000 labeled samples. # Amharic Hate Speech Detection Hate speech classifier for Amharic text, built by fine-tuning mBERT on 30,000 labeled samples. Accuracy: 91.59% | F1: 0.9172 --- ## Live Demo Try the model in your browser — no code needed: huggingface.co --- ## Overview Amharic has over 57 million speakers but very few NLP tools. Most hate speech detection models are built for English or other widely spoken languages, which means harmful content in Amharic goes undetected on social media. I built this classifier to help close that gap. It takes an Amharic sentence as input and returns a label: hate speech or not hate speech. --- ## Model Details ### Architecture - Base model: Davlan/bert-base-multilingual-cased-finetuned-amharic - Task: Binary sequence classification ### Training - Epochs: 15 - Learning rate: 5e-5 - Training framework: HuggingFace Trainer API ### Results | Metric | Score | |---|---| | Accuracy | 91.59% | | F1 Score | 0.9172 | --- ## Dataset The model was trained on a dataset from Mendeley Data containing 30,000 labeled Amharic sentences. | Field | Details | |---|---| | Total samples | 30,000 | | Source | Mendeley Data Repository | | Language | Amharic | --- ## Installation **Requirements** - Python 3.8+ - Jupyter Notebook **Steps** 1. Clone the repository: git clone github.com 2. Go into the project folder: cd amharic-hate-speech-detection-using-ML 3. Start Jupyter: jupyter notebook 4. Open and run: Hate_speech_detection_using_amharic_language.ipynb --- ## Using the model You can also run this in Google Colab. The notebook walks through loading the model, preparing Amharic text input, and getting predictions. Each step has comments explaining what is happening. --- ## What I plan to add The current model only does binary classification. I want to extend it to detect the type of hate speech, for example ethnicity-ba …