Cross-Language Approach for Sentiment Classification in Brazilian Portuguese with ConvNets

  • Rafael P. da Silva
  • Flávio A. O. Santos
  • Filipe B. do Nascimento
  • Hendrik T. Macedo
Conference paper
Part of the Advances in Intelligent Systems and Computing book series (AISC, volume 738)


Sentiment Analysis (SA) employs Natural Language Processing (NLP) techniques in order to infer emotional states and subjective information contained in texts. Generally, previously trained machine learning models are used to identify the polarity of an opinion concerning a given target (e.g. film, book, etc.). Therefore, engineering features in order to create the training set for the learning model is a central task in SA problems. Additionally, finding properly labeled datasets for NLP models containing non-English text is a big challenge. Thus, we aim to contribute to SA in texts written in Brazilian Portuguese (PtBR) by validating the use of ConvNet, a convolutional neural network (CNN) that works with character-level inputs, in analyzing the polarity of product reviews in PtBR. The results obtained from our experiments confirm the model’s efficiency.


Sentiment analysis Natural language processing Convolutional neural network Character level representation Linguistic corpus for PtBR 



The authors thank CAPES and FAPITEC-SE for the financial support [Edital CAPES/FAPITEC/SE No 11/2016—PROEF, Processo 88887.160994/2017-00] and LCAD-UFS for providing a cluster for the execution of the experiments. The authors also thank FAPITEC-SE for granting a graduate scholarship to Flávio Santos, CNPq for granting a graduate scholarship to Filipe Nascimento and a productivity scholarship to Hendrik Macedo [DT-II, Processo 310446/2014-7]


  1. 1.
    M. Araújo, J. Reis, P. Gonçalves, A. Pereira, F. Benevenuto, Uma abordagem multilíngue para análise de sentimentos, in Proceedings of the Brazilian Workshop on Social Network Analysis and Mining (BraSNAM), 2015Google Scholar
  2. 2.
    M. Araújo, J.C. dos Reis, A.C.M. Pereira, F. Benevenuto, An evaluation of machine translation for multilingual sentence-level sentiment analysis, in SAC (ACM, New York, 2016), pp. 1140–1145Google Scholar
  3. 3.
    A. Balahur, J.M. Perea-Ortega, Sentiment analysis system adaptation for multilingual processing: the case of tweets. Inf. Process. Manag. 51(4), 547–556 (2015)Google Scholar
  4. 4.
    A. Balahur, M. Turchi, Multilingual sentiment analysis using machine translation? in WASSA ’12 Proceedings of the 3rd Workshop in Computational Approaches to Subjectivity and Sentiment Analysis, 2012Google Scholar
  5. 5.
    A. Balahur, M. Turchi, R. Steinberger, Resource creation and evaluation for multilingual sentiment analysis in social media texts, in Proceedings of the Language Resources and Evaluation Conference (2001), pp. 4265–4269Google Scholar
  6. 6.
    C. Banea, R. Mihalcea, Multilingual subjectivity analysis using machine translation. Proceedings of EMNLP ’08 Proceedings of the Conference on Empirical Methods in Natural Language Processing, Pages 127–135, Honolulu, Hawaii, USA, October 25–27, 2008Google Scholar
  7. 7.
    C. Banea, R. Mihalcea, J. Wiebe, Multilingual subjectivity: are more languages better? in Proceedings of the 23rd International Conference on Computational Linguistics (Coling 2010) (2010), pp. 28–36Google Scholar
  8. 8.
    S. Chitra, B. Madhusudhanan, G.R. Sakthidharan, P. Saravanan, Density based active self training for cross lingual sentiment classification. Lect. Notes Electr. Eng. 279, 1225–1234 (2014)CrossRefGoogle Scholar
  9. 9.
    C.N. dos Santos, M. Gatti, Deep convolutional neural networks for sentiment analysis of short texts, in Coling-2014 (2014), pp. 69–78Google Scholar
  10. 10.
    C.N. Dos Santos, B. Zadrozny, Learning character-level representations for part-of-speech tagging, in Proceedings of the 31st International Conference on International Conference on Machine Learning , vol. 32 (2014)Google Scholar
  11. 11.
    A.G.L. dos Santos, K. Becker, V. Moreira, Mineração de emoções em textos multilíngues usando um corpus paralelo. SBBD Proc. 49(79), 6–9 (2014)Google Scholar
  12. 12.
    N. Li, S. Zhai, Z. Zhang, B. Liu, Structural correspondence learning for cross-lingual sentiment classification with one-to-many mappings. CoRR (2016). abs/1611.0Google Scholar
  13. 13.
    B. Lu, C. Tan, C. Cardie, B.K. Tsou, Joint bilingual sentiment classification with unlabeled parallel corpora, in Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, vol. 1(1) (2011), pp. 320–330Google Scholar
  14. 14.
    A. Mogadala, A. Rettinger, Bilingual word embeddings from parallel and non-parallel corpora for cross-language text classification, in Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (2016), pp. 692–702Google Scholar
  15. 15.
    P. Norvig, A unified theory of inference for text understanding, Ph.D. thesis, EECS Department, University of California, Berkeley, 1987Google Scholar
  16. 16.
    J. Pan, G.-R. Xue, Y. Yu, Y. Wang, Cross-lingual sentiment classification via bi-view non-negative matrix tri-factorization, in Advances in Knowledge Discovery and Data Mining (Springer, Berlin, 2011), pp. 289–290Google Scholar
  17. 17.
    P. Prettenhofer, B. Stein, Cross-language text classification using structural correspondence learning, in ACL ’10 Proceedings of the 48th Annual Meeting of the Association for Computational Linguistics (2010), pp. 1118–1127Google Scholar
  18. 18.
    P. Singhal, P. Bhattacharyya, Sentiment analysis and deep learning: a survey (2016). Available online at:
  19. 19.
    J. Steinberger, P. Lenkova, M. Kabadjov, R. Steinberger, E. Van Der Goot, Multilingual entity-centered sentiment analysis evaluated by parallel corpora, in Recent Advances in Natural Language Processing (2011), pp. 770–775Google Scholar
  20. 20.
    J. Steinberger, M. Ebrahim, M. Ehrmann, A. Hurriyetoglu, M. Kabadjov, P. Lenkova, R. Steinberger, H. Tanev, S. Vázquez, V. Zavarella, Creating sentiment dictionaries via triangulation. Decis. Support Syst. 53(4), 689–694 (2012)CrossRefGoogle Scholar
  21. 21.
    X. Wan, Co-training for cross-lingual sentiment classification, in ACL ’09 Proceedings of the Joint Conference of the 47th Annual Meeting of the ACL and the 4th International Joint Conference on Natural Language (2009), pp. 235–243Google Scholar
  22. 22.
    X. Zhang, Y. LeCun, Text understanding from scratch. APL Mater. 3(5), 011102 (2016)Google Scholar
  23. 23.
    X. Zhang, J. Zhao, Y. LeCun, Character-level convolutional networks for text classification, in NIPS Proceedings (2015), pp. 1–9Google Scholar
  24. 24.
    X. Zhou, X. Wan, J. Xiao, Cross-lingual sentiment classification with bilingual document representation learning, in Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (ACL 2016) (2016), pp. 1403–1412Google Scholar

Copyright information

© Springer International Publishing AG, part of Springer Nature 2018

Authors and Affiliations

  • Rafael P. da Silva
    • 1
  • Flávio A. O. Santos
    • 2
  • Filipe B. do Nascimento
    • 1
  • Hendrik T. Macedo
    • 2
  1. 1.Departamento de ComputaçãoUniversidade Federal de SergipeSão CristóvãoBrazil
  2. 2.Programa de Pós-Graduação em Ciência da ComputaçãoUniversidade Federal de SergipeSão CristóvãoBrazil

Personalised recommendations