Klasifikasi Sentimen Ulasan pada Layanan Service HP dengan TF-IDF dan Naive Bayes
DOI:
https://doi.org/10.29407/ba2s1y27Abstract
Penelitian ini bertujuan untuk mengklasifikasikan sentimen ulasan layanan service HP menggunakan metode Naive Bayes dengan pembobotan TF-IDF. Banyaknya ulasan pelanggan serta keterbatasan analisis manual mendorong perlunya metode otomatis untuk mengetahui kecenderungan sentimen pengguna. Data penelitian diperoleh melalui proses scraping sebanyak 747 ulasan menggunakan bahasa pemrograman Python dan library SerpApi. Tahapan penelitian meliputi preprocessing data, pelabelan sentimen menggunakan metode lexicon-based, pembobotan fitur menggunakan TF-IDF, dan klasifikasi menggunakan algoritma Naive Bayes dengan pembagian data sebesar 80% data latih dan 20% data uji. Hasil pengujian menunjukkan bahwa model memperoleh nilai accuracy sebesar 85%, precision tertinggi sebesar 0,91 pada kelas sentimen negatif, recall tertinggi sebesar 0,98 pada kelas sentimen positif, dan F1-Score tertinggi sebesar 0,88. Hasil penelitian menunjukkan bahwa kombinasi TF-IDF dan Naive Bayes mampu mengklasifikasikan sentimen ulasan layanan service HP dengan baik.
Keywords:
Analisis Sentimen, Naive Bayes, TF-IDF, Service HP, Ulasan Pelanggan##plugins.themes.default.displayStats.downloads##
References
[1] Sri Lestanti, Saiful Nur Budiman, and Erwan, “Analisis Sentimen Berdasarkan Hasil
Review Lokasi Google Map Menggunakan Natural Language Toolkit TextBlob dan
Naïve Bayes,” JAMI: Jurnal Ahli Muda Indonesia, vol. 5, no. 2, pp. 114–126, Dec. 2024,
doi: https://doi.org/10.46510/jami.v5i2.311.
[2] N. M. Al Ghazali and Y. Sibaroni, “Sentiment Classification in E-Commerce Using Naïve
Bayes and Combined Lexicon - N-Gram Features,” JIPI (Jurnal Ilmiah Penelitian dan
Pembelajaran Informatika), vol. 10, no. 2, pp. 1257–1271, 2025, doi:
https://doi.org/10.29100/jipi.v10i2.6157.
[3] A. Ardi and Kurniawan, “Optimasi Metode Naïve Bayes Classifier Menggunakan
Pendekatan Term Frequency-Inverse Document Frequency (TF-IDF) Pada Analisis
Sentimen,” JSAI (Journal Scientific and Applied Informatics), vol. 7, no. 3, pp. 458–463,
2024, doi: https://doi.org/10.36085/jsai.v7i3.7153.
[4] S. Samidi and D. Fatmawati, “Sentiment Classification of IT Service Feedback via TFIDF,” CogITo Smart Journal, vol. 10, no. 2, pp. 403–417, 2024, doi:
https://doi.org/10.31154/cogito.v10i2.701.403-417.
[5] L. Zhang, “Features extraction based on Naive Bayes algorithm and TF-IDF for news
classification,” PLoS One, vol. 20, no. 7 July, Jul. 2025, doi:
https://doi.org/10.1371/journal.pone.0327347.
[6] A. D. Meisya Putri, N. Sulistianingsih, and R. Rismayati, “Pengaruh Teknik Representasi
Teks Bag-of-Words dan TF-IDF terhadap Akurasi Klasifikasi Sentimen Teks MultiDomain,” JTIM – Jurnal Teknologi Informasi dan Multimedia, vol. 7, no. 4, pp. 675–688,
2025, doi: https://doi.org/10.35746/jtim.v7i4.756.
[7] R. Maheri, F. N. Salisah, F. Muttakin, and Megawati, “ANALISIS SENTIMEN
ULASAN APLIKASI M-PASPOR MENGGUNAKAN NAIVE BAYES DAN
SUPPORT VECTOR MACHINE,” JIPI (Jurnal Ilmiah Penelitian dan Pembelajaran
Informatika), vol. 10, no. 1, pp. 448–458, 2025, doi:
https://doi.org/10.29100/jipi.v10i1.5826.
[8] S. A. Helmayanti, F. Hamami, and R. Y. Fa’rifah, “PENERAPAN ALGORITMA TFIDF DAN NAÏVE BAYES UNTUK ANALISIS SENTIMEN BERBASIS ASPEK
ULASAN APLIKASI FLIP PADA GOOGLE PLAY STORE,” Jurnal Indonesia :
Manajemen Informatika dan Komunikasi, vol. 4, no. 3, pp. 1822–1834, 2023, doi:
https://doi.org/10.35870/jimik.v4i3.415.
[9] T. Setyani, K. Sari, H. N. Heidy, and R. R. Suryono, “Analisis Sentimen Pengguna
Aplikasi Jamsostek Mobile Berdasarkan Ulasan Google Play Store Menggunakan
Algoritma Support Vector Machine dan Naive Bayes,” vol. 6, no. 1, pp. 373–384, 2026,
doi: https://doi.org/10.57152/malcom.v6i1.2526.
[10] S. M. Permataning Tyas, B. S. Rintyarna, and W. Suharso, “The Impact of Feature
Extraction to Naïve Bayes Based Sentiment Analysis on Review Dataset of Indihome
Services,” Digital Zone: Jurnal Teknologi Informasi dan Komunikasi, vol. 13, no. 1, pp.
1–10, 2022, doi: https://doi.org/10.31849/digitalzone.v13i1.9158.
Downloads
Published
Issue
Section
License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Copyright on any article is retained by the author(s).
- The author grants the journal, right of first publication with the work simultaneously licensed under a Creative Commons Attribution 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.
- The article and any associated published material is distributed under the Creative Commons Attribution-ShareAlike 4.0 International License