Analisa Sentimen Masyarakat Naiknya Bahan Pokok Menggunakan Algoritma Teks Mining Dan TF-IDF
Abstract
Twitter is one of the social media used by the public to express opinions on news that is often discussed. Various opinions were expressed by the public on Twitter social media, including expressing opinions and complaints regarding the increase in basic commodities. Staples are people's basic needs in everyday life. Rising prices of basic commodities are a problem that society often faces. Therefore, the government must take steps to reduce the increase in prices of basic commodities, such as strengthening market control and regulation, increasing agricultural production, and providing subsidies to people who cannot afford it. This research aims to measure public sentiment regarding the increase in basic commodities for the community and it is hoped that it can become a benchmark for government parties related to the increase in basic commodities, so that it does not affect inflation and the stability of the community's economy. This research was carried out by taking 100 data from Twitter using crawling techniques and processing 50 data using TF-IDF weighting. Then the data was processed using text mining and a word weighted search was carried out using the Term Frequency Inverse Document Frequency (TF-IDF) algorithm. The results of this research showed that the percentage of public sentiment towards the increase in basic commodities with positive sentiment was 24.2414% and negative was 75.7586%.
References
D. Rifaldi, Abdul Fadlil, and Herman, “Teknik Preprocessing Pada Text Mining Menggunakan Data Tweet ‘Mental Health,’” Decod. J. Pendidik. Teknol. Inf., vol. 3, no. 2, pp. 161–171, 2023, doi: 10.51454/decode.v3i2.131.
D. Safryda Putri and T. Ridwan, “Analisis Sentimen Ulasan Aplikasi Pospay Dengan Algoritma Support Vector Machine,” J. Ilm. Inform., vol. 11, no. 01, pp. 32–40, 2023, doi: 10.33884/jif.v11i01.6611.
G. H. Setiawan and I. M. B. Adnyana, “Improving Helpdesk Chatbot Performance with Term Frequency-Inverse Document Frequency (TF-IDF) and Cosine Similarity Models,” J. Appl. Informatics Comput., vol. 7, no. 2, pp. 252–257, 2023, doi: 10.30871/jaic.v7i2.6527.
N. Silalahi and Guidio Leonarde Ginting, “Rekomendasi Berita Berkaitan dengan Menerapkan Algoritma Text Mining dan TF-IDF,” Bull. Comput. Sci. Res., vol. 3, no. 4, pp. 276–282, 2023, doi: 10.47065/bulletincsr.v3i4.266.
A. Setiawan and R. R. Suryono, “Analisis Sentimen Ibu Kota Nusantara menggunakan Algoritma Support Vector Machine dan Naïve Bayes,” Edumatic J. Pendidik. Inform., vol. 8, no. 1, pp. 183–192, 2024, doi: 10.29408/edumatic.v8i1.25667.
G. Airlangga, “Comparative Analysis of NLP Techniques for Hate Speech Classification in Online Communications,” G-Tech J. Teknol. Terap., vol. 8, no. 1, pp. 674–683, 2024, doi: 10.33379/gtech.v8i1.3959.
W. Ahmed, N. Semary, K. Amin, and M. Adel Hammad, “Sentiment Analysis on Twitter Using Machine Learning Techniques and TF-IDF Feature Extraction: A Comparative Study,” IJCI. Int. J. Comput. Inf., vol. 10, no. 3, pp. 52–57, 2023, doi: 10.21608/ijci.2023.236052.1128.
O. N. Julianti, N. Suarna, and W. Prihartono, “Penerapan Natural Language Processing Pada Analisis Sentimen Judi Online Di Media Sosial Twitter,” JATI (Jurnal Mhs. Tek. Inform., vol. 8, no. 3, pp. 2936–2941, 2024, doi: 10.36040/jati.v8i3.9613.
N. Nurwanda, N. Suarna, and W. Prihartono, “Penerapan Nlp (Natural Language Processing) Dalam Analisis Sentimen Pengguna Telegram Di Playstore,” JATI (Jurnal Mhs. Tek. Inform., vol. 8, no. 2, pp. 1841–1846, 2024, doi: 10.36040/jati.v8i2.8469.
E. Edwar, I. G. A. N. R. Semadi, M. Samsudin, and I. K. Dharmendra, “Perbandingan Metode Seleksi Fitur Pada Analisis Sentimen (Studi Kasus Opini PILKADA DKI 2017),” INFORMATICS Educ. Prof. J. Informatics, vol. 8, no. 1, p. 11, 2023, doi: 10.51211/itbi.v8i1.2408.
R. C. Rivaldi and T. D. Wismarini, “Analisis Sentimen Pada Ulasan Produk Dengan Metode Natural Language Processing (NLP) (Studi Kasus Zalika Store 88 Shopee),” J. Ilm. Elektron. DAN Komput., vol. 17, no. 1, pp. 120–128, 2024.
O. Manullang and C. Prianto, “Analisis Sentimen dalam Memprediksi Hasil Pemilu Presiden dan Wakil Presiden : Systematic Literature Review,” J. Inform. dan Teknol. Komput. ( J-ICOM), vol. 4, no. 2, pp. 104–113, 2023, doi: 10.55377/j-icom.v4i2.7723.
A. S. Pamungkas and N. Cahyono, “Analisis Sentimen Review ChatGPT di Play Store menggunakan Support Vector Machine dan K-Nearest Neighbor,” Edumatic J. Pendidik. Inform., vol. 8, no. 1, pp. 1–10, 2024, doi: 10.29408/edumatic.v8i1.24114.
M. D. Bimantara and I. Zufria, “Text Mining Sentiment Analysis on Mobile Banking Application Reviews using TF-IDF Method with Natural Language Processing Approach,” JINAV J. Inf. Vis., vol. 5, no. 1, pp. 115–123, 2024, doi: 10.35877/454ri.jinav2772.
M. Das, S. Kamalanathan, and P. Alphonse, “A Comparative Study on TF-IDF feature weighting method and its analysis using unstructured dataset,” CEUR Workshop Proc., vol. 2870, pp. 98–107, 2021.
K. Chouhan et al., “Sentiment Analysis with Tweets Behaviour in Twitter Streaming API,” Comput. Syst. Sci. Eng., vol. 45, no. 2, pp. 1113–1128, 2023, doi: 10.32604/csse.2023.030842.
R. Olusegun, T. Oladunni, H. Audu, Y. A. O. Houkpati, and S. Bengesi, “Text Mining and Emotion Classification on Monkeypox Twitter Dataset: A Deep Learning-Natural Language Processing (NLP) Approach,” IEEE Access, vol. 11, no. March, pp. 49882–49894, 2023, doi: 10.1109/ACCESS.2023.3277868.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Analisa Sentimen Masyarakat Naiknya Bahan Pokok Menggunakan Algoritma Teks Mining Dan TF-IDF
Pages: 73-79
Copyright (c) 2025 Weno Syechu

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).











