Downloads · 30 days
15
1% of all-time downloads
Sakil/distilbert_lazylearner_hatespeech_detection
distilbert_lazylearner_hatespeech_detection is a text classification model from Sakil. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
The hatespeech dataset is collected from different open sources like Kaggle ,social media like Twitter. The dataset has the two classes hatespeech and non hatespeech. The class distribution is equal Different strategi…
Downloads · 30 days
15
1% of all-time downloads
All-time downloads
1.8K
Public
Repo size
536 MB
Likes
1
Public
Click a slice to open those files.
.bin268 MB · 100%
From the Hugging Face model README
label: 0 - it is a hate speech, 1 - not a hate speech
from transformers import pipeline
model_name="Sakil/distilbert_lazylearner_hatespeech_detection"
classifier = pipeline("text-classification",model=model_name)
classifier("!!! RT @mayasolovely: As a woman you shouldn't complain about cleaning up your house. & as a man you should always take the trash out...")