Skip to main content

Applying Basic Features from Sentiment Analysis for Automatic Irony Detection

  • Conference paper
  • First Online:
Pattern Recognition and Image Analysis (IbPRIA 2015)

Part of the book series: Lecture Notes in Computer Science ((LNIP,volume 9117))

Included in the following conference series:

Abstract

People use social media to express their opinions. Often linguistic devices such as irony are used. From the sentiment analysis perspective such utterances represent a challenge being a polarity reversor (usually from positive to negative). This paper presents an approach to address irony detection from a machine learning perspective. Our model considers structural features as well as, for the first time, sentiment analysis features such as the overall sentiment of a tweet and a score of its polarity. The approach has been evaluated over a set classifiers such as: Naïve Bayes, Decision Tree, Maximum Entropy, Support Vector Machine, and for the first time in irony detection task: Multilayer Perceptron. The results obtained showed the ability of our model to distinguish between potentially ironic and non-ironic sentences.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Given a set of tweets the task consist in determining whether the user has expressed a positive, negative or neutral sentiment; more information is available at: http://alt.qcri.org/semeval2015/task11/.

  2. 2.

    Using emoticons, with few characters is possible to display one’s true feeling; sometimes they are virtually required under certain circumstances in text-based communication, where the absence of some kind of cues can hide what was originally intended to be humorous, sarcastic, ironic, and often negative [14].

  3. 3.

    Feature previously applied by Reyes et al. [10].

  4. 4.

    The complete list of words can be downloaded from http://users.dsic.upv.es/grupos/nle.

  5. 5.

    http://www.ark.cs.cmu.edu/TweetNLP/.

  6. 6.

    https://codegoogle.com/p/ws4j/. This module allows to calculate a set of seven different similarity measures.

  7. 7.

    DAL is composed by 8,000 English words, distributed in three categories: Activation, refers to the degree of response, either passive or active, that humans exhibit in an emotional state; Imagery, quantifies how easy or difficult is to form a mental picture for a given word; and Pleasantness, quantifies the degree of pleasure suggested by a word.

  8. 8.

    http://ww.cs.uic.edu/~liub/FBS/.

  9. 9.

    http://github.com/abromberg/sentiment_analysis/blob/master/AFINN/AFINN-111.txt.

  10. 10.

    We used Weka toolkit’s version of each classifier available at http://www.cs.waikato.ac.nz/ml/weka/downloading.html.

  11. 11.

    Default parameters for each algorithm were used.

  12. 12.

    We performed experiments using each similarity measure of the WordNet::Similarity module. Due to lack of space, we report only the results with highest classification rates. The similarity measures are described in detail in [9].

References

  1. Alba-Juez, L.: Irony and the other off record strategies within politeness theory. J. Engl. Am. Stud. 16, 13–24 (1995)

    Google Scholar 

  2. Attardo, S.: Irony markers and functions: towards a goal-oriented theory of irony and its processing. Rask 12, 3–20 (2000)

    Google Scholar 

  3. Barbieri, F., Saggion, H.: Modelling Irony in Twitter, pp. 56–64. Association for Computational Linguistics (2014)

    Google Scholar 

  4. Bosco, C., Patti, V., Bolioli, A.: Developing corpora for sentiment analysis: the case of irony and senti-tut. IEEE Intell. Syst. 28(2), 55–63 (2013)

    Article  Google Scholar 

  5. Buschmeier, K., Cimiano, P., Klinger, R.: An impact analysis of features in a classification approach to irony detection in product reviews. In: Proceedings of the 5th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis, pp. 42–49. Association for Computational Linguistics (2014)

    Google Scholar 

  6. Ghosh, A., Li, G., Veale, T., Rosso, P., Shutova, E., Reyes, A., Barnden, J.: Sentiment analysis of figurative language in twitter. In: Proceedings of the International Workshop on Semantic Evaluation (SemEval-2015), Co-located with NAACL and *SEM (2015)

    Google Scholar 

  7. Hu, M., Liu, B.: Mining and summarizing customer reviews. In: Proceedings of the Tenth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD 2004, pp. 168–177(2004)

    Google Scholar 

  8. Maynard, D., Greenwood, M.: Who cares about sarcastic tweets? investigating the impact of sarcasm on sentiment analysis. In: Proceedings of the Ninth International Conference on Language Resources and Evaluation (LREC-2014), European Language Resources Association (ELRA) (2014)

    Google Scholar 

  9. Pedersen, T., Patwardhan, S., Michelizzi, J.: Wordnet::similarity: measuring the relatedness of concepts. In: Proceedings of the 9th National Conference on Artificial Intelligence, pp. 1024–1025. Association for Computational Linguistics

    Google Scholar 

  10. Reyes, A., Rosso, P., Veale, T.: A multidimensional approach for detecting irony in twitter. Lang. Resour. Eval. 47(1), 239–268 (2013)

    Article  Google Scholar 

  11. Wallace, B.C.: Computational irony: a survey and new perspectives. Artif. Intell. Rev. 43, 467–483 (2013)

    Article  Google Scholar 

  12. Wang, A.P.: #irony or #sarcasm – a quantitative and qualitative study based on twitter. In: Proceedings of the PACLIC: the 27th Pacific Asia Conference on Language, Information, and Computation, pp. 349–356. Department of English, National Chengchi University (2013)

    Google Scholar 

  13. Whissell, C.: Using the revised dictionary of affect in language to quantify the emotional undertones of samples of natural languages. Psychol. Rep. 2, 509–521 (2009)

    Article  Google Scholar 

  14. Wolf, A.: Emotional expression online: gender differences in emoticon use. CyberPsychology Behavior 3, 827–833 (2000)

    Article  Google Scholar 

Download references

Acknowledgments

The National Council for Science and Technology (CONACyT Mexico) has funded the research work of the first author (Grant No. 218109/313683, CVU-369616). The research work of third author was carried out in the framework of WIQ-EI IRSES (Grant No. 269180) within the FP 7 Marie Curie, DIANA-APPLI CATIONS (TIN2012-38603-C02-01) projects and the VLC/CAMPUS Microcluster on Multimodal Interaction in Intelligent Systems.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Irazú Hernández-Farías .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

Hernández-Farías, I., Benedí, JM., Rosso, P. (2015). Applying Basic Features from Sentiment Analysis for Automatic Irony Detection. In: Paredes, R., Cardoso, J., Pardo, X. (eds) Pattern Recognition and Image Analysis. IbPRIA 2015. Lecture Notes in Computer Science(), vol 9117. Springer, Cham. https://doi.org/10.1007/978-3-319-19390-8_38

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-19390-8_38

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-19389-2

  • Online ISBN: 978-3-319-19390-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics