Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer
Vol 7 No 3 (2023): Maret 2023

Analisis Sentimen Masyarakat terhadap Kebijakan Penghapusan Subsidi BBM pada Media Sosial Twitter menggunakan Algoritma Naive Bayes Classifier dengan Ekstraksi Fitur N-Gram TF-IDF

Yesaya Sergio Vito Putranta (Fakultas Ilmu Komputer, Universitas Brawijaya)
Bayu Rahayudi (Fakultas Ilmu Komputer, Universitas Brawijaya)
Welly Purnomo (Fakultas Ilmu Komputer, Universitas Brawijaya)



Article Info

Publish Date
30 May 2023

Abstract

In early August 2022, Indonesia's Investment Minister, Mr.Bahlil Lahadalia, announced that the skyrocketing fuel prices have caused a national increase in fuel prices, and the difference between the current price and the one listed in the APBN has sparked discussions on removing fuel subsidies to save on the state budget. This has generated both pros and cons among the public, and one of the mediums used to express opinions on this matter is Twitter. Therefore, in this study, the author used the Bernoulli Naive Bayes Classifier classification method, which began with data collection using the Tweepy Library combined with the Twitter API, followed by data preprocessing to, then formed a text classification system with the help of N-Gram TF-IDF feature extraction, and implemented the Bernoulli Naive Bayes Classifier algorithm with the help of the Sklearn Library. With a total of 710 tweet data, divided into 80% training data and 20% test data, and passed through 3 testing scenarios (Unigram, Bigram, and Trigram), the resulting accuracies are 0.69, 0.57, and 0.57, respectively. Thus, it has been proven that the use of Unigram N-Gram TF-IDF combined with the Bernoulli Naive Bayes produces better results, particularly for sentiment analysis research.

Copyrights © 2023






Journal Info

Abbrev

j-ptiik

Publisher

Subject

Computer Science & IT Control & Systems Engineering Education Electrical & Electronics Engineering Engineering

Description

Jurnal Pengembangan Teknlogi Informasi dan Ilmu Komputer (J-PTIIK) Universitas Brawijaya merupakan jurnal keilmuan dibidang komputer yang memuat tulisan ilmiah hasil dari penelitian mahasiswa-mahasiswa Fakultas Ilmu Komputer Universitas Brawijaya. Jurnal ini diharapkan dapat mengembangkan penelitian ...