Tokopedia is one of the largest e-commerce platforms in Indonesia, generating a growing number of user reviews that makes manual sentiment analysis inefficient. This study compares the performance of Naïve Bayes and Support Vector Machine (SVM) in classifying sentiment in Tokopedia application reviews. Data were collected using the google-play-scraper library and automatically labeled based on user ratings, with ratings of 1–2 classified as negative and 4–5 as positive. After preprocessing, including case folding, cleaning, tokenization, stopword removal, and stemming using Sastrawi, 1,212 reviews were obtained, comprising 609 negative and 603 positive reviews. Text features were extracted using TF-IDF, and the models were evaluated using 5-fold cross-validation. With default parameters, Naïve Bayes and SVM achieved accuracies of 75.99% and 74.83%, respectively. After GridSearchCV tuning, Naïve Bayes achieved 76.65% accuracy and 73.28% F1-score, while SVM achieved 77.81% accuracy and 76.51% F1-score. These results show that hyperparameter tuning affects model comparison, with tuned SVM slightly outperforming Naïve Bayes.
Copyrights © 2026