<!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>
      <journal-title-group>
        <journal-title>Santiago de Compostela, August</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Syntactically Enriched Multilingual Sentiment Analysis</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Carlos Gomez-Rodr guez</string-name>
          <email>carlos.gomez@udc.es</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Universidade da Corun~a, CITIC Elvin~a</institution>
          ,
          <addr-line>15701 A Corun~a</addr-line>
          ,
          <country country="ES">Spain</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2020</year>
      </pub-date>
      <volume>29</volume>
      <issue>2020</issue>
      <fpage>5</fpage>
      <lpage>6</lpage>
      <abstract>
        <p>Sentiment analysis of natural language texts needs to deal with linguistic phenomena like negation, intensi cation or adversative clauses. In this talk, I present an approach to tackle such phenomena by means of syntactic information. Our approach combines machine learning and symbolic processing: the former is used to obtain dependency trees for input sentences, and the latter to obtain the sentiment polarity for each sentence using handwritten rules that traverse the tree. Thanks to universal guidelines for syntactic annotation, our approach is applicable to multiple languages without rewriting the rules. Additionally, very accurate parsing is not needed for our approach to be helpful: fast and simple parsers will do, even if they lag behind state-of-the-art accuracy.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Background</title>
      <p>
        Polarity classi cation is a basic task in sentiment analysis of natural language texts, consisting on determining
whether the expressed opinion in a piece of text is positive, negative or neutral. Since the seminal work by Pang
et al. [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], many approaches have addressed the task by using machine learning models on features extracted
from individual words or n-grams. However, a sentence is more than a set of words. For example, the following
sentences contain the same words, but have opposite polarities:
      </p>
      <p>This phone is expensive, and not really very good. / This phone is good, and not really very expensive.</p>
      <p>What sets them apart is word order, which in turn determines their syntactic structure, i.e., the way in which
words interact with each other to form meaningful sentences. Namely, their polarities di er mainly due to the
di erent roles played by the negation \not". In the rst example, it modi es the positive word \good", making
the phone \not good" and thus expressing a negative view, while in the second example, it modi es the negative
word \expensive", making it \not expensive" which is positive. Since syntactic relations like these can happen
at arbitrarily long distances, n-grams cannot always capture them { but a syntactic dependency tree can.</p>
      <p>
        Syntax can be incorporated into a sentiment analysis model in various ways: for example, by decomposing
trees into features for a supervised classi er [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] or by training a neural network on a syntactic treebank augmented
with sentiment information [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Here, I present a di erent approach, where a dependency parse tree is used in
conjunction with sentiment lexicons to propagate polarity according to a set of handwritten rules.
      </p>
    </sec>
    <sec id="sec-2">
      <title>Sentiment analysis with syntactic rules</title>
      <p>
        Our approach is described in detail in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] (for Spanish) and [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] (for multiple languages). In brief, given a sentence,
our sentiment analysis process has the following steps:
      </p>
      <p>Copyright © 2020 for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).
The sentence is tokenized, part-of-speech tagged and parsed to a syntactic dependency tree. Any o -the-shelf
dependency parser can be used for this purpose.</p>
      <p>Standard third-party sentiment lexicons are used to assign individual polarities to subjective words (for
example, in a scale of -5 to +5, the word \excellent" could be assigned a polarity of +5, and \good" could
be assigned +3).</p>
      <p>Handwritten rules are used to propagate the polarity in a top-down fashion, from individual words to the
