<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>GTH-UPM at DETOXIS-IberLEF 2021: Automatic Detection of Toxic Comments in Social Networks</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Sergio Esteban Romero</string-name>
          <email>sergio.estebanro@alumnos.upm.es</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ricardo Kleinlein</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Cristina Luna-Jimenez</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Juan Manuel Montero[</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Fernando F</string-name>
          <email>fernando.fernandezmg@upm.es</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Speech Technology Group, Center for Information Processing and Telecommunications, E.T.S.I. de Telecomunicacion, Universidad Politecnica de Madrid</institution>
          ,
          <addr-line>Av. Complutense, N</addr-line>
        </aff>
      </contrib-group>
      <abstract>
        <p>Sadly, the presence of toxic messages on social networks, whether in the form of stereotypes, sarcasm, mockery, insult, inappropriate language, aggressiveness, intolerance, or typical of hate speech against immigrants and / or women, among others, is relatively frequent. This presence should not be ignored by the scienti c community, since it is their responsibility to develop tools and systems that allow their automatic detection and elimination. In this paper, we present an exploratory analysis in which di erent deep learning (DL) models for the detection of toxic expressions have been evaluated on the DETOXISIberLEF 2021 challenge using the o cial release of the NewsCom-TOX corpus. Particularly, we compare traditional RNN and state-of-the-art transformer models. Our experiments con rmed that optimum performance can be obtained from transformer models. Speci cally, top performance was achieved by ne tuning a BETO model (the pre-trained BERT model for the Spanish language from the Universidad de Chile) for the toxicity detection tasks. Another contribution of this analysis is the validation of the proposed method for adding task-speci c vocabulary (new tokens) that could help to e ectively extend the original vocabulary of the pre-trained models.</p>
      </abstract>
      <kwd-group>
        <kwd>Classi cation task</kwd>
        <kwd>Toxicity detection</kwd>
        <kwd>Recurrent networks</kwd>
        <kwd>Attention</kwd>
        <kwd>Transformer models</kwd>
        <kwd>Transfer learning</kwd>
        <kwd>Social networks</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>The automatic detection of toxic language, especially in online tweets and
comments, is a task that has attracted growing interest from the NLP (Natural
Language Processing) community in recent years and has become a tremendously
popular and active research area because of its impact on modern society.</p>
      <p>In this regard, the DETOXIS challenge is a great opportunity to tackle the
hard task of identifying toxic comments in social media. The detection of toxicity
is not an easy task at all. It involves much more than just identifying some speci c
words or sentences, we must also take the context into account which makes the
task even more complex. The present work is well aligned with such interest
and its objective is the design and implementation of computational models for
toxicity assessment and classi cation of comments in Spanish. Di erent models
have been proposed and evaluated for both subtasks of the challenge:
{ Subtask 1: Toxicity detection task is a binary classi cation task that consists
of classifying the content of a comment as toxic (toxic=yes) or not toxic
(toxic=no).
{ Subtask 2: Toxicity level detection task is a more ne grained classi cation
task in which the aim is to identify the level of toxicity of a comment (0=
not toxic; 1= mildly toxic; 2= toxic and 3: very toxic).</p>
      <p>
        In this paper we will present the di erent toxicity recognition models we
have developed as part of our participation in DETOXIS-Iberlef 2021. Our rst
model is an extension of the system we previously developed for intent detection
and classi cation based on word-embeddings and recurrent neural networks [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
Our second model, the model that we have used in our nal submissions to the
challenge, is a transformer based model which has been developed by ne tuning
a BETO model (the pre-trained BERT model for the Spanish language from
the Universidad de Chile) for the toxicity detection tasks. The lessons learned
from our experiments and experience in participating in the challenge have been
reported in the next sections.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Related work</title>
      <p>
        Automatic detection of toxic comments to ensure its deletion is mandatory in
a world surrounded by social media. Traditional methods such as RNN models
have provided e cient solutions for similar tasks in multiple elds. Also, RNN
models based on Bi-LSTMs allow to explore the context of the sentence
improving its performance. However, recent advances such as the BERT model have
greatly contributed to enhance natural language processing [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. The BERT
family of algorithms is based on the Transformer architecture [22], a particular type
of neural processing unit that outperforms traditional LSTM cells [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
Transformers have become state-of-the-art models in many of the most popular NLP
tasks including automatic toxicity detection in texts [19][
        <xref ref-type="bibr" rid="ref13">13</xref>
        ].
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>The NewsCom-TOX dataset</title>
      <p>Data provided for the challenge is grouped in NewsCom-Tox dataset which
contains around 4357 posts. Most comments are in response of articles from di erent
Spanish newspapers. Each comment is classi ed as toxic or not toxic and also in
four di erent levels of toxicity. In addition, some other features are included such
as argumentation, sarcasm, mockery or insult, for instance [21]. Furthermore, we
must consider that classes are not balanced since it contains a higher amount of
non toxic comments.
4</p>
    </sec>
    <sec id="sec-4">
      <title>RNN based model</title>
      <p>As a rst solution for the toxicity analysis we have used a Recurrent Neural
Network (RNN), a type of model widely used in the analysis of Twitter
messages, for example. RNNs have the ability to process their inputs sequentially,
performing the same operation, ht = fW (xt; ht 1), on each of the di erent
elements that constitute our input sequence (i.e. words or, to be more exact, their
corresponding embeddings), where ht is the hidden state, t the time step, and
W the weights of the network.</p>
      <p>As it can be observed, the operation is formulated in such a way that the
hidden state at each time step depends on the previous hidden states. Hence, the
order of the elements in our sequences (i.e. the order of the words) is particularly
important. As an immediate consequence, RNNs allow us to handle inputs (i.e.
sentences) of variable length, which happens to be an essential feature given the
nature of our problem.</p>
      <p>
        Among the di erent possible architectures of this type of networks, we have
opted for the so-called Long Short-Term Memory (LSTM) networks [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], a special
type of RNNs that help preventing the typical vanishing gradient problem of
standard RNNs by introducing a gating mechanism to ensure proper gradient
ow through the network. LSTMs main characteristic is the ability to learn
longterm dependencies. To do this, these networks are supported by basic constituent
units called cells that are provided with mechanisms that allow deciding for each
cell what information is preserved from that provided by the previous cells, and
what information is provided to the next ones, both depending on the cell's
current state.
4.1
      </p>
      <p>
        Embeddings
(Word) embeddings are vector-type representations obtained for words in
reduceddimensional vector spaces where semantically similar words are always close to
each other. The Fasttext project [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], recently open-sourced by Facebook
Research, enables a fast and e ective method to learn word embeddings that are
very useful in text classi cation, clustering and information retrieval. In this
work, the proposed model uses Fasttext word embeddings to represent the
vectors for the words as input of the network.
      </p>
      <p>
        At the time of training, FastText trains by sliding a window over the input
text and either learning the target word from the remaining context (also known
as continuous bag of words, CBOW), or all the context words from the target
word (\Skip-gram"). Learning can be viewed as a series of updates to a neural
network with two layers of weights and three layers of neurons, in which the
outer layer has one neuron for each word in the vocabulary and the hidden
layer has as many neurons as there are dimensions in the embedding space. This
approach is very similar to Word2Vec [14]. However, unlike Word2Vec, fastText
might also learn vectors for sub-parts of words: so-called character n-grams. This
ensures that for instance the words love, loved and beloved all have similar vector
representations, even if they tend to show up in di erent contexts. This feature
enhances learning on heavily in ected languages [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
4.2
      </p>
      <sec id="sec-4-1">
        <title>Model description</title>
        <p>
          Our approach is based on a 2-layer Bidirectional-LSTM model with a deep
selfattention mechanism which is represented in Figure 1. The model is implemented
in Pytorch [15] and based on the architecture proposed in [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ].
        </p>
        <p>Embedding layer The model is designed to work with sequences of words as
inputs, thus allowing us to process any type of sentence. For this, a rst
embedding layer is provided that collects the embeddings x1; x2; : : : ; xN corresponding
to each of the words w1; w2; : : : ; wN constituing the sentence we want to process,
where N is the number of words in our sentence. We initialize the weights of the
embedding layer with our pre-trained word embeddings.</p>
        <p>Bi-LSTM layer A standard LSTM model behaves in a unidirectional way,
that is, the network takes as input the direct sequence of word embeddings
and produces the outputs h1; h2; : : : ; hN , where hi is the hidden state of the
LSTM cell at time step i, summarizing all the information that the network has
accumulated from our sentence up to word wi.</p>
        <p>Instead, we have used a bi-directional LSTM (Bi-LSTM) that allows us to
collect such information in both directions. In particular, a Bi-LSTM consists
of 2 LSTMs, a forward LST M! that allows the analysis of the sentence from
w1 to wN , and an inverse or backward LST M which allows a similar analysis
to be carried out but in the opposite direction, from wN to w1. To obtain the
de nitive outputs of our Bi-LSTM layer, we simply concatenate for each word
the outputs obtained from the analysis performed in each speci c direction (see
Equation 1 in which jj corresponds to the concatenation operator and L to the
size of each LSTM).</p>
        <p>hi = !hi jjhi , where hi 2 R2L
(1)
Attention layer In order to identify the most informative words when
determining the polarity of the sentence, the model uses a deep self-attention
mechanism. Thus, actual importance and contribution of each word is estimated by
means of a multilayer perceptron (MLP) composed of 2 layers with a non-linear
activation function (tanh) similar to that proposed in [16].</p>
        <p>The MLP learns the attention function g as a probability distribution on
the hidden states hi, that allows us to obtain the attention weights ai that each
word receives. As the output of the attention layer the model simply computes
the convex combination r of the LSTM outputs hi with weights ai, where a
convex combination is a linear combination of points where all the coe cients
are non-negative and add up to 1.</p>
        <p>Output layer Finally, we use r as a feature vector which we feed to a nal
task-speci c layer for classi cation. In particular, we use a fully-connected layer,
followed by a softmax operation, which outputs the probability distribution over
the classes.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Transformer based model</title>
      <p>Willing to improve the results obtained with the RNN model, we decided to use
transformers, a type of model able to process its inputs sequentially as well. For
this task we used BERT which stands for Bidirectional Encoder Representations
from Transformers allowing to work in both directions. Also, something that
make them so powerful is their attention mechanism for identifying which are
the keywords in a sentence. These models usually receive sentences as inputs
that are divided into single tokens, obtaining a sequence of them.</p>
      <p>The way this process is carried out depends on the tokenizer used but BERT's
one is based on words and subwords. So, for instance, if a word is not included
in the original vocabulary, it will be divided in a sequence of subtokens that all
together would form the initial word. However, when we want to netune our
model within a speci c eld, it is usual that this occurs with many common
words related to the topic, so what we decided to test is whether adding new
tokens to our initial vocabulary results in a better toxicity recognition. These
new tokens will correspond to the most frequent words in our training dataset
that were not already included in the original tokenizer vocabulary.
5.1</p>
      <sec id="sec-5-1">
        <title>Model adaptation</title>
        <p>
          Pre-trained NLP models have led to breakthrough performance improvements in
di erent tasks including intent recognition or sentiment analysis, among many
others [17]. However, the adoption of pre-trained language models still must face
two important challenges as their applications expand [20]:
1. First, the need for large training resources; training requires substantial
computation and data, see, e.g., BERTlarge [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ], RoBERTa [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ], while most
common situation is that available training resources are signi cantly constrained
or limited.
2. Second, the need for extending pre-trained models with domain-speci c
vocabulary: every target domain, such as the social media domain on which
this work focuses, has its own vocabulary, and sentences in the domain may
have words from both the original language model's vocabulary and new
domain-speci c vocabulary. Being able to operate on this mixture of
vocabulary is essential in achieving high performance on downstream tasks in the
new domain [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ].
        </p>
        <p>Instead of constructing our model with a new vocabulary from scratch, which
would require substantial computational resources and training data, or simply
adapting the existing pre-trained model on the original vocabulary, which would
lead to sub-optimal performance on downstream tasks, we have adopted a simple
but e ective approach that addresses both challenges explicitly. Particularly, our
method aims at including only a reduced subset of words from the new domain's
vocabulary, carefully selected in a rationale way by attending to their actual
frequency in our training data, while being able to reuse and adapt the original
pre-trained model. This helps reducing required computation and training data
while enhancing recognition performance.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Evaluation</title>
      <sec id="sec-6-1">
        <title>Experimental setup</title>
        <p>
          To prevent over tting all the experiments have been carried out following a 5-fold
cross-validation scheme. Each setup has been trained for 100 epochs and
'StopEarly' has been adopted as the stopping criterion. No exhaustive exploration of
the hyper-parameters of our models was conducted. Models were trained during
100 epochs using an Adam optimizer [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ], with initial learning rate of 0:001,
batch size of 32, and early-stopping after 5 epochs without improvement in the
F1 classi cation score. For the calculation of F1 we used the weighted version
that takes into account the number of examples available for each di erent class.
RNN speci c setup With regards to the RNN model both the bi-LSTM and
attention layers had a 0:3 dropout rate. The encoder layers had a size L of
150 or 200. As a way to increase input variability from epoch to epoch, input
embeddings were randomly added white noise with 0:15 probability rate in order
to increase the robustness of the model. Also, given that classes were not perfectly
balanced, to prevent introducing bias in our models we applied class weights
to the loss function, penalizing more the misclassi cation of under-represented
classes. These weights were computed as the inverse frequencies of the classes in
the training set.
        </p>
        <p>BERT speci c setup Our BERT model has been implemented and ne-tuned
for the toxic comments classi cation tasks using the Simple Transformers library
[18]. Although pre-trained tokenizers work at both word and subword levels, the
top N new tokens to be added to the vocabulary (i.e. those that happen to be
the most frequent in our training data) have been included as word-level units.
The rest of new tokens, those connected to more infrequent words, just get split
into smaller units to ensure that there are no out-of-vocabulary tokens and all
vocabulary units get updated reasonably frequently during training.
6.2</p>
      </sec>
      <sec id="sec-6-2">
        <title>RNN model results</title>
        <p>
          We have evaluated two di erent RNN like models whose main di erence is the
encoder size. Corresponding results are detailed in Table 1. Other values were
also tested though size 200 yielded best performance. Nonetheless, performance
has demonstrated to be signi cantly better for even the most simple version of
our BERT based model: the model ne-tuned from the cased version of BETO,
a BERT model trained on a big Spanish corpus that can be found in [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ], without
explicitly adding any new domain-speci c vocabulary.
6.3
        </p>
      </sec>
      <sec id="sec-6-3">
        <title>BERT model results</title>
        <p>
          After con rming the superiority of the BERT based approach, we compared
di erent pre-trained models' performance after ne-tuning them on the rst
downstream subtask: identifying whether a comment is toxic or not, a binary
classi cation problem. As shown in Figure 2, the cased version of BETO clearly
outperforms the other two models: the uncased BETO version and the standard
BERT multilingual base model, a model pre-trained on the top 104 languages
with the largest Wikipedia using a masked language modeling (MLM) objective
[
          <xref ref-type="bibr" rid="ref5">5</xref>
          ].
        </p>
        <p>Fig. 2. BERT models comparison: 5-fold CV results for DETOXIS-Iberlef 2021 Subtask
1.</p>
        <p>Then, besides comparing alternative pre-trained models, we also measured
the impact of our vocabulary extension method. The results of this analysis have
been also presented in Figure 2. Results shown there correspond to independent
experiments in which a di erent number of N new tokens (i.e. top N words
included as new words) is tested. Results are reported starting from 25 new
tokens at rst and up to 100, increasing the amount by 25 on each di erent run.</p>
        <p>As it can be deduced from the gure, our vocabulary extension method
demonstrates to be e ective achieving a top performance of 76:72% and an
improvement over the baseline performance obtained when our model is
simply ne-tuned without explicitly adding any new word (i.e. 75:26%, previously
reported in Table 1). However, results become worse when the amount of new
tokens exceeds a certain small limit, which suggests the importance of nding an
adequate balance between the increased complexity of our target model (i.e. the
number of new units-embeddings to be learnt) and the available training data.</p>
        <p>For the second subtask we have followed exactly the same procedures
obtaining similar results as the shown above. In this subtask we are facing a multi-class
classi cation problem, where the goal is to identify the toxicity level of every
comment in a 0 to 3 scale (i.e. 0: not toxic; 1: mildly toxic; 2: toxic and 3: very
toxic). The evaluation results for the adopted experimental setup based on the
5-fold cross-validation scheme have been presented in Figure 3. In this case, only
results obtained for our top-performing approach based on the cased version
of the BETO pre-trained model have been reported. Besides, and for a proper
comparison and analysis, the result corresponding to the case where we
simply ne-tune the model while freezing the original tokenizer (i.e. we do not add
any new domain-speci c vocabulary) has also been included at the beginning
of the series (i.e. the \0" column). Again, we demonstrate that our vocabulary
extension method consistently outperforms the prior approach based on general
vocabulary. However, once again we con rm that new additive vocabulary can
only be introduced to some extent because no further improvement is observed
beyond 100 new domain-speci c words (best performance is achieved again by
the 25 new tokens con guration).</p>
        <p>
          Analyzing the e ect of di erent data pre-processing methods Adopting
the top-performing approach based on the cased version of the BETO pre-trained
model as a reference, we decided to further explore the use of some of the most
popular text pre-processing techniques to nd out whether they are actually
useful or not. Evaluated techniques include the following:
{ Removing stop words: stop words are removed with the help of the spaCy
library [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ].
{ Removing punctuation: punctuation marks are removed with the help of the
        </p>
        <p>Spacy library.
{ Lemmatization: Spacy lemmatization is applied to generate the root form of
the words.
{ Basic text normalization: special words including emojis, emails,
percentages, money, phone numbers, times, dates, urls and/or hashtags are
assimilated and replaced by a special tokens, such as MAIL, DATE, URL,... to
prevent information from being lost during data representation.</p>
        <p>The obtained results have been summarised and sorted in terms of
performance in Table 2. As it can be observed, none of the applied techniques that are
aimed at removing tokens were found to be e ective. In short, DL methods that
do use embedding representations seems to not require the removal of anything.
Speci cally, in that n-dimensional vector words like \dogs" and \dog" would
already be closer to each other. So, the need to lemmatize becomes unnecessary.</p>
        <p>With regards to stopwords, although it could be convenient to remove many
of them, we should notice that stopword lists may contain words which shouldn't
be removed in certain domains or tasks, as it happens to be the case. Generally
speaking, we should not remove anything (e.g., a word or a punctuation mark)
that could be useful in some way. Again, DL models working with vector
embeddings, similarly to lemmatization, are currently the best methods to handle
and lter those irrelevant terms.</p>
        <p>Finally, it is interesting to conclude that basic text normalization has proven
to be successful (i.e. performance decreases if we omit it). In this case, the process
of transforming some words into their single canonical form still helps our model
by reducing the number of unique words (i.e. reducing the vocabulary size helps
reducing the model complexity and improving its performance).</p>
      </sec>
      <sec id="sec-6-4">
        <title>DETOXIS-Iberlef 2021 Challenge results</title>
        <p>After carefully analyzing the obtained results that have been previously
presented, we decided to submit the runs on both DETOXIS-Iberlef 2021 challenge
subtasks for our top-performing approach based on the cased version of the
BETO pre-trained model when gradually increasing the amount of new tokens
in steps of 25 from 0 to 100, thus resulting in 5 di erent runs and submissions
for each task. Details about the challenge and its evaluation are presented in
[21].</p>
        <p>
          In both tasks, we are named as GTH-UPM. These rankings are available on
DETOXIS-Iberlef 2021 o cial website [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ]. Our result in Table 3 corresponds to
the run with 100 new tokens. In this case, a relatively large deviation can be
observed when comparing the o cial result from the challenge with our previous
best result. In this regard, it is worth mentioning that, in addition to the inherent
di culty of the task itself, our model was not optimized for the individual F1
measure over the toxic class but for F1 weighted over the two classes: toxic and
non-toxic. This result has been considered satisfactory since it has been obtained
by means of the proposed vocabulary extension method.
        </p>
        <p>If we move on to the second subtask, our result in Table 4 corresponds to
the run with 75 new tokens, thus also demonstrating the convenience of the
proposed extension method. In this case, in spite of the mismatch between the
optimization/evaluation parameters (i.e. the subtask aims at CEM evaluation
metric while our model was speci cally trained targeting weighted-F1) our model
has achieved a signi cantly better result than the best result that we previously
obtained.
7</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>Conclusions</title>
      <p>
        In this paper, we have presented an exploratory analysis in which di erent deep
learning (DL) models for the detection of toxic expressions have been
evaluated on the DETOXIS-IberLEF 2021 challenge using the o cial release of the
NewsCom-TOX corpus. Particularly, we have compared traditional RNN and
state-of-the-art transformer models including standard BERT [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] and its BETO
variant [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Our experiments have con rmed that optimum performance can be
obtained from transformer models. Speci cally, better performance has been
achieved by simply ne tuning the BETO model for the toxicity detection tasks.
      </p>
      <p>As another important contribution of this work, we have proposed and
validated a simple but e ective method for extending our pre-trained models with
domain-speci c vocabulary. The method accounts for term frequencies to rank
and select speci c words to be added at the word level. As a result, the
performance of the extended model can be signi cantly improved. This approach could
be particularly attractive to ad-hoc and special-purpose or very speci c domains
with unique vocabularies where limited training data is available. Nonetheless,
additional work still needs to be done with regards to automatically nding or
identifying the exact and optimal amount of new tokens to be added (i.e. the
precise value that achieves a good balance between model complexity and available
training data).</p>
      <p>Furthermore, unlike traditional approaches not using DL nor embedding
representations, when using transformer-like models and testing di erent text
preprocessing methods, it has been observed that preserving the raw structure of
the texts, by not removing anything while simply performing a very basic text
normalisation, helps achieving optimal performance.</p>
      <p>Funding The work leading to these results has been supported by the
Spanish Ministry of Economy, Industry and Competitiveness through the CAVIAR
(MINECO, TEC2017-84593-C2-1-R) and AMIC (MINECO,
TIN2017-85854-C44-R) projects (AEI/FEDER, UE). Ricardo Kleinlein's research was supported
by the Spanish Ministry of Education (FPI grant PRE2018-083225).</p>
      <p>Acknowledgments We gratefully acknowledge the support of NVIDIA
Corporation with the donation of the Titan X Pascal GPU used for part of this
research.
14. Mikolov, T., Chen, K., Corrado, G.S., Dean, J.: E cient estimation of word
representations in vector space (2013), http://arxiv.org/abs/1301.3781
15. Paszke, A., Gross, S., Chintala, S., Chanan, G., Yang, E., DeVito, Z., Lin, Z.,
Desmaison, A., Antiga, L., Lerer, A.: Automatic di erentiation in pytorch. In: NIPS
2017 Workshop on Autodi (2017), https://openreview.net/forum?id=BJJsrmfCZ
16. Pavlopoulos, J., Malakasiotis, P., Androutsopoulos, I.: Deep learning for
user comment moderation. In: Proceedings of the First Workshop on
Abusive Language Online. pp. 25{35. Association for Computational Linguistics,
Vancouver, BC, Canada (Aug 2017). https://doi.org/10.18653/v1/W17-3004,
https://www.aclweb.org/anthology/W17-3004
17. Qiu, X., Sun, T., Xu, Y., Shao, Y., Dai, N., Huang, X.: Pre-trained models for
natural language processing: A survey. Science in China E: Technological Sciences
63(10), 1872{1897 (Oct 2020). https://doi.org/10.1007/s11431-020-1647-3
18. Rajapakse, T.C.: Simple transformers. https://github.com/ThilinaRajapakse/simpletransformers
(2019)
19. Schmidt, A., Wiegand, M.: A survey on hate speech detection using natural
language processing. In: Proceedings of the Fifth International Workshop on Natural
Language Processing for Social Media. pp. 1{10. Association for Computational
Linguistics, Valencia, Spain (Apr 2017). https://doi.org/10.18653/v1/W17-1101,
https://www.aclweb.org/anthology/W17-1101
20. Tai, W., Kung, H.T., Dong, X., Comiter, M., Kuo, C.F.: exBERT:
Extending pre-trained models with domain-speci c vocabulary under constrained
training resources. In: Findings of the Association for Computational
Linguistics: EMNLP 2020. pp. 1433{1439. Association for Computational
Linguistics, Online (Nov 2020). https://doi.org/10.18653/v1/2020. ndings-emnlp.129,
https://www.aclweb.org/anthology/2020. ndings-emnlp.129
21. Taule, M., Ariza, A., Nofre, M., Amigo, E., Rosso, P.: Overview of the detoxis task
at iberlef-2021: Detection of toxicity in comments in spanish. Procesamiento del
Lenguaje Natural 67 (2021)
22. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N.,
Kaiser, L.u., Polosukhin, I.: Attention is all you need. In: Guyon, I., Luxburg, U.V.,
Bengio, S., Wallach, H., Fergus, R., Vishwanathan, S., Garnett, R. (eds.) Advances
in Neural Information Processing Systems. vol. 30. Curran Associates, Inc. (2017),
https://proceedings.neurips.cc/paper/2017/
le/3f5ee243547dee91fbd053c1c4a845aaPaper.pdf</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1. Detoxis-IberLEF
          <year>2021</year>
          results (
          <year>2021</year>
          ), https://detoxisiberlef.wixsite.com/website/evaluationresults, [Online; accessed 21-June-2021]
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Baziotis</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nikolaos</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chronopoulou</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kolovou</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Paraskevopoulos</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ellinas</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Narayanan</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Potamianos</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Ntua-slp at semeval-2018 task 1: Predicting a ective content in tweets with deep attentive rnns and transfer learning</article-title>
          .
          <source>Proceedings of The 12th International Workshop on Semantic Evaluation</source>
          (
          <year>2018</year>
          ). https://doi.org/10.18653/v1/s18-1037, http://dx.doi.org/10.18653/v1/
          <fpage>S18</fpage>
          -1037
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Bojanowski</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Grave</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Joulin</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mikolov</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Enriching word vectors with subword information</article-title>
          .
          <source>Transactions of the Association for Computational Linguistics</source>
          <volume>5</volume>
          ,
          <issue>135</issue>
          {
          <fpage>146</fpage>
          (
          <year>2017</year>
          ). https://doi.org/10.1162/tacl a 00051, https://www.aclweb.org/anthology/Q17-1010
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4. Can~ete, J.,
          <string-name>
            <surname>Chaperon</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fuentes</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ho</surname>
            ,
            <given-names>J.H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kang</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Perez</surname>
          </string-name>
          , J.:
          <article-title>Spanish pretrained bert model and evaluation data</article-title>
          .
          <source>In: PML4DC at ICLR</source>
          <year>2020</year>
          (
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Devlin</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chang</surname>
            ,
            <given-names>M.W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lee</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Toutanova</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          : BERT:
          <article-title>Pre-training of deep bidirectional transformers for language understanding</article-title>
          .
          <source>In: Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies</source>
          , Volume
          <volume>1</volume>
          (Long and Short Papers). pp.
          <volume>4171</volume>
          {
          <fpage>4186</fpage>
          . Association for Computational Linguistics, Minneapolis,
          <source>Minnesota (Jun</source>
          <year>2019</year>
          ). https://doi.org/10.18653/v1/
          <fpage>N19</fpage>
          -1423, https://www.aclweb.org/anthology/N19-1423
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Fernandez-Mart nez</surname>
          </string-name>
          , F.,
          <string-name>
            <surname>Griol</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Callejas</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Luna-Jimenez</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>An approach to intent detection and classi cation based on attentive recurrent neural networks</article-title>
          .
          <source>In: Proc. IberSPEECH</source>
          <year>2021</year>
          . pp.
          <volume>46</volume>
          {
          <issue>50</issue>
          (
          <year>2021</year>
          ). https://doi.org/10.21437/IberSPEECH.2021-
          <volume>10</volume>
          , http://dx.doi.org/10.21437/IberSPEECH.2021-
          <fpage>10</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Garneau</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Leboeuf</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lamontagne</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Predicting and interpreting embeddings for out of vocabulary words in downstream tasks</article-title>
          . CoRR abs/
          <year>1903</year>
          .00724 (
          <year>2019</year>
          ), http://arxiv.org/abs/
          <year>1903</year>
          .00724
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Grave</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bojanowski</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gupta</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Joulin</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mikolov</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Learning word vectors for 157 languages</article-title>
          .
          <source>In: Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC</source>
          <year>2018</year>
          ).
          <article-title>European Language Resources Association (ELRA), Miyazaki</article-title>
          , Japan (May
          <year>2018</year>
          ), https://www.aclweb.org/anthology/L18-1550
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Hochreiter</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schmidhuber</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>Long short-term memory</article-title>
          .
          <source>Neural Comput</source>
          .
          <volume>9</volume>
          (
          <issue>8</issue>
          ),
          <volume>1735</volume>
          {1780 (Nov
          <year>1997</year>
          ). https://doi.org/10.1162/neco.
          <year>1997</year>
          .
          <volume>9</volume>
          .8.1735, https://doi.org/10.1162/neco.
          <year>1997</year>
          .
          <volume>9</volume>
          .8.
          <fpage>1735</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Honnibal</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Montani</surname>
            , I., Van Landeghem,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Boyd</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>spaCy: Industrial-strength Natural Language Processing in Python (</article-title>
          <year>2020</year>
          ). https://doi.org/10.5281/zenodo.1212303, https://doi.org/10.5281/zenodo.1212303
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Kingma</surname>
            ,
            <given-names>D.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ba</surname>
          </string-name>
          , J.:
          <article-title>Adam: A method for stochastic optimization</article-title>
          . In: Bengio,
          <string-name>
            <given-names>Y.</given-names>
            ,
            <surname>LeCun</surname>
          </string-name>
          , Y. (eds.) 3rd
          <source>International Conference on Learning Representations, ICLR</source>
          <year>2015</year>
          , San Diego, CA, USA, May 7-
          <issue>9</issue>
          ,
          <year>2015</year>
          , Conference Track Proceedings (
          <year>2015</year>
          ), http://arxiv.org/abs/1412.6980
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Liu</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ott</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Goyal</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Du</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Joshi</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Levy</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lewis</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zettlemoyer</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stoyanov</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>Roberta: A robustly optimized BERT pretraining approach</article-title>
          . CoRR abs/
          <year>1907</year>
          .11692 (
          <year>2019</year>
          ), http://arxiv.org/abs/
          <year>1907</year>
          .11692
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Maslej-Kresnakova</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sarnovsky</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Butka</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Machova</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          :
          <article-title>Comparison of deep learning models and various text pre-processing techniques for the toxic comments classi cation</article-title>
          .
          <source>Applied Sciences</source>
          <volume>10</volume>
          (
          <issue>23</issue>
          ) (
          <year>2020</year>
          ). https://doi.org/10.3390/app10238631, https://www.mdpi.com/2076- 3417/10/23/8631
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>