Lone Pine at SemEval-2021 Task 5: Fine-Grained Detection of Hate Speech Using BERToxic

Yakoob Khan, Weicheng Ma, Soroush Vosoughi
4/8/2021
cs.CLcs.LG

Official code: Yakoob-Khan/Toxic-Spans-Detection (5 stars, Jupyter Notebook, last commit 2021-06-04).

Abstract

This paper describes our approach to the Toxic Spans Detection problem (SemEval-2021 Task 5). We propose BERToxic, a system that fine-tunes a pre-trained BERT model to locate toxic text spans in a given text and utilizes additional post-processing steps to refine the boundaries.

Show full abstract

The post-processing steps involve (1) labeling character offsets between consecutive toxic tokens as toxic and (2) assigning a toxic label to words that have at least one token labeled as toxic. Through experiments, we show that these two post-processing steps improve the performance of our model by 4.16% on the test set. We also studied the effects of data augmentation and ensemble modeling strategies on our system. Our system significantly outperformed the provided baseline and achieved an F1-score of 0.683, placing Lone Pine in the 17th place out of 91 teams in the competition. Our code is made available at https://github.com/Yakoob-Khan/Toxic-Spans-Detection

View on arXivView PDF

Code Implementations(1)

Code for the paper "Lone Pine at SemEval-2021 Task 5: Fine-Grained Detection of Hate Speech Using BERToxic"

50Jupyter Notebook, PythonSep 24, 20205 years ago
hate-speech-detectionmachine-learningnatural-language-processingsemeval-2021

Similar Papers

Cite this paper

@article{khan2021lone,
  title  = {Lone Pine at SemEval-2021 Task 5: Fine-Grained Detection of Hate Speech Using BERToxic},
  author = {Yakoob Khan and Weicheng Ma and Soroush Vosoughi},
  year   = {2021},
  eprint = {2104.03506},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.03506}
}

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/2104.03506.svg)](https://codeofpaper.com/paper/2104.03506)

Discussion