Application of The Naive Bayes Classifier Method In The Sentiment Analysis of Twitter User About The Capital City Relocation


  • Syafa’at Adi Nugraha UIN Sunan Kalijaga Yogyakarta
  • Maria Ulfah Siregar UIN Sunan Kalijaga Yogyakarta


Keywords: capital city, movement, naive bayes, TF-IDF, split validation, confusion matrix.


Abstract. The president's official decision regarding the relocation of the capital city, which previously was in Jakarta and will be moved to East Kalimantan, will be a big issue and generate a lot of debate from both the agree and the disagree Indonesian citizen because this project will require a lot of funds and will have massive impacts on various sectors. This study uses 1290 tweet data consisting of 686 negative sentiments and 603 positive sentiments. These data were used as training data to create evaluation models using confusion matrix and split validation techniques. In this study, it is used TF-IDF word-weighted feature extraction with the Naive Bayes method. The result from the experiments, which was carried out on the best accuracy by splitting data 90:10 for training and testing respectively, is 76.74%. The model that has been made is implemented in 1115 test data resulting in 799 negative sentiments and 316 positive sentiments. 


Download data is not yet available.


Bestari, D. P. B., Saptono, R., & Anggrainingsih, R. (2019). ACADEMIC ARTICLES CLASSIFICATION USING NAIVE BAYES CLASSIFIER (NBC) METHOD. ITSMART: Jurnal Teknologi Dan Informasi, 7(2), 74–81. Jurafsky,D & Martin, J. H. (2019). Naive Bayes and Sentiment Classification. In Speech and Language Processing. Setianingrum, A. H., Kalokasari, D. H., & Shofi, I. M. (2017). Implementasi Algoritma Multinomial Naive Bayes Classifier. JURNAL TEKNIK INFORMATIKA, 10(2), 109–118. Taheri, S., & Mammadov, M. (2013). Learning the naive bayes classifier with optimization models. International Journal of Applied Mathematics and Computer Science, 23(4), 787–795. Toun, N. R. (2018). Analisis Kesiapan Pemerintah Provinsi Kalimantan Tengah dalam Wacana Pemindahan Ibu Kota Negara Republik Indonesia ke Kota Palangkaraya. Jurnal Academia Praja, 1(01), 129–148. Untari, D. (2010). Data Mining untuk Menganalisa Prediksi Mahasiswa Berpotensi Non-Aktif Menggunaka Metode Decision Tree C4.5. Fakultas Ilmu Komputer Universitas Dian Nuswantoro. Yahya, H. M. (2018). Pemindahan Ibu Kota Negara Maju dan Sejahtera. 14(01), 21–30.




How to Cite

Nugraha, S. A., & Siregar, . M. U. (2021). Application of The Naive Bayes Classifier Method In The Sentiment Analysis of Twitter User About The Capital City Relocation. Proceeding International Conference on Science and Engineering, 4, 171–175. Retrieved from