Sentiment Analysis of Public Opinion on the 2024 Presidential Election in Indonesia Using Twitter Data with the K-NN Method
DOI:
https://doi.org/10.61978/digitus.v1i1.27Keywords:
K-NN, Election, Sentiment Analyst, TwitterAbstract
Twitter is often used by the public as a platform to speak and express their opinions, especially in the context of the 2024 Presidential Election. Tweets related to the '2024 Presidential Election' can be used as a source of data for social media analysis to determine whether the expressed opinions tend to be positive or negative. The research process involves data collection of tweets, preprocessing, tokenization, class attribute determination, directory filling, sentiment analysis, and classification steps, including testing the value of k and testing the confusion matrix. The research and testing results show that the K-NN method successfully achieves a sentiment classification accuracy rate of 86.48%.