Building of Informatics, Technology and Science
Vol 6 No 4 (2025): March 2025

Perbandingan Algoritma NBC Dan SVM Untuk Melakukan Analisis Sentimen Terhadap PP NO.82 Tahun 2021

Rani, Arum Mustika (Unknown)
Hendrastuty, Nirwana (Unknown)



Article Info

Publish Date
27 Feb 2025

Abstract

Government Regulation (PP) No. 82/2021, which regulates the payment of pensions and allowances for Constitutional and Supreme Court Justices, has sparked public debate, especially after allegations of significant cuts to the Supreme Court's budget. This issue raises concerns regarding policy transparency, making it important to analyze public sentiment towards this PP. This study uses two sentiment analysis methods, namely Naïve Bayes Classifier (NBC) and Support Vector Machine (SVM), to evaluate public opinion based on data from Twitter. The dataset consists of 2,719 tweets that have gone through preprocessing stages, such as cleansing, stemming, and using SMOTE techniques, with 70% data division for training and 30% for model testing. This study tests the performance of NBC and SVM through four scenarios: (1) without stemming and without SMOTE, (2) without stemming with SMOTE, (3) with stemming without SMOTE, and (4) with stemming and SMOTE. The results show that SVM has a more stable performance than NBC in all scenarios. In the scenario without stemming and without SMOTE, both models recorded 100% accuracy, but NBC failed to detect positive sentiment accurately. When SMOTE was applied without stemming, NBC's accuracy decreased to 97%, while SVM still achieved a perfect accuracy of 100%. In the scenario with stemming without SMOTE, NBC recorded 97% accuracy, while SVM reached 99%. With the application of SMOTE and stemming, NBC accuracy decreased to 95%, while SVM again recorded a perfect accuracy of 100%. This study concludes that SVM is the best method for sentiment analysis of PP No. 82 of 2021, especially in scenarios with stemming and SMOTE, providing important insights into public opinion and confirming the superiority of SVM in sentiment classification related to public policy.

Copyrights © 2025






Journal Info

Abbrev

bits

Publisher

Subject

Computer Science & IT

Description

Building of Informatics, Technology and Science (BITS) is an open access media in publishing scientific articles that contain the results of research in information technology and computers. Paper that enters this journal will be checked for plagiarism and peer-rewiew first to maintain its quality. ...