<!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>LaSTUS/TALN at IroSvA: Irony Detection in Spanish Variants</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Lut ye Seda Mut Altin</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alex Bravo</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Horacio Saggion</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>LaSTUS-TALN Research Group, DTIC Universitat Pompeu Fabra C/Tanger 122-140</institution>
          ,
          <addr-line>08018 Barcelona</addr-line>
          ,
          <country country="ES">Spain</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2019</year>
      </pub-date>
      <fpage>291</fpage>
      <lpage>296</lpage>
      <abstract>
        <p>The Irony Detection in Spanish Variants (IroSvA'19) shared task aims at investigating the recognition of irony in Twitter messages in three di erent Spanish variants: from Spain , Mexico, and Cuba. This paper describes our approach to the shared task: a Neural Network system based on a simple bidirectional LSTM (biLSTM) model. Since we have developed the system in the context of other related IberLEF 2019 shared tasks, we train multiple models simultaneously sharing some of the layers of the neural architecture between them. Furthermore, we also have applied a method for data augmentation given the scarcity of resources which were available.</p>
      </abstract>
      <kwd-group>
        <kwd>Irony Detection biLSTM riety</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Figurative language is an important device for communication in social media
allowing people to express themselves in unexpected ways. Due to its signi
cance, investigating gurative language such as irony has gathered considerable
attention from various disciplines.</p>
      <p>The main problem with automatic detection of irony is that ironic messages
aim to convey the opposite meaning of what is literally said or written. This
e ect is sometimes achieved using humor as a key device. For various natural
language processing (NLP) applications, irony detection has a great potential,
especially where semantic analysis is of concern.</p>
      <p>
        IroSvA focuses on the detection of irony in short messages (tweets and news
comments) written in Spanish and with respect to a given context [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Tree
sub-tasks are proposed:
{ Subtask B: Irony detection in Spanish tweets from Mexico
{ Subtask C: Irony detection in Spanish news comments from Cuba
      </p>
      <p>Therefore, in addition to detect if a text is ironic or not depending on the
context, the problem is also related to the way irony is expressed in distinct
Spanish variants. This paper describes a neural network for irony detection for
di erent dialects. The rest of the paper is organized as follows: In section 2, we
present an overview of the related work for irony detection. In Section 3, we
describe our model and the di erences between di erent runs for each sub-task.
In Section 4, we provide the results and discuss the performance of the system.
Lastly, in Section 5, we give the conclusions.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Related Work</title>
      <p>
        Previous research on automatic irony detection follows two main approaches:
(i) rule-based or (ii) machine-learning based methods [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], sometimes combining
both. Rule-based approaches try to identify irony through a set of rules, such as
looking for a positive verb and a negative situation phrase in a sentence [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
      </p>
      <p>
        Apart from rule based systems, there are machine learning approaches with
handcrafted feature engineering and deep-learning systems. Most of the machine
learning approaches start by calculating the features with various methods to
then use a machine learning algorithm to classify the text as ironic or not.
Gonzalez-Ibanez et. al investigated the contribution of linguistic and pragmatic
features and found that pragmatic features such as positive emoticons (e.g.
smileys), negative emoticons (e.g. frowning faces) and user mentions { indicating
that a message is addressed to some speci c entity { are distinctive features
[
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Barbieri et al. used Random Forest and Decision tree classi ers utilizing a
group of features (e.g. frequency, written-spoken style, gap between positive and
negative terms) [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        More recently, among the systems that participated in a shared task on irony
detection in Italian, EVALITA 2018, innovative deep learning approaches showed
high performance, with the best performing system based on a deep learning
approach [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. In another shared task at SemEval-2018, the best performing
system's architecture consisted of densely connected LSTMs; based on pre-trained
word embeddings, sentiment features and syntactic features (e.g. PoS-tag
features). In addition, at this shared task most frequently preferred features were
lexical features such as n-grams, punctuation, emoji presence and sentiment or
emotion-lexicon features [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
      </p>
      <p>
        On the other hand, some previous works focusing only on detecting the
language variety of the tweets have highlighted the challenges researchers face [
        <xref ref-type="bibr" rid="ref7 ref9">7,
9</xref>
        ].
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Data and Methodology</title>
      <p>The corpus that was provided by the shared task organizers consist of 9,000
short messages about di erent topics written in Spanish as 3,000 from Cuba,
3,000 from Mexico and 3,000 from Spain. The messages are annotated according
to being ironic or not. Roughly, 80% of the corpus is given for training purposes
and the remaining 20% is given for testing purpose.</p>
      <p>
        In this work, we presented a neural network based on a simple bidirectional
LSTM (biLSTM) model with two dense layers at the end to detect ironic
messages based on our previous work [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. We considered each Spanish variant as
a di erent task, therefore the corpus provided by the organizers may not be
enough to train a neural network (2,400 instances per Spanish variant in the
training dataset) and it could present over tting or under tting problems
during the training. For that reason, we have used data from di erent tasks in order
to train more examples in the model. In the context of the IberLEF 2019, we
have selected three additional task to train with IroSvA at the same time:
{ From MEX-A3T, we used the Aggressiveness Identi cation track, which
focuses on the detection of aggressive comments in tweets from Mexican users.
{ From HAHA, we used the classi cation task related to identify if a Spanish
tweet is a joke or not.
{ The TASS 2019 focuses on the evaluation of polarity classi cation systems
of tweets written in Spanish. We used the data related to this task, tweets
written in the Spanish language spoken in Spain, Peru, Costa Rica, Uruguay
and Mexico, which were annotated with 4 di erent levels of opinion intensity
(Positive, Negative, Neutral and Nothing).
      </p>
      <p>In this scenario, we de ned an Embedding layer for each Spanish variant.
Classi cation tasks with the same Spanish variant used the same Embedding
layer during the training process. For instance, the embedding layer related to
the Spanish from Mexico was used by the MEX-A3T task, the Mexican part
of the TASS 2019 task and the tweets written in the Spanish language spoken
in Mexico from IroSvA. Furthermore, all task shared the biLSTM layer during
training.</p>
      <p>In Figure 1 a simpli ed schema of our shared model can be seen. In the
following we explain how the model works in one speci c classi cation task. In
order to train all task at the same time, we have divided each data set into the
same number of batches. Then, during the training, a batch of data is randomly
selected and it is used to train its speci c model (sharing the embedding and
BiLSTM layers with other models). In this sense, we consider one epoch when
all batches from all task were trained.</p>
      <p>First, the text of the tweets were tokenized, removing punctuation marks,
and keeping emojis and full hashtags since they can contribute to de ne the
meaning of a tweet.</p>
      <p>Second, the embedding layer transforms each element in the tokenized tweet
into a low-dimension vector. The embedding layer, composed of the vocabulary
of the task, was randomly initialized from a uniform distribution (between -0.8
and 0.8 values and with 100 dimensions). The initialized embedding layer was
updated with the word vectors included in a pre-trained model from Regional
Embeddings, which provides FastText word embeddings for Spanish language
variations.</p>
      <p>Then, a biLSTM layer gets high-level features from previous embeddings.
A disadvantage of seq2seq models (such as LSTM) is that they compress all
information into a xed-length vector, causing the incapability of remembering
long tweets. To overcome the limitation of xed-length vector keeping relevant
information from long tweet sequences, we added an attention layer producing
a weight vector and merge word-level features from each time step into a
tweetlevel feature vector, by multiplying the weight vector. Finally, the tweet-level
feature vector produced by the previous layers is used for classi cation task by
two fully-connected (dense) layers.</p>
      <p>Moreover, to be able to mitigate over tting problem we applied dropout
regularization. Dropout operation sets randomly to zero a proportion of the hidden
units during forward propagation, creating more generalizable representations of
data. The dropout rate was set to 0.5 in all cases.
We generated 2 submissions per Spanish variant in this task. In the rst
submission, we trained 4 models at the same time: for IroSvA from Cuba, Spain,
Mexico and for the MEX-A3T task (Figure 1). In the second one, we trained 10
models at the same time: three Spanish variants from the Irosva task, one from
the MEX-A3T and one HAHA tasks, and ve from the TASS task.</p>
      <p>Results of our submissions for each task are given in the Table 1 together
with the baselines proposed by the organizers.
In this paper, we have presented our results from the participation in the IroSvA
task from the IberLEF 2019. We have investigated multi-task learning on neural
networks with di erent tasks. Our results were close to the baselines presented
by the organizers. As commented before, each Spanish variation data set from
IroSva only includes 2,400 tweet for training, in comparison with other tasks
(MEX-A3T or HAHA with 7,700 and 30,000 tweets, respectively). We divided
each data set into the same number of batches, then, batches related to the
IroSva task contain less information to train than batches from MEX-A3T or
HAHA. In this case, the updates in the models produced by the IroSva batches
could be diminished by other batches. In any case, our model related to each
Spanish variant from IroSva and mostly trained with other tasks achieved results
compared with the baselines, opening new research lines with the purpose of
improving the relevance of the IroSva task during the multi-task training (e.g.
data augmentation in the IroSva task). In addition, we want to test di erent
types of neural networks (e.g. convolutions or combinations of convolutions and
LSTM layers) and share more layers between task. Finally, we also consider that
the integration of linguistic features (e.g. word frequency, POS tags and word
shape) and metadata (e.g. whether a tweet is a response to another tweet) can
represent useful contextual information to improve our performance.</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>Saggion</surname>
          </string-name>
          , H.:
          <article-title>Modelling irony in twitter</article-title>
          .
          <source>In: Proceedings of the Student Research Workshop at the 14th Conference of the European Chapter of the Association for Computational Linguistics</source>
          . pp.
          <volume>56</volume>
          {
          <fpage>64</fpage>
          . Association for Computational Linguistics, Gothenburg,
          <source>Sweden (Apr</source>
          <year>2014</year>
          ). https://doi.org/10.3115/v1/
          <fpage>E14</fpage>
          -3007
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Cignarella</surname>
            ,
            <given-names>A.T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Frenda</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Basile</surname>
            ,
            <given-names>V.</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>
          ,
          <string-name>
            <surname>Rosso</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Overview of the EVALITA 2018 task on irony detection in italian tweets (ironita)</article-title>
          .
          <source>In: Proceedings of the Sixth Evaluation Campaign of Natural Language Processing and Speech Tools for Italian. Final Workshop (EVALITA</source>
          <year>2018</year>
          )
          <article-title>co-located with the Fifth Italian Conference on Computational Linguistics (CLiC-it</article-title>
          <year>2018</year>
          ), Turin, Italy,
          <source>December 12-13</source>
          ,
          <year>2018</year>
          . (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Gonzalez-Ibanez</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Muresan</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wacholder</surname>
          </string-name>
          , N.:
          <article-title>Identifying sarcasm in twitter: a closer look</article-title>
          .
          <source>In: Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies: Short Papers-Volume</source>
          <volume>2</volume>
          . pp.
          <volume>581</volume>
          {
          <fpage>586</fpage>
          .
          <article-title>Association for Computational Linguistics (</article-title>
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Joshi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bhattacharyya</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Carman</surname>
            ,
            <given-names>M.J.:</given-names>
          </string-name>
          <article-title>Automatic sarcasm detection: A survey</article-title>
          .
          <source>CoRR abs/1602</source>
          .03426 (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Mut</given-names>
            <surname>Altin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.S.</given-names>
            ,
            <surname>Bravo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Saggion</surname>
          </string-name>
          , H.: Lastus/taln at semeval
          <article-title>-2019 task 6: Identi - cation and categorization of o ensive language in social media with attention-based bi-lstm model</article-title>
          .
          <source>In: Proceedings of the 13th International Workshop on Semantic Evaluation (SemEval-2019)</source>
          . pp.
          <volume>668</volume>
          {
          <fpage>673</fpage>
          . Association for Computational Linguistics, Minneapolis, Minnesota, USA (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Ortega-Bueno</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rangel</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          , Hernandez Far as,
          <string-name>
            <given-names>D.I.</given-names>
            ,
            <surname>Rosso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            ,
            <surname>Montes-</surname>
          </string-name>
          y-Gomez,
          <string-name>
            <surname>M.</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Medina</given-names>
            <surname>Pagola</surname>
          </string-name>
          ,
          <string-name>
            <surname>J.E.</surname>
          </string-name>
          :
          <article-title>Overview of the Task on Irony Detection in Spanish Variants</article-title>
          .
          <source>In: Proceedings of the Iberian Languages Evaluation Forum (IberLEF</source>
          <year>2019</year>
          ),
          <article-title>co-located with 34th Conference of the Spanish Society for Natural Language Processing (SEPLN</article-title>
          <year>2019</year>
          ).
          <article-title>CEUR-WS.org (</article-title>
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Rangel</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>R.P.F.M.:</surname>
          </string-name>
          <article-title>A low dimensionality representation for language variety identi cation</article-title>
          .
          <source>In: Proceedings of the 17th International Conference on Intelligent Text Processing and Computational Linguistics (CICLing16)</source>
          . pp. pp.
          <volume>156</volume>
          {
          <fpage>169</fpage>
          . SpringerVerlag,
          <source>LNCS(9624)</source>
          , (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Rilo</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Qadir</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Surve</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Silva</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gilbert</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Huang</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          :
          <article-title>Sarcasm as contrast between a positive sentiment and negative situation</article-title>
          .
          <source>In: Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing</source>
          . pp.
          <volume>704</volume>
          {
          <fpage>714</fpage>
          . Association for Computational Linguistics, Seattle, Washington, USA (Oct
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>Van</given-names>
            <surname>Hee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            ,
            <surname>Lefever</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            ,
            <surname>Hoste</surname>
          </string-name>
          , V.:
          <article-title>SemEval-2018 task 3: Irony detection in English tweets</article-title>
          .
          <source>In: Proceedings of The 12th International Workshop on Semantic Evaluation</source>
          . pp.
          <volume>39</volume>
          {
          <fpage>50</fpage>
          . Association for Computational Linguistics, New Orleans,
          <source>Louisiana (Jun</source>
          <year>2018</year>
          ). https://doi.org/10.18653/v1/
          <fpage>S18</fpage>
          -1005
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>