Views
No views yet
hate (1): Hate speechnot_hate (0): Offensive + Normal content merged| Metric | Score |
|---|---|
| F1 (Macro) | 0.8302 |
| Accuracy | 0.8567 |
| Precision | 0.8342 |
| Recall | 0.8266 |
| Model | F1 | Size (Quantized) |
|---|---|---|
| MiniLM (this) | 0.830 | 32.6 MB |
| DistilBERT | 0.825 | 64 MB |
| TinyBERT | 0.816 | 15 MB |
1import { pipeline } from '@huggingface/transformers';
2
3const classifier = await pipeline(
4 'text-classification',
5 'TaiwoOgun/minilm-hate-speech-onnx'
6);
7
8const result = await classifier('Some text to classify');
9console.log(result);
10// [{ label: 'hate', score: 0.85 }]1from transformers import pipeline
2
3classifier = pipeline('text-classification', 'TaiwoOgun/minilm-hate-speech')
4result = classifier('Some text to classify')1@misc{ogunbanwo2025hatespeech,
2 author = {Ogunbanwo, Taiwo},
3 title = {Real-Time Hate Speech Detection Browser Extension},
4 year = {2025},
5 publisher = {HuggingFace},
6 url = {https://huggingface.co/TaiwoOgun/minilm-hate-speech-onnx}
7}