Skip to main content

Exploring Emojis for Emotion Recognition in Portuguese Text

  • Conference paper
  • First Online:
Progress in Artificial Intelligence (EPIA 2019)

Abstract

New forms of communication, like emojis, are frequent today in social media. Having in mind their strong connection with expressed emotions, we exploit emojis towards the creation of a model for emotion recognition in Portuguese. We gather short texts from Twitter and follow a traditional text classification task, where emojis are used as labels. After the process of feature engineering, two types of Naive Bayes and SVM classifiers are trained: one for classifying emotion, based on related emojis; another for predicting emojis. Interesting but debatable results were obtained on the former task, while the latter revealed to be more challenging, mainly due to emoji similarity. Yet, this also suggests that we can rely on them as an alternative to manually labelling emotions.

This work was developed in the scope of the SOCIALITE Project (PTDC/EEISCR/2072/2014), co-financed by COMPETE 2020, Portugal 2020 – Operational Program for Competitiveness and Internationalization (POCI), European Union’s ERDF (European Regional Development Fund), and the Portuguese Foundation for Science and Technology (FCT).

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.

    https://scikit-learn.org/.

  2. 2.

    http://www.tweepy.org.

  3. 3.

    https://dev.twitter.com.

  4. 4.

    We used the stopword list in NLTK, https://www.nltk.org.

  5. 5.

    https://radimrehurek.com/gensim/.

