<!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>CrotoneMilano for AMI at Evalita2018. A performant, cross-lingual misogyny detection system.</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Angelo Basile</string-name>
          <email>angelo.basile@symanto.net</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Chiara Rubagotti</string-name>
          <email>chiara.rubagotti@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Independent Researcher</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Symanto Research</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>We present our systems for misogyny identification on Twitter, for Italian and English. The models are based on a Support Vector Machine and they use n-grams as features. Our solution is very simple and yet we achieve top results on Italian Tweets and excellent results on English Tweets. Furthermore, we experiment with a single model that works across languages by leveraging abstract features. We show that a single multilingual system yields performances comparable to two independently trained systems. We achieve accuracy results ranging from 45% to 85%. Our system is ranked first out of twelve submissions for sub-task B on Italian and second for sub-task A.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>In questo articolo presentiamo i nostri
modelli per il riconoscimento automatico di
testi misogini su Twitter: abbiamo
addestrato lo stesso sistema prima su un corpus
italiano e poi su uno inglese. Il modello si
basa su una macchina a vettori supporto
e usa n-grammi come feature. La nostra
soluzione e` molto semplice e tuttavia ci
permette di raggiungere lo stato dell’arte
sull’italiano e ottimi risultati sull’inglese.
Presentiamo inoltre un sistema che
funziona con entrambe le lingue sfruttando una
serie di feature astratte. Il nostro livello
raggiunge livelli di accuratezza tra il 45%
e l’85%: con questi risultati ci piazziamo
primi nel task B per l’italiano e secondi
nel task A.</p>
    </sec>
    <sec id="sec-2">
      <title>1 Introduction</title>
      <p>
        With awareness of violence against women
growing in the public discourse and the spread of
unfiltered and possibly anonymous communication
on social media in our digital culture, the issue
of misogyny online has become compelling.
Violence against women has been described by the
UN as a “Gender-based [..] form of
discrimination that seriously inhibits women’s ability to
enjoy rights and freedoms on a basis of
equality with men”1. On the web this often takes the
form of female-discriminating attacks of
different types, which undermine the women’s rights
of freedom of expression and participation2.
Following erjavec2¸012you’s understanding of hate
speech, reported in
        <xref ref-type="bibr" rid="ref7">(Pamungkas et al., 2018)</xref>
        as
“any type of communication that is abusive,
insulting, intimidating, harassing, and/or incites to
violence or discrimination, and that disparages a
person or a group on the basis of some
characteristics such as race, colour, ethnicity, gender,
sexual orientation, nationality, religion, or other
characteristics”, we can define misogynist speech
as any kind of aggressive discourse which
targets women because they are women. Within the
larger context of hate speech, online misogyny —
or cybersexism — stands out as a large and
complex phenomenon which reflects other forms of
offline abuse on women
        <xref ref-type="bibr" rid="ref10">(Poland, 2016)</xref>
        . This holds
true for the Italian case as well, where bouts of
misogynistic tweets have been linked to episodes
of femicides 3. In recent years the NLP
commu1http://www.un.org/womenwatch/daw/cedaw/recommendations/recomm.ht
2https://www.amnesty.org/en/latest/research/2018/03/onlineviolence-against-women-chapter-3/.
      </p>
      <p>
        3http://www.voxdiritti.it/wpcontent/uploads//2018/06/mappa-intolleranza-3-donne.jpg
nity has addressed the issue of automatic
detection of hate speech in general
        <xref ref-type="bibr" rid="ref11 ref6">(Schmidt and
Wiegand, 2017)</xref>
        and misogyny in particular
        <xref ref-type="bibr" rid="ref2">(Anzovino
et al., 2018)</xref>
        . This effort to detect and contain
verbal violence on social media (or any kind of text)
demonstrates how NLP tools can also be used for
ethically beneficial purposes and should be
considered in the newborn and crucial discourse on
Ethics in NLP
        <xref ref-type="bibr" rid="ref1 ref4 ref5">(Hovy and Spruit, 2016; Hovy et
al., 2017; Alfano et al., 2018)</xref>
        . We are therefore
proud to take up the AMI challenge
        <xref ref-type="bibr" rid="ref2 ref3">(Fersini et al.,
2018)</xref>
        and present our contribution to the cause
of stopping misogynistic speech on Twitter. In
this paper we propose a simple linear model
using n-grams: we show that such a simple setup
can still yield good results. We decided to
propose a simple model for three reasons: first, it
has been shown that linear SVM can easily
outperform more complex deep neural networks
        <xref ref-type="bibr" rid="ref6 ref6 ref9">(Plank,
2017; Medvedeva et al., 2017)</xref>
        ; second, training
and testing our model does not require expensive
hardware but a common laptop is enough to
replicate our experiments; third, we experiment with a
transformation of the input (i.e. we extract abstract
features) and a linear model allows for an easier
interpretation of the contribution of this
transformation.
      </p>
      <p>To summarise, the following are the
contributions of this paper:</p>
      <p>We propose a simple and yet strong
misogyny detection system for English and Italian
(ranked first out of twelve systems for
misogynistic category detection)
We show how a single system can be trained
to work across languages
We release all the code4 and our trained
systems for reproducibility and for a quick
implementation of language technology
systems that can help detect and mitigate
cybersexism phenomena.</p>
      <p>Task Description The AMI task is combined
binary and multi-label, short text classification
task. Given a Tweet, we have to predict whether it
contains or not misogyny (Task A) and if it does,
we have to classify the misogynistic behaviour and
predict who is the subject being targeted (Task</p>
      <sec id="sec-2-1">
        <title>4The code can</title>
        <p>https://github.com/anbasile/AMI/.
be
found
at</p>
        <p>B). The misogynistic behaviour’s space consists of
five different labels:</p>
        <sec id="sec-2-1-1">
          <title>Stereotype &amp; Objectification</title>
        </sec>
        <sec id="sec-2-1-2">
          <title>Dominance</title>
        </sec>
        <sec id="sec-2-1-3">
          <title>Derailing</title>
        </sec>
        <sec id="sec-2-1-4">
          <title>Discredit</title>
        </sec>
        <sec id="sec-2-1-5">
          <title>Sexual Harassment &amp; Threats of</title>
        </sec>
        <sec id="sec-2-1-6">
          <title>Violence</title>
          <p>The target can be either Active when the
message refers to a specific person or Passive when
the message expresses generic misogyny. The
setup is the same for both Italian and English.
2</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Data</title>
      <p>We use only the data released by the task
organisers: they consist of Italian and English Tweets.
The organisers report that the corpus has been
manually labelled by several annotators. We
provide an overview of the data set in Table 1. As it
can be seen from the table, the data for Task A is
more or less balanced, while the data for Task B is
highly skewed.
3</p>
    </sec>
    <sec id="sec-4">
      <title>Experiments</title>
      <p>In this section we describe the feature extraction
process and the model that we built.
3.1</p>
      <p>Pre-processing
We decide not to pre-process the data in any way,
since we do not have linguistic (or non-linguistic)
reasons for doing so. To tokenize the text we
simply split at every white space.
3.2</p>
      <p>Model and Features
We built a sparse linear model for approaching this
task.</p>
      <p>
        We use n-grams extracted at the word level as
well as at the character level. We use 3-10
ngrams and binary tf-idf. We feed these features
to a Support Vector Machine (SVM) model with a
linear kernel; we use the implementation included
in scikit-learn
        <xref ref-type="bibr" rid="ref8">(Pedregosa et al., 2011)</xref>
        .
Furthermore, we experiment with feature abstraction:
we follow the bleaching approach recently
proposed by
        <xref ref-type="bibr" rid="ref12">(van der Goot et al., 2018)</xref>
        . First, we
transform each word in a list of symbols that 1)
represents the shape of the individual characters
      </p>
      <sec id="sec-4-1">
        <title>Active</title>
        <p>Passive</p>
      </sec>
      <sec id="sec-4-2">
        <title>Non-Misogynous SO 625 40</title>
        <p>and 2) abstracts from meaning by still
approximating the vowels and characters that compose the
word; then, we compute the length of the word and
its frequency (while taking care of padding the first
one with a zero in order to avoid feature collision);
finally, we use a Boolean label for explicitly
distinguishing words from non-alphanumeric token
(e.g. emojis). Table 2 shows an example of this
feature abstraction process.</p>
        <p>
          <xref ref-type="bibr" rid="ref12">(van der Goot et al., 2018)</xref>
          proposed this
bleaching approach for modelling gender across
languages, by leveraging the language-independent
nature of these features: here, we try to re-use the
technique for classifying misogynist text across
languages. We slightly modify the representation
proposed by
          <xref ref-type="bibr" rid="ref12">(van der Goot et al., 2018)</xref>
          by
merging the shape feature (e.g. Xxx) with the
vowelconsonant approximation feature (e.g. CVC) into
one single feature (e.g. Cvc).
        </p>
        <p>We propose three different multi-lingual
experiments:</p>
        <p>TRAIN Italian ! TEST English
TRAIN English ! TEST Italian</p>
        <p>TRAIN Ita. &amp; Eng. ! TEST Ita. &amp; Eng.</p>
        <p>For the last experiment, we use half the data set
for each language. We report scores obtained by
training on the whole training set and testing on
the official test set, using the gold labels released
by the organisers after the evaluation period.
4</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Evaluation and Results</title>
      <p>Since the data set labels for the sub-task B are not
evenly distributed across the classes, we use
f1score to evaluate our model. First we report
results obtained via a 10-fold cross-validation on the
training set; then, we report results from the
official test set, whose labels have been released. The
official evaluation does not take into account the
joint prediction of the labels, however here we
report results considering the 0 label: since we train
different models for the different label sets, we
make sure that the models trained on Task B are
able to detect if a message is misogynistic in the
first place.
4.1</p>
      <p>Development Results
We report the development results obtained by
using different text representations. Table 3 presents
an overview of these results. We note that all four
representations — words, characters, a
combination of these two and the bleached representation
— all yield comparable results. The combination
of words and characters seems to be the best
format. Overall, we note that the system performs
better on the Italian corpus than on the English
corpus.
4.1.1 Cross-lingual Results
In Table 4 we present the results of our
crosslingual experiments. We train and test different
systems using lexical and abstract features. We
note that the abstract model trained on Italian
outperforms the fully lexicalized model when tested
on English, but the opposite is not true. The
English data set seems particularly hard for both the
abstract and the lexicalized model. Interestingly,
the abstract model trained on both corpora shows
good results.</p>
      <p>Words (W)
Chars (C)
W+C
Bleaching
0.68
0.71
0.70
0.68</p>
      <p>ENGLISH</p>
      <p>CAT. TGT.
0.88
0.88
0.88
0.85</p>
      <sec id="sec-5-1">
        <title>ITALIAN</title>
        <p>
          CAT. TGT.
In Table 5 we present official test results
          <xref ref-type="bibr" rid="ref2 ref3">(Fersini
et al., 2018)</xref>
          . We submitted only one, constrained
run; a run is considered constrained when only
the data released by the organisers are used. We
submitted the model using the combined
representation with word- and character-ngrams, trained
once on the English corpus and once on the
Italian corpus. We achieve the top and the second
position for the tasks B and A respectively on the
Italian data set. On the English data set our
system is ranked 15th and 4th on the tasks A and B
respectively.
        </p>
        <p>IT
EN</p>
        <p>TASK A
0.843
0.617</p>
        <p>TASK B
CATEGORY</p>
        <p>TARGET
0.579
0.293
0.423
0.444</p>
        <p>AVG.
0.501
0.369
A warning to the reader: this section contains
explicit language. In the attempt to understand better
the big difference in performance between the
English and Italian models, we show the importance
of words as learned by the model: we print the
ten most important words, ranked by their learned
weights. The result is shown in Table 6. From
the output we see that the model trained on Italian
learned meaningful words for identifying a
misogynist message, such as zitta [shut up], tua [your]
and muori [die!]: these words stand out from the
rest of the profanity for directly referring to
someone, while the rest of the words and almost all the
most important English words could be used as
interjections or could be more generic insults.</p>
        <p>RANK</p>
        <p>ITA</p>
        <p>The results of the abstract system are
satisfactory for eventually building a light, portable model
that could be adapted to different language. In the
future we will try training on English and Italian
and testing on a third corpus (such as the Spanish
version of the AMI data set).</p>
        <p>In this paper we described our participation to
the AMI - Automatic Misogyny Identification for
Italian and English. We proposed a very simple
solution that can be implemented quickly and we
scored a state-of-the-art result for classification of
misogynistic behaviours in five classes.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgements</title>
      <p>The authors would like to thank the two
anonymous reviewers who helped improve the quality of
this paper. The first author has conducted this
research as he was still part of the Erasmus Mundus
master in Language and Communication
Technology, a shared master program between the
University of Groningen (NL) and the University of
Malta (MT).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <given-names>Mark</given-names>
            <surname>Alfano</surname>
          </string-name>
          , Dirk Hovy, Margaret Mitchell, and
          <string-name>
            <given-names>Michael</given-names>
            <surname>Strube</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Proceedings of the second acl workshop on ethics in natural language processing</article-title>
          .
          <source>In Proceedings of the Second ACL Workshop on Ethics in Natural Language Processing.</source>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <given-names>Maria</given-names>
            <surname>Anzovino</surname>
          </string-name>
          , Elisabetta Fersini, and
          <string-name>
            <given-names>Paolo</given-names>
            <surname>Rosso</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Automatic identification and classification of misogynistic language on twitter</article-title>
          .
          <source>In International Conference on Applications of Natural Language to Information Systems</source>
          , pages
          <fpage>57</fpage>
          -
          <lpage>64</lpage>
          . Springer.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <given-names>Elisabetta</given-names>
            <surname>Fersini</surname>
          </string-name>
          , Debora Nozza, and
          <string-name>
            <given-names>Paolo</given-names>
            <surname>Rosso</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Overview of the evalita 2018 task on automatic misogyny identification (ami)</article-title>
          .
          <source>In Tommaso Caselli</source>
          , Nicole Novielli, Viviana Patti, and Paolo Rosso, editors,
          <source>Proceedings of the 6th evaluation campaign of Natural Language Processing and Speech tools for Italian (EVALITA'18)</source>
          , Turin, Italy. CEUR.org.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <given-names>Dirk</given-names>
            <surname>Hovy and Shannon L Spruit</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>The social impact of natural language processing</article-title>
          .
          <source>In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume</source>
          <volume>2</volume>
          :
          <string-name>
            <surname>Short</surname>
            <given-names>Papers)</given-names>
          </string-name>
          , volume
          <volume>2</volume>
          , pages
          <fpage>591</fpage>
          -
          <lpage>598</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <given-names>Dirk</given-names>
            <surname>Hovy</surname>
          </string-name>
          , Shannon Spruit, Margaret Mitchell,
          <string-name>
            <surname>Emily M Bender</surname>
            ,
            <given-names>Michael</given-names>
          </string-name>
          <string-name>
            <surname>Strube</surname>
            , and
            <given-names>Hanna</given-names>
          </string-name>
          <string-name>
            <surname>Wallach</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Proceedings of the first acl workshop on ethics in natural language processing</article-title>
          .
          <source>In Proceedings of the First ACL Workshop on Ethics in Natural Language Processing.</source>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <given-names>Maria</given-names>
            <surname>Medvedeva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Martin</given-names>
            <surname>Kroon</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Barbara</given-names>
            <surname>Plank</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>When sparse traditional models outperform dense neural networks: the curious case of discriminating between similar languages</article-title>
          .
          <source>In Proceedings of the Fourth Workshop on NLP for Similar Languages, Varieties and Dialects (VarDial)</source>
          , pages
          <fpage>156</fpage>
          -
          <lpage>163</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <given-names>Endang</given-names>
            <surname>Wahyu</surname>
          </string-name>
          <string-name>
            <surname>Pamungkas</surname>
          </string-name>
          , Alessandra Teresa Cignarella, Valerio Basile, and
          <string-name>
            <given-names>Viviana</given-names>
            <surname>Patti</surname>
          </string-name>
          .
          <year>2018</year>
          . 14
          <article-title>-exlab@unito for ami at ibereval2018: Exploiting lexical knowledge for detecting misogyny in english and spanish tweets</article-title>
          .
          <source>In Proceedings of the Third Workshop on Evaluation of Human Language Technologies for Iberian Languages (IberEval</source>
          <year>2018</year>
          ), pages
          <fpage>234</fpage>
          -
          <lpage>241</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <given-names>F.</given-names>
            <surname>Pedregosa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Varoquaux</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Gramfort</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Michel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Thirion</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Grisel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Blondel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Prettenhofer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Weiss</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Dubourg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Vanderplas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Passos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Cournapeau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Brucher</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Perrot</surname>
          </string-name>
          , and
          <string-name>
            <given-names>E.</given-names>
            <surname>Duchesnay</surname>
          </string-name>
          .
          <year>2011</year>
          .
          <article-title>Scikit-learn: Machine learning in Python</article-title>
          .
          <source>Journal of Machine Learning Research</source>
          ,
          <volume>12</volume>
          :
          <fpage>2825</fpage>
          -
          <lpage>2830</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <given-names>Barbara</given-names>
            <surname>Plank</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>All-in-1 at ijcnlp-2017 task 4: Short text classification with one model for all languages</article-title>
          .
          <source>Proceedings of the IJCNLP</source>
          <year>2017</year>
          ,
          <string-name>
            <given-names>Shared</given-names>
            <surname>Tasks</surname>
          </string-name>
          , pages
          <fpage>143</fpage>
          -
          <lpage>148</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <string-name>
            <given-names>Bailey</given-names>
            <surname>Poland</surname>
          </string-name>
          .
          <year>2016</year>
          . Haters: Harassment, Abuse, and Violence Online. University of Nebraska Press.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          <string-name>
            <given-names>Anna</given-names>
            <surname>Schmidt</surname>
          </string-name>
          and
          <string-name>
            <given-names>Michael</given-names>
            <surname>Wiegand</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>A survey on hate speech detection using natural language processing</article-title>
          .
          <source>In Proceedings of the Fifth International Workshop on Natural Language Processing for Social Media</source>
          , pages
          <fpage>1</fpage>
          -
          <lpage>10</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          <string-name>
            <surname>Rob van der Goot</surname>
          </string-name>
          , Nikola Ljubesˇic´,
          <string-name>
            <surname>Ian</surname>
            <given-names>Matroos</given-names>
          </string-name>
          , Malvina Nissim, and
          <string-name>
            <given-names>Barbara</given-names>
            <surname>Plank</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Bleaching text: Abstract features for cross-lingual gender prediction</article-title>
          .
          <source>In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume</source>
          <volume>2</volume>
          :
          <string-name>
            <surname>Short</surname>
            <given-names>Papers)</given-names>
          </string-name>
          , volume
          <volume>2</volume>
          , pages
          <fpage>383</fpage>
          -
          <lpage>389</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>