A Method for Detecting and Analyzing the Sentiment of Tweets Containing Conditional Sentences

  • Huyen Trang Phan
  • Ngoc Thanh Nguyen
  • Van Cuong Tran
  • Dosam HwangEmail author
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 11431)


Society is developing daily, and consequently, the population is more interested in public opinion. Surveys are frequently organized for detecting the attitude as well as the belief of the community in situations and their opinion about the measures or products. Users particularly express their feelings through comments posted on social networks, such as Twitter. Tweet sentiment analysis is a process that automatically detects personal information from the public emotion of the users about the events or products related to them from published tweets. Many studies have solved the sentiment analysis problem with high accuracy for the general tweets. However, these previous studies did not consider or dealt with low performance in case of tweets containing conditional sentences. In this study, we focus on solving the detection and sentiment analysis problem of a specific tweet type that includes conditional sentences. The results show that the proposed method achieves high performance in both the tasks.


Sentiment analysis Conditional sentence Conditional sentence detection 



This research was supported by Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Science, ICT & Future Planning (2017R1A2B4009410).


  1. 1.
    Asghar, M.Z., Khan, A., Ahmad, S., Qasim, M., Khan, I.A.: Lexicon-enhanced sentiment analysis framework using rule-based classification scheme. PLoS One 12(2), e0171649 (2017)CrossRefGoogle Scholar
  2. 2.
    Asghar, M.Z., Kundi, F.M., Ahmad, S., Khan, A., Khan, F.: TSAF: Twitter sentiment analysis framework using a hybrid classification scheme. Expert Syst. 35(1) (2018). Scholar
  3. 3.
    Bakliwal, A., Arora, P., Madhappan, S., Kapre, N., Singh, M., Varma, V.: Mining sentiments from tweets. In: Proceedings of the 3rd Workshop in Computational Approaches to Subjectivity and Sentiment Analysis, pp. 11–18 (2012)Google Scholar
  4. 4.
    Bird, S., Loper, E.: NLTK: the natural language toolkit. In: Proceedings of the ACL 2004 on Interactive Poster and Demonstration Sessions, p. 31. Association for Computational Linguistics (2004)Google Scholar
  5. 5.
    Bora, N.N.: Summarizing public opinions in tweets. Int. J. Comput. Linguist. Appl. 3(1), 41–55 (2012)Google Scholar
  6. 6.
    Dong, L., Wei, F., Tan, C., Tang, D., Zhou, M., Xu, K.: Adaptive recursive neural network for target-dependent Twitter sentiment classification. In: Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Short Papers), vol. 2, pp. 49–54 (2014)Google Scholar
  7. 7.
    Ghiassi, M., Skinner, J., Zimbra, D.: Twitter brand sentiment analysis: a hybrid system using n-gram analysis and dynamic artificial neural network. Expert Syst. Appl. 40(16), 6266–6282 (2013). Scholar
  8. 8.
    Gilbert, C.H.E.: VADER: a parsimonious rule-based model for sentiment analysis of social media text. In: Eighth International Conference on Weblogs and Social Media (ICWSM 2014) (2014). Accessed 20 April 2016
  9. 9.
    Go, A., Bhayani, R., Huang, L.: Twitter sentiment classification using distant supervision. CS224N Project Report, Stanford 1(12) (2009)Google Scholar
  10. 10.
    Hornik, K., Stinchcombe, M., White, H.: Multilayer feedforward networks are universal approximators. Neural Netw. 2(5), 359–366 (1989)CrossRefGoogle Scholar
  11. 11.
    Hu, M., Liu, B.: Mining and summarizing customer reviews. In: Proceedings of the Tenth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 168–177. ACM (2004)Google Scholar
  12. 12.
    Kim, Y.: Convolutional neural networks for sentence classification. arXiv preprint arXiv:1408.5882 (2014)
  13. 13.
    Klambauer, G., Unterthiner, T., Mayr, A., Hochreiter, S.: Self-normalizing neural networks. In: Advances in Neural Information Processing Systems, pp. 971–980 (2017)Google Scholar
  14. 14.
    Liu, B.: Sentiment analysis and opinion mining. Synth. Lect. Hum. Lang. Technol. 5(1), 1–167 (2012)CrossRefGoogle Scholar
  15. 15.
    Mohammad, S.M., Kiritchenko, S., Zhu, X.: NRC-Canada: building the state-of-the-art in sentiment analysis of tweets. arXiv preprint arXiv:1308.6242 (2013)
  16. 16.
    Narayanan, R., Liu, B., Choudhary, A.: Sentiment analysis of conditional sentences. In: Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing, vol. 1, pp. 180–189. Association for Computational Linguistics (2009)Google Scholar
  17. 17.
    Thakkar, H., Patel, D.: Approaches for sentiment analysis on Twitter: a state-of-art study. arXiv preprint arXiv:1512.01043 (2015)
  18. 18.
    Zhang, L., Ghosh, R., Dekhil, M., Hsu, M., Liu, B.: Combining lexicon-based and learning-based methods for twitter sentiment analysis. HP Laboratories, Technical Report HPL-2011 89 (2011)Google Scholar

Copyright information

© Springer Nature Switzerland AG 2019

Authors and Affiliations

  1. 1.Department of Computer EngineeringYeungnam UniversityGyeongsanRepublic of Korea
  2. 2.Faculty of Computer Science and ManagementWroclaw University of Science and TechnologyWroclawPoland
  3. 3.Faculty of Engineering and Information TechnologyQuang Binh UniversityDong HoiVietnam

Personalised recommendations