Abstract
Sarcasm is a nuanced form of speech extensively employed in various online platforms such as social networks, micro-blogs etc. and sarcasm detection refers to predicting whether the text is sarcastic or not. Detecting sarcasm in text is among the major issues facing sentiment analysis. In the last decade, researchers have been working rigorously on sarcasm detection so as to amend the performance of automatic sentiment analysis of data. In this paper, a supervised machine learning (ML) approach, which learns from different categories of features and their combinations, is presented. These feature sets are employed to classify instances as sarcastic and not-sarcastic using different classifiers. In particular, the impact of sarcastic patterns based on POS tags has been investigated and the results show that they are not useful as a feature set for detecting sarcasm as compared to content words and function words. Also, the Naïve Bayes classifier outperforms all other classifiers used.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Du, J., Xu, H., Huang, X.: Box office prediction based on microblog. Expert Syst. Appl. 41(4), 1680–1689 (2014)
Coussement, K., Van den Poel, D.: Improving customer attrition prediction by integrating emotions from client/company interaction emails and evaluating multiple classifiers. Expert Syst. Appl. 36(3), 6127–6134 (2009)
Li, Y.-M., Shiu, Y.-L.: A diffusion mechanism for social advertising over microblogs. Decis. Support Syst. 54(1), 9–22 (2012)
Ramteke, J., Shah, S., Godhia, D., Shaikh, A.: Election result prediction using Twitter sentiment analysis. In: International Conference on Inventive Computation Technologies (ICICT), vol. 1, pp. 1–5. IEEE (2016)
Oraby, S., Harrison, V., Reed, L., Hernandez, E., Riloff, E., Walker, M.: Creating and characterizing a diverse corpus of sarcasm in dialogue. arXiv preprint arXiv:1709.05404 (2017)
Tsur, O., Davidov, D., Rappoport, A.: ICWSM-a great catchy name: semi-supervised recognition of sarcastic sentences in online product reviews. In: ICWSM, pp. 162–169 (2010)
González-Ibánez, R., Muresan, S., Wacholder, N.: Identifying sarcasm in Twitter: a closer look. In: Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies: Short Papers-Volume 2, pp. 581–586. Association for Computational Linguistics (2011)
Riloff, E., Qadir, A., Surve, P., De Silva, L., Gilbert, N., Huang, R.: Sarcasm as contrast between a positive sentiment and negative situation. In: Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pp. 704–714 (2013)
Liebrecht, C.C., Kunneman, F.A., van Den Bosch, A.P.J.: The perfect solution for detecting sarcasm in tweets# not (2013)
Littlestone, N.: Learning quickly when irrelevant attributes abound: a new linear-threshold algorithm. Mach. Learn. 2(4), 285–318 (1988)
Justo, R., Corcoran, T., Lukin, S.M., Walker, M., Torres, M.I.: Extracting relevant knowledge for the detection of sarcasm and nastiness in the social web. Knowl.-Based Syst. 69, 124–133 (2014)
Maynard, D.G., Greenwood, M.A.: Who cares about sarcastic tweets? Investigating the impact of sarcasm on sentiment analysis. In: LREC 2014 Proceedings. ELRA (2014)
Khattri, A., Joshi, A., Bhattacharyya, P., Carman, M.: Your sentiment precedes you: using an author’s historical tweets to predict sarcasm. In: Proceedings of the 6th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis, pp. 25–30 (2015)
Rajadesingan, A., Zafarani, R., Liu, H.: Sarcasm detection on twitter: a behavioral modeling approach. In: Proceedings of the Eighth ACM International Conference on Web Search and Data Mining, pp. 97–106. ACM (2015)
Bouazizi, M., Ohtsuki, T.O.: A pattern-based approach for sarcasm detection on Twitter. IEEE Access 4, 5477–5488 (2016)
Mukherjee, S., Bala, P.K.: Sarcasm detection in microblogs using Naïve Bayes and fuzzy clustering. Technol. Soc. 48, 19–27 (2017)
Schürer, S.C., Muskal, S.M.: Kinome-wide activity modeling from diverse public high-quality data sets. J. Chem. Inf. Model. 53(1), 27–38 (2013)
Kohavi, R.: A study of cross-validation and bootstrap for accuracy estimation and model selection. In: IJCAI, vol. 14, no. 2, pp. 1137–1145 (1995)
Church, K.W.: A stochastic parts program and noun phrase parser for unrestricted text. In: Proceedings of the Second Conference on Applied Natural Language Processing, pp. 136–143. Association for Computational Linguistics (1988)
Biber, D., Johansson, S., Leech, G., Conrad, S., Finegan, E.: Longman grammar of spoken and written English, pp. 89–110 (1999)
Murphy, K.P.: Naive Bayes classifiers. University of British Columbia, vol. 18 (2006)
Hsu, C.-W., Chang, C.-C., Lin, C.-J.: A practical guide to support vector classification, pp. 1–16 (2003)
Breiman, L.: Random forests. Mach. Learn. 45(1), 5–32 (2001)
Islam, M.J., Wu, Q.J., Ahmadi, M., Sid-Ahmed, M.A.: Investigating the performance of naive-bayes classifiers and k-nearest neighbor classifiers. In: International Conference on Convergence Information Technology, pp. 1541–1546. IEEE (2007)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2020 Springer Nature Switzerland AG
About this paper
Cite this paper
Thakur, S., Singh, S., Singh, M. (2020). Detecting Sarcasm in Text. In: Abraham, A., Cherukuri, A., Melin, P., Gandhi, N. (eds) Intelligent Systems Design and Applications. ISDA 2018 2018. Advances in Intelligent Systems and Computing, vol 941. Springer, Cham. https://doi.org/10.1007/978-3-030-16660-1_97
Download citation
DOI: https://doi.org/10.1007/978-3-030-16660-1_97
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-16659-5
Online ISBN: 978-3-030-16660-1
eBook Packages: Intelligent Technologies and RoboticsIntelligent Technologies and Robotics (R0)