Hate Speech Spreader Detection on the PAN-AP-2021 dataset.
The University of Bologna (UniBo) Natural Language Processing (NLP) project. In this project, we utilised the PAN-AP-2021 dataset to profile hate speech spreaders on social media, more specifically on Twitter, addressing the problem in English.
Four different methods (SVM, BiLSTM, BiGRU, and BERTweet) were trained and evaluated on the dataset. Our results show that the BERTweet transformer method produces the best results in terms of accuracy on the test set.
The steps taken are described in detail in the Report. The slides used for the Presentation are also available.
The code may also be viewed directly from the Notebook.
The table below shows the accuracy on the test dataset using the four different models and their respective encodings.
Method | Test Accuracy |
---|---|
TF-IDF + SVM | 76.0 |
GLoVe + BiLSTM | 64.0 |
GLoVe + BiGRU | 67.0 |
BERTweet | 78.0 |