<!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>MORE SENSE: MOvie REviews SENtiment analysis boosted with SEmantics</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Amna Dridi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Diego Reforgiato Recupero</string-name>
          <email>diego.reforgiatog@unica.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>University of Cagliari, Mathematics and Computer Science Department</institution>
          ,
          <addr-line>Via Ospedale 72, 09124, Cagliari</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Sentiment analysis is becoming one of the most active area in Natural Language Processing nowadays. Its importance coincides with the growth of social media and the open space they create for expressing opinions and emotions via reviews, forum discussions, microblogs, Twitter and social networks. Most of the existing approaches on sentiment analysis rely mainly on the presence of a ect words that explicitly reect sentiment. However, these approaches are semantically weak, that is, they do not take into account the semantics of words when detecting their sentiment in text. Only recently a few approaches (e.g. sentic computing) started investigating towards this direction. Following this trend, this paper investigates the role of semantics in sentiment analysis of movie reviews. To this end, frame semantics and lexical resources such as BabelNet are employed to extract semantic features from movie reviews that lead to more accurate sentiment analysis models. Experiments are conducted with di erent types of semantic information by assessing their impact in movie reviews dataset. A 10-fold cross-validation shows that F1 measure increases slightly when using semantics in sentiment analysis in social media. Results show that the proposed approach considering word's semantics for sentiment analysis is a promising direction.</p>
      </abstract>
      <kwd-group>
        <kwd>Sentiment analysis</kwd>
        <kwd>Movie reviews</kwd>
        <kwd>Frame semantics</kwd>
        <kwd>BabelNet</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>In the movie domain, there has been a huge number of review sites giving
opinions about the performance of the movie. While the stars rating to a movie tell
us about the success or failure of a movie quantitatively, reviews give us a deeper
qualitative insight on di erent aspects of the movie.</p>
      <p>Sentiment analysis of movie reviews aims to automatically infer the
opinion of the reviewer with respect to various topics or the overall polarity of the
review. Most of existing work on sentiment analysis of movie reviews use
statistical methods to extract features from the review (bag of words, n-grams,
word2vec,etc.) [10]. However, statistical methods su er from the lack of
handling meanings and semantics which are crucial for understanding reviewer's
sentiment. Therefore, there is the need to shift from a word-level to a
conceptuallevel analysis of sentiments. This intuition has been the basis of a novel,
multidisciplinary approach to sentiment analysis, called sentic computing1, which aims
to include semantic features into sentiment analysis.</p>
      <p>Following this trend, some works emerged and explored a new type of features
called semantic features aiming to handle meaning and semantics. While they
intend to extract semantics, the proposed approaches su er from the lack of
handling anaphora resolution and word sense disambiguation.</p>
      <p>
        To overcome this problem, we propose, in this paper, a supervised approach
for sentiment analysis using frame semantics and lexical resources such as
BabelNet2 [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] to extract semantic features from reviews. We experiment and evaluate
our proposed approach with a movie reviews dataset. We perform a semantic
incorporation through replacement and augmentation into Nave Bayes (NB)
model training. Our results show that combining our semantic features with
unigrams slightly outperforms the baseline model trained from unigrams only.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Related Work</title>
      <p>
        Several approaches have been proposed to solve polarity detection problem
within movie reviews ranging from supervised approaches [10], unsupervised
approaches [
        <xref ref-type="bibr" rid="ref6 ref7">6, 7, 12, 14</xref>
        ] to hybrid ones [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <p>
        The supervised approaches use a wide range of features and labeled data for
training sentiment classi ers. For instance, Pouransari and Ghili [10] applied
the bag of by supervised ones. Hence, few hybrid approaches, that combine both
supervised and unsupervised methods, emerged. For instance, Maas et al. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]
proposed a model that uses a mix of unsupervised and supervised techniques
to learn word vectors capturing semantic term-document information as well as
rich sentiment content in movie reviews domain.
      </p>
      <p>
        All works mentioned above concentrate on the use of two types of features;