References

  1. Alm, C.O., Roth, D., Sproat, R.: Emotions from text: machine learning for text-based emotion prediction. In: Proceedings of the Conference on Human Language Technology and Empirical Methods in Natural Language Processing, pp. 579–586. Association for Computational Linguistics (2005)

    Google Scholar 

  2. Barbieri, F., Anke, L.E., Camacho-Collados, J., Schockaert, S., Saggion, H.: Interpretable emoji prediction via label-wise attention LSTMs. In: Proceedings of 2018 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 4766–4771. ACL Press (2018)

    Google Scholar 

  3. Barbieri, F., Ballesteros, M., Saggion, H.: Are emojis predictable? In: Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Short Papers, Valencia, Spain, pp. 105–111. Association for Computational Linguistics, April 2017

    Google Scholar 

  4. Barbieri, F., et al.: SemEval 2018 task 2: multilingual emoji prediction. In: Proceedings of 12th International Workshop on Semantic Evaluation, pp. 24–33. ACL Press, June 2018

    Google Scholar 

  5. Buechel, S., Hahn, U.: Representation mapping: a novel approach to generate high-quality multi-lingual emotion lexicons. In: Proceedings of the 11th International Conference on Language Resources and Evaluation, LREC 2018, Miyazaki, Japan, pp. 184–191, 7–12 May 2018 (2018)

    Google Scholar 

  6. Ekman, P.: Basic emotions. In: Handbook of Cognition and Emotion, pp. 45–60 (1999)

    Chapter  Google Scholar 

  7. van der Maaten, L., Hinton, G.: Visualizing data using t-SNE. J. Mach. Learn. Res. 9(Nov), 2579–2605 (2008)

    MATH  Google Scholar 

  8. Malheiro, R., Gonçalo Oliveira, H., Gomes, P., Paiva, R.P.: Keyword-based approach for lyrics emotion variation detection. In: 8th International Conference on Knowledge Discovery and Information Retrieval, KDIR 2016 (2016)

    Google Scholar 

  9. Martinazzo, B., Dosciatti, M.M., Paraiso, E.C.: Identifying emotions in short texts for Brazilian Portuguese. In: IV International Workshop on Web and Text Intelligence (WTI 2012), p. 16 (2011)

    Google Scholar 

  10. Mikolov, T., Chen, K., Corrado, G., Dean, J.: Efficient estimation of word representations in vector space. In: Proceedings of Workshop track of the International Conference on Learning Representations (ICLR), Scottsdale, Arizona (2013)

    Google Scholar 

  11. Mohammad, S.M.: Obtaining reliable human ratings of valence, arousal, and dominance for 20,000 English words. In: Proceedings of The 56th Annual Conference of the Association for Computational Linguistics (ACL), Melbourne, Australia. ACL Press (2018)

    Google Scholar 

  12. Mohammad, S.M., Kiritchenko, S.: Using hashtags to capture fine emotion categories from tweets. Comput. Intell. 31(2), 301–326 (2015)

    Article  MathSciNet  Google Scholar 

  13. Nascimento, P., et al.: Análise de sentimento de tweets com foco em notícias. In: Brazilian Workshop on Social Network Analysis and Mining (2012)

    Google Scholar 

  14. Picard, R.W.: Affective computing for HCI. In: HCI, no. 1, pp. 829–833. Citeseer (1999)

    Google Scholar 

  15. Rodrigues, D., Prada, M., Gaspar, R., Garrido, M.V., Lopes, D.: Lisbon Emoji and Emoticon Database (LEED): norms for emoji and emoticons in seven evaluative dimensions. Behav. Res. Methods 50(1), 392–405 (2018)

    Article  Google Scholar 

  16. Russell, J.A.: Affective space is bipolar. J. Pers. Soc. Psychol. 37(3), 345 (1979)

    Article  Google Scholar 

  17. Russell, J.A., Lewicka, M., Niit, T.: A cross-cultural study of a circumplex model of affect. J. Pers. Soc. Psychol. 57(5), 848 (1989)

    Article  Google Scholar 

  18. Silva, M.J., Carvalho, P., Sarmento, L.: Building a sentiment lexicon for social judgement mining. In: Caseli, H., Villavicencio, A., Teixeira, A., Perdigão, F. (eds.) PROPOR 2012. LNCS (LNAI), vol. 7243, pp. 218–228. Springer, Heidelberg (2012). https://doi.org/10.1007/978-3-642-28885-2_25

    Chapter  Google Scholar 

  19. Soares, A.P., Comesaña, M., Pinheiro, A.P., Simões, A., Frade, C.S.: The adaptation of the affective norms for English words (ANEW) for European Portuguese. Behav. Res. Methods 44(1), 256–269 (2012)

    Article  Google Scholar 

  20. Souza, M., Vieira, R.: Sentiment analysis on Twitter data for Portuguese language. In: Caseli, H., Villavicencio, A., Teixeira, A., Perdigão, F. (eds.) PROPOR 2012. LNCS (LNAI), vol. 7243, pp. 241–247. Springer, Heidelberg (2012). https://doi.org/10.1007/978-3-642-28885-2_28

    Chapter  Google Scholar 

  21. Suttles, J., Ide, N.: Distant supervision for emotion classification with discrete binary values. In: Gelbukh, A. (ed.) CICLing 2013. LNCS, vol. 7817, pp. 121–136. Springer, Heidelberg (2013). https://doi.org/10.1007/978-3-642-37256-8_11

    Chapter  Google Scholar 

  22. Tkalčič, M., Košir, A., Tasič, J.F.: Affective recommender systems: the role of emotions in recommender systems. In: Proceedings of RecSys 2011 Workshop Decisions, pp. 9–13. CEUR-WS.org (2011)

    Google Scholar 

  23. Wood, I., Ruder, S.: Emoji as emotion tags for tweets. In: Proceedings of the Emotion and Sentiment Analysis Workshop LREC 2016, Portorož, Slovenia, pp. 76–79 (2016)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Hugo Gonçalo Oliveira .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Duarte, L., Macedo, L., Gonçalo Oliveira, H. (2019). Exploring Emojis for Emotion Recognition in Portuguese Text. In: Moura Oliveira, P., Novais, P., Reis, L. (eds) Progress in Artificial Intelligence. EPIA 2019. Lecture Notes in Computer Science(), vol 11805. Springer, Cham. https://doi.org/10.1007/978-3-030-30244-3_59

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-30244-3_59

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-30243-6

  • Online ISBN: 978-3-030-30244-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics