UniParma at SemEval-2021 Task 5: Toxic Spans Detection Using CharacterBERT and Bag-of-Words Model

Akbar Karimi, Leonardo Rossi, Andrea Prati


Abstract
With the ever-increasing availability of digital information, toxic content is also on the rise. Therefore, the detection of this type of language is of paramount importance. We tackle this problem utilizing a combination of a state-of-the-art pre-trained language model (CharacterBERT) and a traditional bag-of-words technique. Since the content is full of toxic words that have not been written according to their dictionary spelling, attendance to individual characters is crucial. Therefore, we use CharacterBERT to extract features based on the word characters. It consists of a CharacterCNN module that learns character embeddings from the context. These are, then, fed into the well-known BERT architecture. The bag-of-words method, on the other hand, further improves upon that by making sure that some frequently used toxic words get labeled accordingly. With a ∼4 percent difference from the first team, our system ranked 36 th in the competition. The code is available for further research and reproduction of the results.
Anthology ID:
2021.semeval-1.25
Volume:
Proceedings of the 15th International Workshop on Semantic Evaluation (SemEval-2021)
Month:
August
Year:
2021
Address:
Online
Editors:
Alexis Palmer, Nathan Schneider, Natalie Schluter, Guy Emerson, Aurelie Herbelot, Xiaodan Zhu
Venue:
SemEval
SIG:
SIGLEX
Publisher:
Association for Computational Linguistics
Note:
Pages:
220–224
Language:
URL:
https://aclanthology.org/2021.semeval-1.25
DOI:
10.18653/v1/2021.semeval-1.25
Bibkey:
Cite (ACL):
Akbar Karimi, Leonardo Rossi, and Andrea Prati. 2021. UniParma at SemEval-2021 Task 5: Toxic Spans Detection Using CharacterBERT and Bag-of-Words Model. In Proceedings of the 15th International Workshop on Semantic Evaluation (SemEval-2021), pages 220–224, Online. Association for Computational Linguistics.
Cite (Informal):
UniParma at SemEval-2021 Task 5: Toxic Spans Detection Using CharacterBERT and Bag-of-Words Model (Karimi et al., SemEval 2021)
Copy Citation:
PDF:
https://aclanthology.org/2021.semeval-1.25.pdf
Code
 IMPLabUniPr/UniParma-at-semeval-2021-task-5