n-grams features and lexicon-based features, for sentiment analysis. However, it
has been argued that sentiment in text is not always associated with individual
words, but instead, through relations and dependencies between words, which
often formulate sentiment [13]. Therefore, a new type of features for sentiment
analysis has been explored called semantic features aiming to handle meanings
and semantics which are crucial for understanding sentiment. In this direction,
some works start to emerge. Maas et al. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], for instance, presented a model to
capture both semantic and sentiment similarities among words. The semantic
component of their model learns word vectors via an unsupervised
probabilistic model of documents. In the same context, Mukherjee et al. [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] proposed to
incorporate the word knowledge through Wikipedia to retrieve relevant
opinionated text. To this end, the authors suggested a weakly supervised approach to
sentiment classi cation of movie reviews. The weak supervision comes from the
usage of resources like WordNet, POS-Tagger and sentiment lexicons.
1 http://sentic.net/
2 http://babelnet.org/
      </p>
      <p>
        While they intend to extract semantics, all the proposed approaches su er
from the lack of handling anaphora resolution and word sense disambiguation.
Usage of simple lexicon at the nal stage for polarity detection also decreases
its accuracy. To overcome this problem, Recupero et al. [
        <xref ref-type="bibr" rid="ref4">4, 11</xref>
        ] developed Sentilo
an unsupervised domain-independent system based on sentic computing [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] and
performs sentiment analysis by hybridizing natural language processing
techniques and semantic web technologies. Following this trend, our work tends to
be placed where both semantic frames and lexical resources such as BabelNet
will be employed to extract semantic features from microblogs that lead to more
accurate sentiment analysis models.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Semantic Sentiment Analysis of Movie Reviews</title>
      <p>3.1</p>
      <p>
        Data Description
We use a long text corpora refers to movie reviews. The movie reviews dataset
is a subset of the IMDB movie reviews corpus [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] which is publicly available on
Kaggle3. The labeled dataset is selected for sentiment analysis task. The
sentiment of reviews is binary, meaning the IMDB rating &lt; 5 results in a sentiment
score of 0 (negative), and rating &gt;= 7 have a sentiment score of 1 (positive). The
binarity is given with the reviews in term of labels; "positive" and "negative".
No individual movie has more than 30 reviews. The selected subset consists of
3750 reviews collected from the IMBD movie review site and polarity labeled
at the document level, 1820 for positive class and 1920 for negative class. This
forms our gold standard dataset for movie reviews sentiment analysis.
3.2
      </p>
      <p>Data Preprocessing
For our dataset, we performed a preprocessing step to clean up the data. Data
preprocessing consists of three steps:
1. tokenization; we segment text by splitting it by spaces and punctuation
marks, and form a bag of words.
2. removal of unnecessary punctuation like ' !', ' ?', etc. as they do not provide
any substantial information;
3. removal of HTML tags like '&lt;br&gt;' by using simple regular expressions
matching to remove these HTML tags from the text.
4. removing stop words from the text using Stanford NLP stop word list4.
3 https://www.kaggle.com/deepmatrix/imdb-5000-movie-dataset
4 https://github.com/stanfordnlp/CoreNLP/blob/master/data/edu/stanford/
nlp/patterns/surface/stopwords.txt
3.3</p>
      <p>
        Feature Extraction
