<!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>LTRC IIITH at IBEREVAL 2017: Stance and Gender Detection in Tweets on Catalan Independence</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Sahil Swami</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ankush Khandelwal</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Manish Shrivastava</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Syed Sarfaraz Akhtar</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Language Technologies Research Centre, International Institute of Information Technology</institution>
          ,
          <addr-line>Hyderabad</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2017</year>
      </pub-date>
      <fpage>199</fpage>
      <lpage>203</lpage>
      <abstract>
        <p>We describe the system submitted to IBEREVAL-2017 for stance and gender detection in tweets on Catalan Independence [1]. We developed a supervised system using Support Vector Machines with radial basis function kernel to identify the stance and gender of the tweeter using various character level and word level features. Our system achieves a macro-average of F-score(FAVOR) and F-score(AGAINST) of 0.46 for stance detection in both Spanish and Catalan and an accuracy of 64.85% and 44.59% for Gender detection in Spanish and Catalan respectively.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>The task of opinion mining and sentiment analysis on natural language texts
in social media has gained a lot of popularity and importance in recent times.
Stance detection is related to sentiment analysis but is very di erent from it.
In sentiment analysis we check if a tweet has a positive, negative or neutral
emotion while in stance detection we check whether the tweet is in favor, neutral
or against a given target which in this paper is independence of Catalonia. For
example, consider the following sentence: \Recent studies have shown that global
warming is in fact real ". We can say that this sentence's author is most likely
to be in favor of the concept `global warming'.</p>
      <p>There have been several experiments [2],[10] in the eld of sentiment analysis
and opinion mining on social media text. Opinion mining can provide a lot of
information about the texts that are present in social media and bene ts a lot
of other tasks such as information retrieval, text summarization, etc.</p>
      <p>On the other hand gender detection is the task of inferring the gender of
author from the content of the tweet. Gender detection has many applications
in the eld of marketing and advertising and thus there have been a lot of
studies [3],[4],[6],[11] on gender detection in social media text. Twitter pro les
don't provide a eld for person's gender which makes the task of identifying
author's gender from the tweet much more important.</p>
      <p>In this paper we present a system for stance and gender detection in tweets.
Our system uses character and word level features and Support Vector Machines
with radial basis function kernel for classi cation.</p>
    </sec>
    <sec id="sec-2">
      <title>Dataset and Evaluation</title>
      <p>The organizers provided training and test dataset which consisted of 4319 tweets
and 1081 tweets respectively, for both Spanish and Catalan. All the tweets in the
training dataset are annotated with stance (`FAVOR' or `AGAINST' or `NONE')
and gender (`FEMALE' or `MALE').</p>
      <p>Stance detection systems are evaluated using macro-average of F-score
(FAVOR) and F-score (AGAINST) i.e.</p>
      <p>(F scoreF AV OR + F scoreAGAINST )=2</p>
      <p>On the other hand gender detection systems are evaluated using accuracy
i.e. number of tweets for which the gender is predicted correctly per hundred
tweets.
3</p>
    </sec>
    <sec id="sec-3">
      <title>System Framework</title>
      <p>3.1</p>
      <sec id="sec-3-1">
        <title>Pre-processing</title>
        <p>Initially tweets are tokenized in a way such that hashtags, URLs and mentions
are preserved. Then URLs, mentions and stopwords are removed from the tweets.</p>
        <p>It can be observed from the tweets present in the training and test datasets
