Downloads · 30 days
13
2% of all-time downloads
moonstripe/hate_speech_classification_v1
hate_speech_classification_v1 is a text classification model from moonstripe. Use it when you need a label for a piece of text. It is set up for transformers.
The "Hate Speech Classification v1" is a model designed to classify hate speech in text data. It has been trained on the "ucberkeley-dlab/measuring-hate-speech" dataset to effectively identify instances of hate speech.
Downloads · 30 days
13
2% of all-time downloads
All-time downloads
566
Public
Parameters
109M
876 MB on disk
Likes
0
Public
Click a slice to open those files.
.bin438 MB · 50%
From the Hugging Face model README
The "Hate Speech Classification v1" is a model designed to classify hate speech in text data. It has been trained on the "ucberkeley-dlab/measuring-hate-speech" dataset to effectively identify instances of hate speech.
To use the "Hate Speech Classification v1," you'll need to have the Hugging Face Transformers library installed. You can install it using pip:
pip install transformers
You can load and use the "Hate Speech Classification v1" in your Python code by following these steps:
from transformers import pipeline
model = pipeline(model="moonstripe/hate_speech_classification_v1")
model("Hello world")
# Interpret the predictions to determine hate speech classification
# ...
# Clean up resources as needed