We use a variety of features for our classi cation experiments. For the baseline,
we use n-grams features. However, in our approach, we focus on identifying new
sets of features to be added to the trained model for sentiment classi cation.
Therefore, we investigate a novel set of features derived from word's semantics,
expressed in term of semantic frames and lexical resources such as BabelNet. To
this end, we leveraged Framester5 a wide coverage hub of linguistic linked data
standardized using frame semantics [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
n-gram features n-gram model is a typical way to numerically represent texts.
To identify a set of useful n-grams, we rst remove stop words. Then, we tokenize
text while assuring that short forms such as "don0t", "I0ll", "she0d", . . . will
remain as one word. Afterward, we calculate the total word counts for each
word across all reviews. As the total number of words in the dictionary was huge
(more than 160.000), we took only the 50.000 most frequent words according to
their occurrence. That ensured that we remove most of the misspelled words.
Also, words which occurred only once in the dataset would contribute nothing
to the classi er.
      </p>
      <p>TF.IDF features While n-gram model concentrates more on higher frequency
parts of the review, it completely ignores the portions which might be less
frequent but have more signi cance for the overall polarity of the review. To
overcome this shortcoming of n-gram model, we feature representation of words
using TF.IDF. The feature representation for this model is similar to the unigram
model except that we use TF.IDF values for each word instead of their frequency
counts.</p>
      <p>Semantic features The semantic features that we extracted correspond to the
semantic frames and the BabelNet synsets returned by Framester for each movie
review.</p>
      <p>
        { BabelNet synsets are sets of synonyms in di erent languages grouped by
BabelNet which is an encyclopedic dictionary that provides concepts and named
entities lexicalized in many languages and connected with large amounts of
semantic relations, automatically created by linking Wikipedia6 to
WordNet7 [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
{ Semantic Frames are a collection of facts that specify "characteristic
features, attributes, and functions of a denotatum, and its characteristic
interactions with things necessarily or typically associated with it [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]."
We propose two di erent methods to incorporate semantic features into the
classi er.
5 http://lipn.univ-paris13.fr/framester/en/wfd_html/
6 http://www.wikipedia.org/
7 http://wordnetweb.princeton.edu/perl/webwn
{ Semantic replacement: In this method, we replace all n-grams in movie
reviews with their corresponding BabelNet synsets or semantic frames.
{ Semantic augmentation: This method augments the original n-grams
feature space with the semantic features as additional features for the classi er
training in three di erent ways: i) augment the original n-grams with
semantic frames, ii) augment with BabelNet synsets, and iii) augment with both
semantic frames and BabelNet synsets . The size of the vocabulary in this
case is enlarged by the introduced semantic features.
3.4
      </p>
      <p>Binary Classi cation Polarity
The overall task in this paper is for binary classi cation polarity of movie reviews
as negative or positive. Therefore, for this task we build a sentiment classi er
using Naive Bayes (NB) method.</p>
      <p>To implement this BN classi er, we use the following standard bag-of-features
model. Let ff1; : : : ; fkg be a prede ned set of k features that can appear in
a movie review. Each feature fi could be expressed in term of frequency or
TF.IDF. Let wi(r) be the function representing how fi occurs in the movie
review r. Then, each review is represented by the following review vector: !r :=
(w1(r); w2(r); : : : ; wk(r)).</p>
      <p>Our task of polarity detection is to assign to a given review m the sentiment
s = argmaxsP (s n r). We derive NB classi er by rst observing that by Bayes'
rule:</p>
      <p>P (s n r) =</p>
      <p>P (s)P (r n s)</p>
      <p>P (r)
where P (r) plays no role in selecting s . To estimate the term P (s n r), Naive
Bayes decomposes it by assuming the fi's are conditionally independent given
r's class:</p>
      <p>PNB(s n r) =</p>
      <p>P (s)(Qik=1 P (fi n s)ni(r))</p>
      <p>P (r)
We implement our BN classi er in JAVA using an open source code8.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Evaluation Results</title>
      <p>In this section, we evaluate the integration of semantic features on binary polarity
detection and present the obtained results on our movie reviews dataset and their
derivations that led to 7 datasets in total. We then compare these results with
those obtained using unigram features (the baseline features).</p>
      <p>Our goal for these experiments is then two-fold. First, we aim to evaluate
whether our training data with labels derived from frame semantics and lexical
resource BabelNet is useful for training sentiment classi ers for social media.
8 https://github.com/ptnplanet/Java-Naive-Bayes-Classifier/tree/master/
src/main/java/de/daslaboratorium/machinelearning/classifier
Second, we want to evaluate the e ectiveness of the semantic features for
sentiment analysis in user-generated data. How useful are the semantic features on
movie reviews texts? How much gain do we get from these features?</p>
      <p>For our set of experiments, we use NB trained from word unigrams as a
baseline model, for each derived dataset. Then, we incorporate the semantic
features into NB by either replacing the original bag-f-words feature space or
augmenting into it. For each dataset, we train two Bayes classi ers, which use
di erent features: unigram features and TF.IDF features.</p>
      <p>For each dataset, we perform a 10-cross validation and report results averaged
over 10 runs using F 1 measure.</p>
      <p>Table 1 shows F 1 measures with bag-of-word (BOW) model (unigram model)
and TF.IDF model, of our sentiment classi cation using unigrams as baseline
and the other combinations of semantic features with replacement (i) BabelNet
synsets (BNS), (ii) semantic frames (SF), (iii) BabelNet synsets and semantic
frames (BNS+SF) and augmentation (i) unigrams and BabelNet synsets, ii)
unigrams and semantic frames, iii) unigrams, BabelNet synsets and semantic
frames).</p>
      <p>Features
