<!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>Shared Task on Stance and Gender Detection in Tweets on Catalan Independence - LaSTUS System Description</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Francesco Barbieri francesco.barbieri@upf.edu</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Universitat Pompeu Fabra</institution>
          ,
          <addr-line>Barcelona</addr-line>
          ,
          <country country="ES">Spain</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2017</year>
      </pub-date>
      <fpage>217</fpage>
      <lpage>221</lpage>
      <abstract>
        <p>Resumen In this paper we describe the system LaSTUS presented in the shared task on Stance and Gender Detection in Tweets on Catalan Independence, in the context of IberEval 2017. We participated to the task using FastText a linear model, extension of the classic bag of word. We also use pre-trained embeddings trained on 5 million tweets posted in Spain.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        In the past few years the debate on Catalan independence has been quite discussed
in politics. The topic generated a lot of discussion as well in social media. In the shared
task “Stance and Gender Detection in Tweets on Catalan Independence”[
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] the
organizers proposed a task to automatically recognize if a document (a tweet) is in favor
or against the Catalan independence. Such automatic systems are very useful in
practice, in order to analyze people opinion about a specific topic [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. To successfully detect
stance, automatic systems need to identify important bits of information that may not be
present in the focus text. Moreover, this task is harder then the classic Sentiment
Analysis task, since understanding whether the polarity of the tweet is positive or negative is
not sufficient to understand the opinion of the author of the tweet.
      </p>
      <p>The shared task also included a gender identification challenge, in order to study
the demographic of the debate. The documents were in Spanish and Catalan. In the
next section we will describe the tasks and the dataset provided by the organizers. In
Section 3 we describe the system we used, and in Section 4 we show the results of our
system.</p>
    </sec>
    <sec id="sec-2">
      <title>Task and Dataset</title>
      <p>
        The shared task included two tasks (for Spanish and Catalan tweets) [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]:
1. Stance Detection: Given a message, decide the stance taken towards the target
C¸ atalan Independence”. The possible stance labels are: FAVOR, AGAINST and
NONE.
2. Identification of Gender: Given a message, determine its author’s gender. The
possible gender labels are: FEMALE and MALE.
      </p>
      <p>
        The dataset [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] used in the tasks included tweets retrieved during the regional
elections in September 2015, and the political debate was focused on a possible
independence of Catalonia. The dataset included 8638 tweets for the stance and for the gender
recognition tasks (4319 in Spanish and 4319 in Catalan). In Table1 we report examples
from the dataset.
      </p>
      <p>T1
T2
T1
T2</p>
      <p>F
N
A
M
F
F
N
A
M
F</p>
      <sec id="sec-2-1">
        <title>Spanish</title>
        <p>Lo dije ayer y lo repito: votar algo que no sea ’Junts pel Si’ o la CUP
es tirar el voto a la basura. #somriureCUP
Primeros datos de participacio´n. 34,78 %. Un 5 % ma´s a estas horas que
en 2012 #27S
#27S ¡S´ı! ¡Soy ESPAN˜ OL!
Artur Mas llamando a todos sus colegas empresarios, le falta un 3 %
para llegar al 50 %. #27S
En unas plebiscitarias (votas una preguntas binaria) ¿prevalecen votos
(ciudadanos) o escan˜os? #27S</p>
      </sec>
      <sec id="sec-2-2">
        <title>Catalan</title>
        <p>Avui #si ha arribat el dia #27S sera` un gran dia. Gra`cies a tothom que
hi ha treballat tant per fer-ho possible
A #Sants n’hi ha que van a votar preparats #27S
A casa hem jugat a les votacions i ma filla diu q ha votat al
#presidentMas :( #epicfail #27S
Avui farem histo`ria ?????????? #27s</p>
        <p>Bon dia Catalunya! Llibertat i democra`cia. Cap a omplir les urnes! #27S
Cuadro 1: Examples of the dataset for each language and label of the two tasks. T1 is the stance
detection task (Favor, Neutral, Against) and and T2 is the gender identification Task (Male and
Female).</p>
        <p>In addition to these tweets we also use a corpus o 5 million tweets posted in Spain
between October 2015 and December 2016 in Spain, in order to train pre-trained
vectors.
3.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Our System</title>
      <p>In this section we will describe the system we presented to the shared task. In the
first sub-section we describe the preprossing pipeline, and in the second sub-section we
describe the FastText classifier.
3.1.</p>
      <sec id="sec-3-1">
        <title>Preprocessing</title>
        <p>
          Tweet texts were preprocessed with a modified version of the CMU Tweet
Twokenizer [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ], where we changed several regular expressions and added a Twitter emojis
vocabulary to better tokenize the tweets1. We also removed, from each tweet, all
hyperlinks, and lowercased all textual content in order to reduce noise and sparsity. We also
replace each user mention with the token “@user”.
        </p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. FastText</title>
        <p>
          Fastext2 [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] is a linear model for text classification. We decided to employ FastText
as it has been shown that on specific classification tasks, it can achieve competitive
results, comparable to complex neural classifiers (RNNs and CNNs). The best feature
of FastText is the speed as it can be much faster than complex neural models. The
FastText algorithm is similar to the CBOW algorithm [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ], where the middle word is
replaced by the label. Given a set of N documents, the loss that the model attempts to
minimize is the negative log-likelihood over the labels:
loss =
1 n=1
        </p>
        <p>X en log(softmax (BAxn ))</p>
        <p>N N
where en is the label included in the n-th tweet, represented as hot vector. A and B are
affine transformations (weight matrices), and xn is the unit vector of the bag of features
of the n-th document (comment). The bag of features is the average of the input words,
represented as vectors with a look-up table.</p>
        <p>
          We initialize the look-up table with pre-trained embeddings trained with the
algorithm of [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ], an extension of the continuous skipgram algotithm [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ], where also the
subinformation of the words is taken in account (by representing each word with a bag of
n-grams, i.e. the sum of the vector representation of each n-gram included in the word).
We pre-train the vectors on 5 million tweets geo-localized in Spain (see Section 2).
4.
        </p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Results and Discussion</title>
      <p>In this section we show the results of the model in the shared task and discuss them.
In Table 2 are reported the results for the two tasks in the two languages. We show
results of the best participant model, our model described in the previous section and
also the ranking position of our model (comparing to other participant models).</p>
      <p>In Table 2 we can see that our model is somehow competitive in the Stance-ES task
and Gender-CA where it is outperformed by the best systems of four points. In the other
two tasks (Stance-CA and Gender-ES) our model performs quite poorly comparing to
the best system (8 points difference). We are not aware of the models used by other
participants and can not infer the reason of these results. We can not even say that our
system is better in one language or in one task as our best results are in Stance-ES and
Gender-CA.</p>
      <p>We believe that one of the problem of our system was the preprocessing: removing
the user mentions (user) was not a good idea, as the user mentions could include
important insights about the stance of the tweet. Also, we need to explore whether our
1 http://www.ark.cs.cmu.edu/TweetNLP/
2 https://github.com/facebookresearch/fastText</p>
      <sec id="sec-4-1">
        <title>Best Model</title>
      </sec>
      <sec id="sec-4-2">
        <title>Our Model</title>
      </sec>
      <sec id="sec-4-3">
        <title>Ranking</title>
      </sec>
      <sec id="sec-4-4">
        <title>Stance ES</title>
        <p>
          system was overfitting the training dataset, as using systems like Bag of Words, or
similar methods, can lead to model a specific topic instead of modeling the target labels
[
          <xref ref-type="bibr" rid="ref1">1</xref>
          ].
5.
        </p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Conclusions</title>
      <p>In this paper we describe the system we presented at the shared task on Stance and
Gender Detection in Tweets on Catalan Independence. We used the FastText classifier
with pre-trained embeddings trained on 5 million tweets. Our model performances are
acceptable in some tasks, but in other tasks are very poor, suggesting that we need to
improve the system. We look forward to see how other participants tackled the problem
of Stance and Gender classification.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Barbieri</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ronzano</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Saggion</surname>
          </string-name>
          , H.:
          <article-title>How topic biases your results? a case study of sentiment analysis and irony detection in italian</article-title>
          .
          <source>In: Recent Advances in Natural Language Processing</source>
          , RANLP. pp.
          <fpage>41</fpage>
          -
          <lpage>47</lpage>
          .
          <string-name>
            <surname>Bulgaria</surname>
          </string-name>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <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>arXiv preprint arXiv:1607.04606</source>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>C.</given-names>
            <surname>Bosco</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lai</surname>
          </string-name>
          ,
          <string-name>
            <surname>V.P.F.R.P.R.:</surname>
          </string-name>
          <article-title>Tweeting in the debate about catalan elections</article-title>
          .
          <source>Language Resources and Evaluation Conference (LREC), workshop on Emotion and Sentiment Analysis Workshop (ESA)</source>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Gimpel</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schneider</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>O'Connor</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Das</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mills</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Eisenstein</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Heilman</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yogatama</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Flanigan</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Smith</surname>
            ,
            <given-names>N.A.</given-names>
          </string-name>
          :
          <article-title>Part-of-speech tagging for twitter: Annotation, features, and experiments</article-title>
          . In:
          <article-title>Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies: short papers-Volume 2</article-title>
          . pp.
          <fpage>42</fpage>
          -
          <lpage>47</lpage>
          . Association for Computational Linguistics (
          <year>2011</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 efficient text classification</article-title>
          .
          <source>In: Proceedings of the</source>
          <year>2017</year>
          <article-title>Conference of the European Chapter of the Association for Computational Linguistics</article-title>
          .
          <article-title>Association for Computational Linguistics</article-title>
          , Valencia,
          <source>Spain (April</source>
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Mikolov</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Corrado</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dean</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          :
          <article-title>Efficient estimation of word representations in vector space</article-title>
          .
          <source>arXiv preprint arXiv:1301.3781</source>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Mohammad</surname>
            ,
            <given-names>S.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kiritchenko</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sobhani</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhu</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cherry</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Semeval-2016 task 6: Detecting stance in tweets</article-title>
          .
          <source>In: Proceedings of the International Workshop on Semantic Evaluation. SemEval '16</source>
          , San Diego, California (
          <year>June 2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8. Taule´,
          <string-name>
            <surname>M.</surname>
          </string-name>
          , Mart´ı,
          <string-name>
            <given-names>M.A.</given-names>
            ,
            <surname>Rangel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            ,
            <surname>Rosso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            ,
            <surname>Bosco</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            ,
            <surname>Patti</surname>
          </string-name>
          ,
          <string-name>
            <surname>V.</surname>
          </string-name>
          :
          <article-title>Overview of the task of Stance and Gender Detection in Tweets on Catalan Independence at IBEREVAL 2017</article-title>
          .
          <article-title>In: Notebook Papers of 2nd SEPLN Workshop on Evaluation of Human Language Technologies for Iberian Languages (IBEREVAL)</article-title>
          .
          <source>CEUR Workshop Proceedings</source>
          , CEUR-WS.org, Murcia, Spain (
          <year>September 2017</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>