that almost all the hashtags are written in camel case format. Therefore, `#' is
removed from the hashtags and all the words are extracted from the hashtag.
And then each word is considered as a separate token.</p>
        <p>All the tokens in Spanish are then stemmed using Snowballstemmer
implemented in NLTK.
3.2</p>
      </sec>
      <sec id="sec-3-2">
        <title>Features</title>
        <p>We extracted various features from the given tweets to train our machine learning
model. We list and describe these features below.</p>
        <p>Character N-grams Character n-grams feature refers to presence or absence of
contiguous sequence of n characters. It can be seen from previous work [2],[3],[4]
that character level features have a signi cant e ect on stance and gender
detection.</p>
        <p>We extract character n-grams for all values of n between 1 and 3. Including
all the n-grams increases the size of feature vector enormously. Therefore, we
consider only those n-grams in our feature vector which occur at least 10 times
in the training dataset. This reduces the size of feature vector signi cantly and
also removes noisy n-grams.
3
Word N-grams Word n-grams feature refer to presence or absence of
contiguous sequence of n words or tokens. Word n-grams have proven to be important
features for stance and gender detection in previous studies [5],[6]. We extract
word n-grams for all values of n between 1 and 5. We include only those n-grams
in our feature vector which occur at least 10 times in the training dataset.
Stance and Gender Indicative Tokens This feature refers to presence or
absence of stance and gender indicative tokens. We use a variation of the approach
to nd stance indicative hashtags [2] and extract stance and gender indicative
tokens. We calculate a score for each token for both stance and gender where
score is de ned as :</p>
        <p>Scorestance(token) = maxstance label2Stance Set
Scoregender(token) = maxgender label2Gender Set
f req(token; stance label)</p>
        <p>f req(token)
f req(token; gender label)
f req(token)
where Stance-Set = fFAVOR, AGAINST, NEUTRALg, Gender-Set = fMALE,
FEMALEg.</p>
        <p>We consider only those tokens as features for stance indication which have
a score 0.6 and occur at least ve times in the training dataset. For gender
indication we consider only those tokens which have a score 0.7 and occur at
least twice in the training dataset. The threshold value for scores and number
of occurrences has been decided after empirical ne tuning.
3.3</p>
      </sec>
      <sec id="sec-3-3">
        <title>Feature Selection</title>
        <p>Previous studies [4],[7] have shown that feature selection algorithms improve
e ciency and accuracy of classi cation systems. We use chi square feature
selection algorithm which uses chi-squared statistic to evaluate individual feature
with respect to each class. This algorithm was run for both stance and gender
detection in order to extract the best features and reduce the feature vector size.
3.4</p>
      </sec>
      <sec id="sec-3-4">
        <title>Classi cation approach</title>
        <p>Support Vector Machines have been used many times previously [2],[8],[9] for
stance and gender detection and has proven to be a very e ective classi cation
technique for the same.</p>
        <p>After pre-processing the dataset and extracting all the desired features, we
use scikit-learn Support Vector Machine implementation with a radial basis
function kernel for classi cation. We also perform 10-fold cross validation on the
provided training dataset to develop the system. 10-fold cross validation is run
for each of the individual features separately to observe the e ect of each feature
on classi cation.
4
3.5</p>
      </sec>
      <sec id="sec-3-5">
        <title>Results</title>
        <p>Our system achieves a macro-average of F-score(FAVOR) and F-score(AGAINST)
of 0.46 for stance detection in both Spanish and Catalan and an accuracy of
64.85% and 44.59% for gender detection in Spanish and Catalan respectively for
the given test dataset.</p>
        <p>Table 1. shows the accuracy in percentage achieved for stance and gender
detection for Spanish tweets while Table 2. shows the accuracy in percentage
achieved for stance and gender detection in Catalan tweets considering one
feature at a time and also considering all the features together. These are the results
achieved in 10-fold cross validation on training dataset.
In this paper, we presented our approach for stance and gender detection for
tweets in both Spanish and Catalan using character and word level features and
Support Vector Machine technique for classi cation. It can also be observed from
the results of 10-fold cross validation on training dataset that character n-grams
have a signi cant e ect on classi cation.</p>
        <p>Our system has a lot of room for improvement and future work will include
extracting more features such as POS-tags and word embeddings and using
several other supervised and unsupervised machine learning algorithms for
classi cation.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <surname>Taule</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mart</surname>
            <given-names>M.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rangel</surname>
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosso</surname>
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bosco</surname>
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Patti</surname>
            <given-names>V</given-names>
          </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), Murcia</article-title>
          , Spain,
          <source>September 19, CEUR Workshop Proceedings. CEUR-WS.org</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <surname>Saif M. Mohammad</surname>
            , Parinaz Sobhani,
            <given-names>Svetlana</given-names>
          </string-name>
          <string-name>
            <surname>Kiritchenko</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>Stance and Sentiment in Tweets</article-title>
          .
          <source>In ACM Transactions on Embedded Computing Systems.</source>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          Vol.
          <volume>0</volume>
          , No. 0, Article 0.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <surname>Na</surname>
            <given-names>Cheng</given-names>
          </string-name>
          , R. Chandramouli,
          <string-name>
            <given-names>K.P.</given-names>
            <surname>Subbalakshmi</surname>
          </string-name>
          .
          <year>2011</year>
          .
          <article-title>Author gender identication from text</article-title>
          .
          <source>In Digital Investigation</source>
          . Vol.
          <volume>8</volume>
          ,
          <issue>78</issue>
          {
          <fpage>88</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <given-names>Zachary</given-names>
            <surname>Miller</surname>
          </string-name>
          , Brian Dickinson,
          <string-name>
            <given-names>Wei</given-names>
            <surname>Hu</surname>
          </string-name>
          .
          <article-title>Gender Prediction on Twitter Using Stream Algorithms with N-Gram Character Features</article-title>
          . In
          <source>International Journal of Intelligence Science</source>
          (
          <year>2012</year>
          ),
          <volume>2</volume>
          , 143{
          <fpage>148</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <given-names>Peter</given-names>
            <surname>Krejzl</surname>
          </string-name>
          , Barbora Hourova,
          <string-name>
            <given-names>Josef</given-names>
            <surname>Steinberger</surname>
          </string-name>
          .
          <article-title>Stance detection in online discussions</article-title>
          . In CoRR(
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <given-names>Claudia</given-names>
            <surname>Peersman</surname>
          </string-name>
          , Walter Daelemans, Leona Van Vaerenbergh.
          <year>2011</year>
          .
          <article-title>Predicting Age and Gender in Online Social Networks</article-title>
          .
          <source>In SMUC '11, Proceedings of the 3rd international workshop on Search</source>
          and
          <article-title>mining user-generated contents (</article-title>
          <year>2011</year>
          ).
          <volume>37</volume>
          {
          <fpage>44</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <given-names>Can</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Wen</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Bradford</given-names>
            <surname>Demarest</surname>
          </string-name>
          , Yue Chen, Sara Couture, Daniel Dakota, Nikita Haduong, Noah Kaufman, Andrew Lamont, Manan Pancholi,
          <string-name>
            <given-names>Kenneth</given-names>
            <surname>Steimel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Sandra</given-names>
            <surname>Kubler</surname>
          </string-name>
          .
          <year>2016</year>
          . IUCL at SemEval
          <article-title>-2016 Task 6: An Ensemble Model for Stance Detection in Twitter</article-title>
          .
          <source>In Proceedings of SemEval</source>
          (
          <year>2016</year>
          ).
          <volume>394</volume>
          {
          <fpage>400</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <given-names>Clay</given-names>
            <surname>Fink</surname>
          </string-name>
          , Jonathon Kopecky,
          <string-name>
            <given-names>Maksym</given-names>
            <surname>Morawski</surname>
          </string-name>
          .
          <year>2012</year>
          .
          <article-title>Inferring Gender from the Content of Tweets: A Region Speci c Example</article-title>
          .
          <source>In Sixth International AAAI Conference on Weblogs and Social Media</source>
          (
          <year>2012</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <string-name>
            <given-names>James</given-names>
            <surname>Marquardt</surname>
          </string-name>
          , Golnoosh Farnadi, Gayathri Vasudevan,
          <string-name>
            <surname>Marie-Francine</surname>
            <given-names>Moens</given-names>
          </string-name>
          , Sergio Davalos, Ankur Teredesai, Martine De Cock.
          <year>2014</year>
          .
          <article-title>Age and Gender Identi cation in Social Media</article-title>
          .
          <source>In CLEF 2014 Working Notes proceedings.</source>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          Antonio Fern andez Anta, Luis Nune Chiroque, Philippe Morere,
          <source>Agust n Santo</source>
          .
          <year>2013</year>
          .
          <article-title>Sentiment Analysis and Topic Detection of Spanish Tweets: A Comparative Study of NLP Techniques</article-title>
          . In Procesamiento de Lenguaje Natural (
          <year>2013</year>
          ).
          <volume>50</volume>
          :
          <issue>45</issue>
          {
          <fpage>52</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          <string-name>
            <surname>John D. Burger</surname>
            , John Henderson, George Kim,
            <given-names>Guido</given-names>
          </string-name>
          <string-name>
            <surname>Zarrella</surname>
          </string-name>
          .
          <year>2011</year>
          .
          <article-title>Discriminating Gender on Twitter</article-title>
          .
          <source>In Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing</source>
          .
          <volume>1301</volume>
          |
          <fpage>1309</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>