unigrams
BabelNet synsets
Semantic Frames</p>
      <p>BNS+SF
unigrams+BNS
unigrams+SF
unigrams+BNS+SF</p>
      <p>TF.IDF BOW
79:56 79:97
79:27 80.64
78:97 78:30
79:48 79:81
79:57 79:69
79:57 79:79
79.65 79:65</p>
      <p>According to the results shown in Table 1, the incorporation of semantic
features slightly outperforms the unigrams baselines in the two training model.
The gain is small and that something we expected as this dataset is of a speci c
domain and the extracted semantic features are not able to well represent each
object.
5</p>
    </sec>
    <sec id="sec-5">
      <title>Conclusion</title>
      <p>In this paper, we presented a supervised approach for sentiment polarity
detection in movie reviews using semantic features. We de ned semantic features
in term of semantic frames and BabelNet synsets extracted with the linguistic
linked data Framester. We explored two di erent approaches for incorporating
them into sentiment analysis; with replacement and augmentation. Then, we
trained a sentiment classi er that is able to determine positive and negative
sentiments of reviews. The classi er is based on the multinomial Naive Bayes
classi er that uses n-grams and TF.IDF models.</p>
      <p>As future work, we plan to model the problem of sentiment analysis in social
media as multi-class classi cation problem where we classify the sentiment in
more than binary classes like "Happy", "Bored", "Afraid", etc. Furthermore, we
plan to remodel this problem as a regression problem where we can predict the
degree of a nity for the review instead of a simple negative/positive class. As
well as, we plan to perform more experiments on di erent type of user-generated
data other than movie reviews, namely tweets, and blogs.</p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgments</title>
      <p>This work has been supported by Sardinia Regional Government (P.O.R. Sardegna
F.S.E. Operational Programme of the Autonomous Region of Sardinia,
European Social Fund 2014-2020 - Axis IV Human Resources, Objective l.3, Line of
Activity l.3.1.).
10. Pouransari, H. and Ghili, S.: Deep Learning for Sentiment Analysis of Movie
Reviews. From https://cs224d.stanford.edu/reports/PouransariHadi.pdf, 2014.
11. Recupero, D.R., Presutti, V., Consoli, S., Gangemi, A., Giovanni, A. and Nuzzolese,
G.: Sentilo: Frame-Based Sentiment Analysis. Journal of Cognitive Computation,
Volume 7, number 2, pp. 211-225, 2015.
12. Rothfels,J. and Tibshirani, J.: Unsupervised sentiment classi cation of English
movie reviews using automatic selection of positive and negative sentiment items.</p>
      <p>Technical report, Stanford University, 2010.
