dictNN: A Dictionary-Enhanced CNN Approach for Classifying Hate Speech on Twitter

Maximilian Kupi, Michael Bodnar, Nikolas Schmidt, Carlos Eduardo Posada
3/16/2021
cs.CLcs.AIcs.LG

Official code: MaximilianKupi/nlp-project (2 stars, Jupyter Notebook, last commit 2022-12-08).

Abstract

Hate speech on social media is a growing concern, and automated methods have so far been sub-par at reliably detecting it. A major challenge lies in the potentially evasive nature of hate speech due to the ambiguity and fast evolution of natural language.

Show full abstract

To tackle this, we introduce a vectorisation based on a crowd-sourced and continuously updated dictionary of hate words and propose fusing this approach with standard word embedding in order to improve the classification performance of a CNN model. To train and test our model we use a merge of two established datasets (110,748 tweets in total). By adding the dictionary-enhanced input, we are able to increase the CNN model's predictive power and increase the F1 macro score by seven percentage points.

View on arXivView PDF

Code Implementations(1)

Group project at the Hertie School on natural language processing using PyTorch

20Jupyter Notebook, PythonFeb 29, 20203 years ago

Similar Papers

Cite this paper

@article{kupi2021dictnn,
  title  = {dictNN: A Dictionary-Enhanced CNN Approach for Classifying Hate Speech on Twitter},
  author = {Maximilian Kupi and Michael Bodnar and Nikolas Schmidt and Carlos Eduardo Posada},
  year   = {2021},
  eprint = {2103.08780},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.08780}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2103.08780.svg)](https://codeofpaper.com/paper/2103.08780)

Discussion