Abstract
Twitter is a popular social media platform where the public is free to comment and write about anything. It is common for people to post comments containing harsh words and even hate speech. The 2019 presidential election in Indonesia generated a significant amount of comments, with some users praising the candidates, others criticizing them, and some even resorting to insults. To extract meaningful information from these comments and classify the text, sentiment analysis is essential. In this research, sentiment analysis involves the process of categorizing textual documents into two classes: negative and positive sentiment. The opinion data was collected from the Twitter social network in the form of tweets related to the 2019 presidential election. The dataset used in the study consisted of 3,337 tweets, which were divided into 70% training data and 30% test data. The training data comprised tweets whose sentiment was already known, serving as a foundation for the model to learn and make predictions. The primary objective of this research is to determine whether the tweets, written in Indonesian, express positive or negative sentiments. The Naive Bayes Classifier algorithm was employed to classify the tweet data. This algorithm is well-suited for text classification tasks due to its simplicity and efficiency in handling large datasets. The classification results on the test data demonstrated that the Naive Bayes Classifier algorithm achieved an overall accuracy of 71%. Specifically, the accuracy for negativesentiment classification was 71%, while the accuracy for positive sentiment classification was 70%. These results indicate that the Naive Bayes Classifier is effective in distinguishing between positive and negative sentiments in tweets related to the presidential election
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.