Skip to main content

Opinion Mining to Detect Irony in Twitter Messages in Spanish

  • Conference paper
  • First Online:

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 950))

Abstract

Companies, among other sectors, require that the opinions generated on the web be extracted automatically, obtaining their polarity on products or services, to achieve their objectives. Since the opinions are subjective and unstructured, there are still many problems within this field that must be solved. To mention a few, the problem of ambiguity and the support of languages, directly affect in the time to make the right classification of opinions, because most of the tools used in the processing of texts, they only work well with data in English. With the aim of contributing to the solution of both problems and evaluating the real behavior of sentiment analysis for the Spanish language, a system is proposed that allows determining the positive or negative polarity, trying to detect the irony as a problem of ambiguity. For the classification, a supervised learning method was implemented, with the Naive Bayes algorithm. The evaluation of the results of the classification shows that the problem of detecting ironies in Spanish, using the classical techniques of opinion mining, is not completely resolved. However, we believe that these results can be improved by applying some strategies.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   219.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

Learn about institutional subscriptions

Notes

  1. 1.

    http://www.nltk.org/.

  2. 2.

    http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/.

  3. 3.

    List of words where each one has a numerical value that corresponds to the degree of sentiment whether positive or negative.

  4. 4.

    https://nlp.stanford.edu/software/tokenizer.html.

  5. 5.

    http://treetaggerwrapper.readthedocs.io/en/latest.

  6. 6.

    http://tweepy.readthedocs.io/en/v3.5.0/getting_started.html.

  7. 7.

    https://pandas.pydata.org/.

  8. 8.

    http://www.snowball.tartarus.org/.

  9. 9.

    http://scikit-learn.org/stable/index.html.

References

  1. Appel, O., Chiclana, F., Carter, J., Fujita, H.: A hybrid approach to the sentiment analysis problem at the sentence level. Knowl.-Based Syst. 108, 110–124 (2016). New Avenues in Knowledge Bases for Natural Language Processing

    Article  Google Scholar 

  2. Bouazizi, M., Otsuki, T.: A pattern-based approach for sarcasm detection on Twitter. IEEE Access 4, 5477–5488 (2016). Cited by 7

    Article  Google Scholar 

  3. Charalampakis, B., Spathis, D., Kouslis, E., Kermanidis, K.: A comparison between semi-supervised and supervised text mining techniques on detecting irony in Greek political tweets. Eng. Appl. Artif. Intell. 51, 50–57 (2016). Mining the Humanities: Technologies and Applications

    Article  Google Scholar 

  4. Hemmatian, F., Sohrabi, M.K.: A survey on classification techniques for opinion mining and sentiment analysis. Artif. Intell. Rev. (2017)

    Google Scholar 

  5. Joshi, A., Bhattacharyya, P., Carman, M.J.: Automatic sarcasm detection: a survey. CoRR, abs/1602.03426 (2016)

    Google Scholar 

  6. Joshi, P.: Artificial Intelligence with Python. Packt Publishing, Birmingham (2017)

    Google Scholar 

  7. Kotsiantis, S.B.: Supervised machine learning: a review of classification techniques. Informatika 160, 3–24 (2007)

    MathSciNet  MATH  Google Scholar 

  8. Mantyla, M.V., Graziotin, D., Kuutila, M.: The evolution of sentiment analysis a review of research topics, venues, and top cited papers. Comput. Sci. Rev. 27, 16–32 (2018)

    Article  Google Scholar 

  9. Mukherjee, S., Bala, P.K.: Detecting sarcasm in customer tweets: an NLP based approach. Ind. Manag. Data Syst. 117(6), 1109–1126 (2017). Cited by 0

    Article  Google Scholar 

  10. Madhavi, D., Piryani, R., Singh, V.: Analytical mapping of opinion mining and sentiment analysis research during 2000 to 2015. Inf. Process. Manag. 53(1), 122–150 (2017)

    Article  Google Scholar 

  11. Sun, S., Luo, C., Chen, J.: A review of natural language processing techniques for opinion mining systems. Inf. Fusion 36, 10–25 (2017)

    Article  Google Scholar 

  12. Wicana, S.G., Ibisoglu, T.Y., Yavanoglu, U.: A review on Sarcasm detection from machine-learning perspective. In: 11th IEEE International Conference on Semantic Computing (ICSC), San Diego, CA, 30 January–01 February 2017, pp. 469–476. IEEE Computer Society (2017)

    Google Scholar 

Download references

Acknowledgments

This work has been supported by project “IOTEC: Development of Technological Capacities around the Industrial Application of Internet of Things (IoT)”. 0123_IOTEC_3_E. FEDER Funds. Interreg Spain-Portugal.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Vivian F. López .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Sanjinés, D.E., López, V.F., Gil, A.B., Moreno, M.N. (2020). Opinion Mining to Detect Irony in Twitter Messages in Spanish. In: Martínez Álvarez, F., Troncoso Lora, A., Sáez Muñoz, J., Quintián, H., Corchado, E. (eds) 14th International Conference on Soft Computing Models in Industrial and Environmental Applications (SOCO 2019). SOCO 2019. Advances in Intelligent Systems and Computing, vol 950. Springer, Cham. https://doi.org/10.1007/978-3-030-20055-8_49

Download citation

Publish with us

Policies and ethics