Penerapan Algoritma Klasifikasi Naïve Bayes Untuk Analisis Sentimen Tentang Pemilu 2024

Authors

  • Yusuf Ramadhan Nasution Universitas Islam Negeri Sumatera Utara
  • Suhardi Suhardi Universitas Islam Negeri Sumatera Utara
  • Ilham Hafiz Satrio Universitas Islam Negeri Sumatera Utara

DOI:

https://doi.org/10.51903/elkom.v17i2.2053

Keywords:

Elections, Sentiment Analysis, Naïve Bayes Classifier, Lexicon-Base, TF-IDF

Abstract

The news about the proposal of the government of the Republic of Indonesia regarding the postponement of the 2024 elections is certainly an interesting discussion. In this research, sentiment analysis will be carried out on the issue of postponing the election. In this study, a dataset obtained using the crawling technique was obtained in the amount of 1280 tweet data about the postponement of the 2024 election. Data labeling in this study uses lexicon-based techniques with Indonesian dictionaries. By applying this technique, the details of the data in the positive class are 67.7%, namely 157 opinion data, and 32.3% negative, namely 75 opinion data. The sentiment classification system's training and test data yield a 9:1 ratio when the Naïve Bayes Classifier method is applied, and word weighting using TF-IDF yields an accuracy value of 91.67%, precision of 90.91%, recall of 100%, and f1-score of 95.24%.

Downloads

Published

2024-12-22

How to Cite

[1]
Yusuf Ramadhan Nasution, Suhardi Suhardi, and Ilham Hafiz Satrio, “Penerapan Algoritma Klasifikasi Naïve Bayes Untuk Analisis Sentimen Tentang Pemilu 2024”, ELKOM, vol. 17, no. 2, pp. 495–502, Dec. 2024.