<!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>IMT Mines Ales at HASOC 2019: Automatic Hate Speech Detection</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Jean-Christophe Mensonides</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Pierre-Antoine Jean</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andon Tchechmedjiev</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sebastien Harispe</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>LGI2P, IMT Mines Ales, Univ Montpellier</institution>
          ,
          <addr-line>Ales</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper presents the contribution of the LGI2P (Laboratoire de Genie Informatique et d'Ingenierie de Production) team from IMT Mines Ales to the Hate Speech and O ensive Content Identi cation in Indo-European Languages (HASOC) 2019 shared task. This challenge aims at automatically identifying hate speech content in social media through three sub-tasks, each available in three di erent languages (English, German and Hindi). We are interested in sub-tasks A and B, requiring to (A) classify tweets as o ensive or as non o ensive, and (B) to further classify o ensive tweets from sub-task A as hate speech, o ensive speech or profane. We trained a fastText model for each proposed language and obtained promising results on the Hindi dataset for both sub-tasks A and B.</p>
      </abstract>
      <kwd-group>
        <kwd>Hate Speech Identi cation and O ensive Detection1</kwd>
        <kwd>Tweet</kwd>
        <kwd>Classi cation</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        With the rise in popularity of social media in recent years, it has become easier
than ever to convey a point of view and spread ideas across the world. While most
ideas can be heard, some of them seem wrong from an ethical point of view, such
as encouraging someone to commit a crime or harassing another human being
because of his ethnicity. Protecting the youth from those kinds of unethical
ideas is an important societal challenge to overcome (27% of children in UK had
a social network pro le in 2007 [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]). However, with the ever increasing number
of tweets posted everyday, manual monitoring is not a practical solution. The
Hate Speech and O ensive Content Identi cation in Indo-European Languages
(HASOC) 2019 Shared Task [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] proposes to tackle the lack of scalability of human
monitoring by automatically identifying hate speech content.
      </p>
      <p>Speci cally, three sub-tasks are proposed in this challenge. For each task,
three languages are proposed (English, German and Hindi). In this paper, we
are interested exclusively in sub-task A and sub-task B, for all three proposed
languages.
1 Copyright c 2019 for this paper by its authors. Use permitted under Creative
Commons License Attribution 4.0 International (CC BY 4.0). FIRE 2019, 12-15
December 2019, Kolkata, India.</p>
      <p>Sub-task A requires to classify tweets into two classes:
{ Hate and O ensive (HOF) - Tweets containing any form of non-acceptable
language (hate speech, aggression, profanity)
{ Non Hate-O ensive (NOT) - Tweets not containing any o ensive content.
Sub-task B is a ne-grained classi cation of o ensive tweets from task A. HOF
tweets must be classi ed into three classes:
{ Hate speech (HATE) - Tweets containing hateful comments toward groups
because of their race, political opinion, sexual orientation, health condition
or similar.
{ O ensive (OFFN) - Tweets degrading, dehumanizing or insulting an
individual.
{ Profane (PRFN) - Tweets containing unacceptable language in the absence
of insults or abuse. It mainly concerns the usage of swearwords.</p>
      <p>
        Recents advances in natural language processing have been applied to tweet
classi cation. Duppada et al. [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] used deep learning techniques with ensemble
learning methods to perform sentiment analysis in tweets. Wu et al. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] used
densely connected Long Short-Term Memory recurrent neural networks to detect
irony in tweets. Coltekin and Rama [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] predicted emoji in tweets using Support
Vector Machines. Perez and Luque [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] detected hate speech against women and
immigrants in spanish using Support Vecotr Machines.
2
2.1
      </p>
    </sec>
    <sec id="sec-2">
      <title>Corpus description</title>
      <sec id="sec-2-1">
        <title>Class imbalance analysis</title>
        <p>One dataset was given for each language. The English, German and Hindi
datasets respectively contain 5852, 3819 and 4665 labeled tweets. The class
distribution for each pair (language, sub-task) is shown in Table 1.</p>
        <p>Regarding sub-task A, the datasets are roughly balanced between OFF and
NOT classes both in English and in Hindi, while being highly imbalanced in
German (with only 11 % of OFF tweets). Regarding sub-task B, the datasets
are slightly imbalanced for each language, where one class represents 50% of the
tweets. It is important to note that due to the low number of OFF tweets in
German for sub-task A, each class in sub-task B has a really low number of
tweets, dropping to only 86 PRFN tweets. This makes this classi cation task
closer to a one-shot learning problem than a traditional deep learning problem.
2.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>Hashtag analysis</title>
        <p>Intuitively one could think that it's easy to classify a tweet according to its
hashtags, e.g tweets containing #FuckTrump, #DickHead or #DoucheBag hashtags
OFF</p>
        <p>Sub-task A</p>
        <p>NOT Total HATE</p>
        <p>Sub-task B
OFFN PRFN</p>
        <p>Total
English
German
Hindi
should be o ensive. Actually this is mostly not true. Figure 1 displays if an
English tweet is labeled as NOT or HOF according to its hashtags. As we can
see, most of those hashtags cannot solely be used to accurately choose between
NOT and HOF, appart from a few speci c ones such as #DoctorsFightBack and
#DoctorsProtest.
Emoji are little images used to convey feelings in electronic messages. As for
hashtags, one could think there is a strong correlation between the use of emoji,
usually carrying strong emotional information, and the HOF or NOT labels.
Actually the presence of some emoji (folded hands, backhand index pointing
down, middle nger) in a tweet is a strong indicator of its o ensiveness, as
shown in gure 2.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>System description</title>
      <sec id="sec-3-1">
        <title>Tweets preprocessing</title>
        <p>
          We used tweettokenize2 to replace tweeter speci c tokens to USERNAME,
NUMBER and URL special tokens. Emoji were replaced by their name3, as suggested
by Duppada et al. [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ]. As an example, , was replaced by emoji start Smiling
Face emoji end, where emoji start and emoji end are special tokens.
3.2
        </p>
      </sec>
      <sec id="sec-3-2">
        <title>System</title>
        <p>
          Since the number of labeled tweets in German was on the low side, especially
regarding sub-task B, we made the choice to not try models comprising of
millions of parameters (e.g, BERT [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]) and aimed at smaller ones. We achieved our
best F1-scores on our development set4 using fastText [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. We trained a fastText
model for each pair (language, sub-task) independently.
2 https://github.com/jaredks/tweetokenize
3 Emoji names were scrapped from
        </p>
        <p>emojipedia.org
4 The development was obtained by randomly sampling 20% of the training set.</p>
        <p>https://www.compart.com and https://
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Results</title>
      <p>We report our results for each pair (language, sub-task) in Table 2. The F1-score
column represents the best F1-score we achieved on the test set, the Best
F1score column represents the best F1-score achieved by any team in this challenge
and the Rank column represents our ranking (the denominator represents the
number of di erent teams reported on the leaderboard).</p>
      <p>F1-score</p>
      <p>Sub-task A
Best F1-score</p>
      <p>Rank</p>
      <p>F1-score</p>
      <p>Sub-task B
Best F1-score</p>
      <p>Rank
English
German
Hindi</p>
      <p>While we used the same method for every language, the results obtained are
really heterogeneous. Indeed, our system performed really well in Hindi both on
sub-tasks A and B, performed averagely in English on sub-task A and above
average on sub-task B, while performing poorly in German on both sub-tasks.</p>
      <p>We can see that the obtained results are scaling according to the balance
of the datasets. Hence, spending time tackling the class imbalance issue should
be a priority in our future works. The poor results on the German dataset can
be explained since the model predicted the NOT labels for every tweet during
inference, except once.
5</p>
    </sec>
    <sec id="sec-5">
      <title>Conclusion</title>
      <p>This paper presents the contribution of the LGI2P on sub-tasks A and B of the
HASOC 2019 shared task. Those tasks required, for three di erent languages
(English, German, Hindi), to (A) detect if tweets were containing any form of
hate or o ensive speech, and to (B) further classify o ensive tweets from
subtask A as either hate speech, o ensive speech or profane. We applied some simple
prepossessing methods and trained the same model once for each language. We
obtained promising results on the Hindi dataset both on sub-tasks A and B,
ranking respectively as second and third.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1. Coltekin,
          <string-name>
            <given-names>C.</given-names>
            ,
            <surname>Rama</surname>
          </string-name>
          ,
          <string-name>
            <surname>T.</surname>
          </string-name>
          :
          <article-title>Tubingen-oslo at SemEval-2018 task 2: SVMs perform better than RNNs in emoji prediction</article-title>
          .
          <source>In: Proceedings of The 12th International Workshop on Semantic Evaluation</source>
          . pp.
          <volume>34</volume>
          {
          <fpage>38</fpage>
          . Association for Computational Linguistics, New Orleans,
          <source>Louisiana (Jun</source>
          <year>2018</year>
          ). https://doi.org/10.18653/v1/
          <fpage>S18</fpage>
          -1004, https://www.aclweb.org/anthology/S18-1004
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <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>
          :
          <article-title>Bert: Pre-training of deep bidirectional transformers for language understanding</article-title>
          . arXiv preprint arXiv:
          <year>1810</year>
          .
          <volume>04805</volume>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Duppada</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jain</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hiray</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          : Seernet at semeval
          <article-title>-2018 task 1: Domain adaptation for a ect in tweets</article-title>
          . arXiv preprint arXiv:
          <year>1804</year>
          .
          <volume>06137</volume>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Goldsmith</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Disgracebook policing: social media and the rise of police indiscretion</article-title>
          .
          <source>Policing and society 25(3)</source>
          ,
          <volume>249</volume>
          {
          <fpage>267</fpage>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Joulin</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <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>Mikolov</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Bag of tricks for e cient text classi cation</article-title>
          .
          <source>In: Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume</source>
          <volume>2</volume>
          ,
          <string-name>
            <given-names>Short</given-names>
            <surname>Papers</surname>
          </string-name>
          . pp.
          <volume>427</volume>
          {
          <fpage>431</fpage>
          . Association for Computational Linguistics (
          <year>April 2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Modha</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mandl</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Majumder</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Patel</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Overview of the hasoc track at re 2019: Hate speech and o ensive content identi cation in indo-european languages</article-title>
          .
          <source>In: Proceedings of the 11th annual meeting of the Forum for Information Retrieval Evaluation (December</source>
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Perez</surname>
            ,
            <given-names>J.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Luque</surname>
            ,
            <given-names>F.M.:</given-names>
          </string-name>
          <article-title>Atalaya at SemEval 2019 task 5: Robust embeddings for tweet classi cation</article-title>
          .
          <source>In: Proceedings of the 13th International Workshop on Semantic Evaluation</source>
          . pp.
          <volume>64</volume>
          {
          <fpage>69</fpage>
          . Association for Computational Linguistics, Minneapolis, Minnesota, USA (Jun
          <year>2019</year>
          ). https://doi.org/10.18653/v1/
          <fpage>S19</fpage>
          -2008, https://www.aclweb.org/anthology/S19-2008
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Wu</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wu</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wu</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Liu</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yuan</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Huang</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          :
          <article-title>THU NGN at SemEval-2018 task 3: Tweet irony detection with densely connected LSTM and multi-task learning</article-title>
          .
          <source>In: Proceedings of The 12th International Workshop on Semantic Evaluation</source>
          . pp.
          <volume>51</volume>
          {
          <fpage>56</fpage>
          . Association for Computational Linguistics, New Orleans,
          <source>Louisiana (Jun</source>
          <year>2018</year>
          ). https://doi.org/10.18653/v1/
          <fpage>S18</fpage>
          -1006, https://www.aclweb.org/anthology/ S18-1006
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>