Downloads · 30 days
33
0% of all-time downloads
wesleyacheng/hate-speech-multilabel-classification-with-bert
hate-speech-multilabel-classification-with-bert is a text classification model from wesleyacheng. 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.
Downloads · 30 days
33
0% of all-time downloads
All-time downloads
248K
Public
Parameters
67M
536 MB on disk
Likes
3
Public
Click a slice to open those files.
.bin268 MB · 50%
From the Hugging Face model README
First posted on Kaggle.
I've recently stumbled upon a very comprehensive dataset on measurement of hate speech from my alma mater, UC Berkeley. It aggregated social media comments from Youtube, Reddit, and Twitter.
The interesting thing about the dataset is the annotator's profile with attributes such as ideology, income, race, and etc. is included in the dataset. This is, unfortunately, uncommon in most social media dataset and so I was intrigued about this. I also find the paper's idea of data perspectivism interesting as it argues that the disagreement of the annotator on the attributes of a hate speech is informative, rather than throwing it away.
Although, we are not leveraging the annotator's information in this model, I encourage you to explore the dataset and maybe leverage the annotator's information to make variations of this classifier.
Here I made a Hate Speech MultiLabel Classifier to classify independent targets of race, religion, origin, gender, sexuality, age, disability by doing transfer learning on BERT with the UC Berkeley D-Lab's Hate Speech Dataset from the paper The Measuring Hate Speech Corpus: Leveraging Rasch Measurement Theory for Data Perspectivism.