Indonesia is a Democrat nation. A general election known as the PEMILU has become a tradition of the nation that is synonymous with political issues and leadership turnover. Social media is one place in expressing the opinions and aspirations of people including politics, Twitter is one of the social media used as a place for politicians including two couples of presidential candidate and vice president of INDONESIA in Campaign to win a vote in the elections of 17 April 2019. This research analyzes public opinion i.e. comments on Twitter accounts consisting of 4000 Indonesian language comments, consisting of 500 positive opinions and 500 negative opinions from each account @jokowi, @KyaiMarufAmin, @prabowo, @sandiuno into two categories of positive and negative opinions by comparing the text classifier model Naïve Bayes and SVM, and the implementation of The PSO algorithm to obtain optimal accuracy results. The results of the study show Prabowo Sandi won the prediction of presidential candidate with the best accuracy result of 77.00% acquired model Naïve Bayes + PSO, and 86.20% acquired model SVM + PSO, with an increase in accuracy 7.5% on model SVM, And 2.1% on the model Naïve Bayes when compared before done optimization with PSO algorithm.
Basari, A. S. H., Hussin, B., Ananta, I. G. P., & Zeniarja, J. (2013). Opinion mining of movie review using hybrid method of support vector machine and particle swarm optimization. Procedia Engineering, 53, 453–462. https://doi.org/10.1016/j.proeng.2013.02.059.
Buntoro, G. A. (2017). Analisis Sentimen Calon Gubernur DKI Jakarta 2017 Di Twitter. Integer Journal Maret, 1(1), 32–41. Retrieved from https://www.researchgate.net/profile/Ghulam_Buntoro/publication/316617194_Analisis_Sentimen_Calon_Gubernur_DKI_Jakarta_2017_Di_Twitter/links/5907eee44585152d2e9ff992/Analisis-Sentimen-Calon-Gubernur-DKI-Jakarta-2017-Di-Twitter.pdf
Dani, W. (2016). PENGERTIAN, FUNGSI DAN SISTEM PEMILIHAN UMUM. Retrieved August 10, 2019, from Komisi Pemilihan Umum Daerah Istimewa Yogyakarta website: https://diy.kpu.go.id/web/2016/12/19/pengertianfungsi-dan-sistem-pemilihan-umum/
Haddi, E., Liu, X., & Shi, Y. (2013). The role of text pre-processing in sentiment analysis. Procedia Computer Science, 17, 26–32. https://doi.org/10.1016/j.procs.2013.05.005
Hadi, A. F., Bagus, D., & Hasan, M. (2017). Text Mining Pada Media Sosial Twitter Studi Kasusϵ: Masa Tenang Pilkada Dki 2017 Putaran 2. Seminar Nasional Matematika Dan Aplikasinya, 21 Oktober 2017 Surabaya, Universitas Airlangga. Retrieved from http://math.fst.unair.ac.id/wpcontent/uploads/2017/10/50-Dimas-Bagus__SistemInformasi_.pdf
Hasan, A., Moin, S., Karim, A., & Shamshirband, S. (2018). Machine Learning-Based Sentiment Analysis for Twitter Accounts. Mathematical and Computational Applications, 23(1), 11. https://doi.org/10.3390/mca23010011
Kristiyanti, D. A. (2015a). Analisis Sentimen Review Produk Kosmetik Melalui Komparasi Feature Selection. Konferensi Nasional Ilmu Pengetahuan Dan Teknologi (KNIT), 2(2), 74–81.
Kristiyanti, D. A. (2015b). Analisis Sentimen Review Produk Kosmetik Menggunakan Algoritma Support Vector Machine Dan Particle Swarm Optimization Sebagai. Seminar Nasional Inovasi & Tren (SNIT) 2015 “Peluang Dan Tantangan Indonesia Dalam Menyikapi Afta 2015,” 134–141. Retrieved from http://lppm.bsi.ac.id/SNIT2015/BidangA/A22-134-141_2015-SNIT-Dinar Ajeng Kristiyanti_ ALGORITMA
SUPPORT VECTOR.pdf
Kristiyanti, D. A., Umam, A. H., Wahyudi, M., Amin, R., & Marlinda, L. (2019). Comparison of SVM Naïve Bayes Algorithm for Sentiment Analysis Toward West Java Governor Candidate Period 2018-2023 Based on Public Opinion on Twitter. 2018 6th International Conference on
Cyber and IT Service Management, CITSM 2018, (Citsm), 1–6. https://doi.org/10.1109/CITSM.2018.8674352
Kristiyanti, D. A., & Wahyudi, M. (2017). Feature selection based on Genetic algorithm, particle swarm optimization and principal component analysis for opinion mining cosmetic product review. 2017 5th International Conference on Cyber and IT Service Management, CITSM 2017.
https://doi.org/10.1109/CITSM.2017.8089278
Lazuardi, G. (2019). Aktivitas Medsos Sebabkan Tensi Panas di Pemilu 2019. Retrieved July 20, 2019, from Tribunnews.com website:https://www.tribunnews.com/nasional/2019/05/21/pengamat-aktivitas- medsos-sebabkan-tensi-panas-di-pemilu-2019