Abstract
In this present age, everyone uses social media. Whilst ideas spread through these mediums can be colourful, there are certain views of people which are shared with a tone of negativity, mischief and offensiveness to them as well. One of the most used of such social media platforms include Twitter, which is a platform where messages with limited word limit are sent by the people. This present work, thus, is about analysing the polarity of a tweet by using millions of data achieved through Natural Language Processing (NLP). We collected a large dataset of tweets which are marked by levels of polarity from negative to positive. We use Machine Learning algorithms on this dataset to detect the polarity of the tweet. Here we have used Multinomial Naïve-Bayes, Complement Naïve-Bayes and Logistic Regression classifier to find the polarity of tweets. The dataset size is 1.6 million and we got the best result using Logistic Regression. The highest accuracy is 78.05%.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Kharde VA, Sonawane SS (2016) Sentiment analysis of Twitter data: a survey of techniques. In: Proceedings of the international journal of computer applications, pp 0975–8887
Parikh R, Movassate M (2009) Sentiment analysis of user-generated Twitter updates using various classification techniques. CS224N Final Report, nlp.stanford.edu
Davidov D, Rappoport A (2010) Enhanced sentiment learning using Twitter hashtags and smileys. Coling 2010: Poster 241, 249
Krouska A, Troussas C, Virvou M (2017) Comparative evaluation of algorithms for sentiment analysis over social networking services. J Univ Comput Sci 23(8):755–768 submitted: 8/5/17, accepted: 27/8/17, appeared: 28/8/17
Medhat W, Hassan A, Korashy H (2014) Sentiment analysis algorithms and applications: a survey. Ain Shams Eng J 5(4):1093–1113. ISSN 2090–4479
Wilson T, Wiebe J, Hoffman P (2005) Recognizing contextual polarity in phrase level sentiment analysis. ACL
Pradha S, Halgamuge MN, Tran Quoc Vinh N (2019) Effective text data preprocessing technique for sentiment analysis in social media data. In: 2019 11th international conference on knowledge and systems engineering (KSE), pp 1–8. https://doi.org/10.1109/KSE.2019.8919368
Vinodhini G, Chandrasekaran RM (2012) Sentiment analysis and opinion mining: a survey. Int J Adv Res Comput Sci Softw Eng 2(6). ISSN: 2277 128X
Go A, Huang L, Bhayani R (2009) Twitter sentiment analysis. Project Report, standford
Zhang K, Narayanan R (2010) Voice of the customers: mining online customer reviews for product
Ku L-W, Liang Y-T, Chen H, Opinion extraction, summarization and tracking in news and blog corpora. In: AAAI-CAAW”06
Khan K, Baharudin BB, Khan A, Malik F (2010) Automatic extraction of features and opinion oriented sentences from customer reviews. World Acad Sci Eng Technol 62
Kennedy A, Inkpen D (2006) Sentiment classification of movie reviews using contextual valence shifters. Comput Intell 22:110–125
Wiebe JM (2000) Learning subjective adjectives from corpora. In: AAAI
Wilson T, Wiebe J, Hoffmann P (2005) Recognizing contextual polarity in phraselevel sentiment analysis. In HLT/EMNLP
Sentiment140 dataset with 1.6 million tweets. [Online]. Available on: www.kaggle.com/kazanova/sentiment140. Accessed on 24 Sept 2021
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Rakshit, P., Gupta, S., Das, T. (2023). Sentiment Analysis to Find Sentence Polarity on Tweet Data. In: Deva Sarma, H.K., Piuri, V., Pujari, A.K. (eds) Machine Learning in Information and Communication Technology . Lecture Notes in Networks and Systems, vol 498. Springer, Singapore. https://doi.org/10.1007/978-981-19-5090-2_19
Download citation
DOI: https://doi.org/10.1007/978-981-19-5090-2_19
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-19-5089-6
Online ISBN: 978-981-19-5090-2
eBook Packages: EngineeringEngineering (R0)