Journal of Mathematics UNP
Vol 9, No 3 (2024): Journal Of Mathematics UNP

Sentiment Analysis of Indonesian Presidential Candidates in the 2024 Election Using the Naïve Bayes Classifier

El Hakim, Mhd Syofior Rahman (Unknown)



Article Info

Publish Date
01 Oct 2024

Abstract

In 2024, the people of Indonesia actively participated in the democratic process of electing a new president, vice president, and legislative members. This presidential election generated a wide range of public opinions across various social media platforms such as Twitter, Facebook, Instagram, and TikTok. These opinions were characterized by sentiments that were positive, negative, or neutral, directed toward the presidential candidates in the 2024 election. Consequently, this research was conducted to analyze the sentiment toward the presidential candidates based on data from Twitter. The data was gathered through a crawling process using Python with keywords "Anies," "Prabowo," and "Ganjar." After obtaining the data, it underwent cleaning and sentiment labeling using an Indonesian sentiment lexicon called InSet. Subsequently, sentiment classification was performed using the Naïve Bayes algorithm, yielding an average accuracy of 65.96%.

Copyrights © 2024






Journal Info

Abbrev

mat

Publisher

Subject

Computer Science & IT Decision Sciences, Operations Research & Management Mathematics

Description

Journal of Mathematics UNP is a journal to publish article from student researches in UNP Mathematics study program, and we also kindly accept other article from outside of our study program related to Mathematics: consists of publication in Algebra, Analysis, Combinatoric, Geometry, Differential ...