root of the tree (which yields the global polarity of the sentence). Rules are written to deal with syntactic
phenomena that in uence polarity. For example, given a negation, we use rules on the dependency tree to
identify the scope of negation, and we modify the polarity of the negated element by subtracting -4 if it is
positive, or +4 if it is negative (e.g. \not good" will be assigned 3 4 = 1). Rules are also written to deal
with adversative clauses, intensi ers and conditional statements.</p>
      <p>Two conditioning factors need to be taken into account when writing the rules to ensure generalizability of
the system across languages: rst, rules are dependent on syntactic annotation criteria (but the appearance of
universal annotation criteria that can be applied cross-linguistically, like Universal Dependencies, means that
this is not an obstacle for multilinguality). Second, lists of negation words, intensi ers, adversative conjunctions
and words introducing conditionals are needed to make the rules generalizable across languages, but these are
available with standard sentiment lexicons.</p>
      <p>
        Our experiments show that our approach outperforms existing unsupervised alternatives, as well as supervised
models when evaluated outside of their corpus of origin. Using a high-accuracy parser is not vital [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], as we
obtain good results even with modest parsing accuracy. Thus, very fast parsers, like those based on sequence
labeling [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], can be used to obtain an overall e cient and green sentiment analysis system.
Acknowledgements
This work has received funding from the European Research Council (ERC), under the European Union's Horizon
2020 research and innovation programme (FASTPARSE, grant agreement No 714150), from the ANSWER-ASAP
project (TIN2017-85160-C2-1-R) from MINECO, and from Xunta de Galicia and ERDF (ED431B 2017/01,
ED431G 2019/01).
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Carlos</given-names>
            <surname>Gomez-Rodr</surname>
          </string-name>
          <string-name>
            <surname>guez</surname>
          </string-name>
          , Iago Alonso-Alonso, and David Vilares, `
          <article-title>How important is syntactic parsing accuracy? An empirical evaluation on rule-based sentiment analysis'</article-title>
          ,
          <source>Arti cial Intelligence Review</source>
          ,
          <volume>52</volume>
          (
          <issue>3</issue>
          ),
          <year>2081</year>
          {
          <year>2097</year>
          , (
          <year>Oct 2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Mahesh</given-names>
            <surname>Joshi and Carolyn</surname>
          </string-name>
          Penstein-Rose, `
          <article-title>Generalizing dependency features for opinion mining'</article-title>
          ,
          <source>in Proc. of ACL-IJCNLPShort Papers</source>
          , pp.
          <volume>313</volume>
          {
          <issue>316</issue>
          ,
          <string-name>
            <surname>Suntec</surname>
          </string-name>
          , Singapore, (
          <year>August 2009</year>
          ). ACL.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Bo</given-names>
            <surname>Pang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Lillian</given-names>
            <surname>Lee</surname>
          </string-name>
          , and Shivakumar Vaithyanathan, `
          <article-title>Thumbs up? sentiment classi cation using machine learning techniques'</article-title>
          ,
          <source>in Proc. of EMNLP</source>
          , pp.
          <volume>79</volume>
          {
          <fpage>86</fpage>
          . ACL, (
          <year>July 2002</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Richard</given-names>
            <surname>Socher</surname>
          </string-name>
          , Alex Perelygin, Jean Wu, Jason Chuang,
          <string-name>
            <given-names>Christopher D.</given-names>
            <surname>Manning</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Andrew</given-names>
            <surname>Ng</surname>
          </string-name>
          , and Christopher Potts, `
          <article-title>Recursive deep models for semantic compositionality over a sentiment treebank'</article-title>
          ,
          <source>in Proc. of EMNLP</source>
          , pp.
          <volume>1631</volume>
          {
          <issue>1642</issue>
          , Seattle, Washington, USA, (
          <year>October 2013</year>
          ). ACL.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Michalina</given-names>
            <surname>Strzyz</surname>
          </string-name>
          , David Vilares, and
          <string-name>
            <surname>Carlos</surname>
          </string-name>
          Gomez-Rodr guez, `
          <article-title>Viable dependency parsing as sequence labeling'</article-title>
          ,
          <source>in Proc. of NAACL</source>
          , pp.
          <volume>717</volume>
          {
          <issue>723</issue>
          ,
          <string-name>
            <surname>Minneapolis</surname>
          </string-name>
          , Minnesota, (
          <year>June 2019</year>
          ). ACL.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>David</given-names>
            <surname>Vilares</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Miguel A.</given-names>
            <surname>Alonso</surname>
          </string-name>
          , and
          <string-name>
            <surname>Carlos</surname>
          </string-name>
          Gomez-Rodr guez, `
          <article-title>A syntactic approach for opinion mining on Spanish reviews'</article-title>
          ,
          <source>Natural Language Engineering</source>
          ,
          <volume>21</volume>
          (
          <issue>01</issue>
          ),
          <volume>139</volume>
          {
          <fpage>163</fpage>
          , (
          <year>2015</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>David</given-names>
            <surname>Vilares</surname>
          </string-name>
          ,
          <article-title>Carlos Gomez-Rodr guez, and Miguel A. Alonso, `Universal, unsupervised (rule-based), uncovered sentiment analysis'</article-title>
          ,
          <source>Knowledge-Based Systems</source>
          ,
          <volume>118</volume>
          , 45 {
          <fpage>55</fpage>
          , (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>