13. Saif, H., M., He, Fernandez, Y. and Alani, H.: Contextual semantics for
sentiment analysis of Twitter. In proceedings of Journal of Information Processing and
Management, volume 52(1), pp.5-19, 2016.
14. Zagibalov, T. and Carroll, J.: Automatic seed word selection for unsupervised
sentiment classi cation of Chinese text. In Proceedings of the 22nd International
Conference on Computational Linguistics, Volume 1, pp. 1073-1080. Association for
Computational Linguistics, 2008.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Alan</surname>
            ,
            <given-names>K:</given-names>
          </string-name>
          <string-name>
            <surname>Natural Language Semantics</surname>
          </string-name>
          ,
          <source>Blackwell Publishers Ltd, Oxford, ISBN 0- 631-19296-4</source>
          , pp.
          <fpage>251</fpage>
          ,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Cambria</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Grassi</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hussain</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Havasi</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Sentic computing for social media marketing</article-title>
          .
          <source>Journal of Multimed Tools Appl</source>
          ,
          <volume>59</volume>
          (
          <issue>2</issue>
          ), pp.
          <fpage>55777</fpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Gangemi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Alam</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Asprino</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Presutti</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Recupero</surname>
            ,
            <given-names>D.R.</given-names>
          </string-name>
          :
          <article-title>Framester: A Wide Coverage Linguistic Linked Data Hub</article-title>
          .
          <source>In Proceedings of EKAW</source>
          <year>2016</year>
          , pp.
          <fpage>239</fpage>
          -
          <lpage>254</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Gangemi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Presutti</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Recupero</surname>
            ,
            <given-names>D.R.</given-names>
          </string-name>
          :
          <article-title>Frame-Based Detection of Opinion Holders and Topics: A Model and a Tool</article-title>
          .
          <source>Journal IEEE Comp. Int. Mag</source>
          ,
          <volume>9</volume>
          (
          <issue>1</issue>
          ), pp.
          <fpage>20</fpage>
          -
          <lpage>30</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Maas</surname>
            ,
            <given-names>A.L.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Daly</surname>
            ,
            <given-names>R.E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Peter</surname>
            ,
            <given-names>P. T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Huang</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Ng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            and
            <surname>Potts</surname>
          </string-name>
          , Ch.:
          <article-title>Learning Word Vectors for Sentiment Analysis</article-title>
          .
          <source>In proceeding of ACL</source>
          . pp.
          <fpage>142</fpage>
          -
          <lpage>150</lpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Momtazi</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Fine-grained German Sentiment Analysis on Social Media</article-title>
          .
          <source>In Proceedings of the Eight International Conference on Language Resources and Evaluation</source>
          ,
          <source>LREC'12</source>
          , pp.
          <fpage>23</fpage>
          -
          <lpage>25</lpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Mukherjee</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Bhattacharyya</surname>
          </string-name>
          , P.:
          <article-title>WikiSent: Weakly Supervised Sentiment Analysis through Extractive Summarization with Wikipedia</article-title>
          .
          <source>In proceedings of ECML/PKDD</source>
          <year>2012</year>
          , pp.
          <fpage>774</fpage>
          -
          <lpage>793</lpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Navigli</surname>
            ,,
            <given-names>R.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Ponzetto</surname>
            ,
            <given-names>S.P.:</given-names>
          </string-name>
          <article-title>BabelNet: The automatic construction, evaluation and application of a wide-coverage multilingual semantic network</article-title>
          .
          <source>Journal of Articial Intelligence</source>
          <volume>193</volume>
          (
          <year>2012</year>
          ), pp.
          <fpage>217250</fpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Pang</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lee</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Vaithyanathan</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Thumbs up? Sentiment Classi cation using Machine Learning Techniques</article-title>
          .
          <source>In Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP)</source>
          , Philadelphia,
          <year>July 2002</year>
          , pp.
          <fpage>79</fpage>
          -
          <lpage>86</lpage>
          .Association for Computational Linguistics,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>