YouTube comments contain user opinions that can be used to gauge public response to technology product review videos. However, the large number of comments makes manual analysis inefficient. Therefore, this study aims to classify sentiment toward the IQOO 15 review video on the Gadgetin YouTube channel using the Naive Bayes algorithm in RapidMiner. Data was obtained through a crawling process using the YouTube Data API on Google Colab, which was then saved in CSV format, yielding a total of 2,495 comments. After scraping, the dataset was reduced to 1,853 comments, and after preprocessing, it was further reduced to 1,798. The research stages included data cleaning, labeling into several classes such as positive, negative, and neutral, text preprocessing, model training, and model testing. Text preprocessing was performed using the “Process Documents from Data” operator, which included tokenization, case transformation, stopword filtering, and finally, filtering tokens by length. The trained Naive Bayes model was then applied to the test data, which was subsequently evaluated to assess accuracy, classification error, recall, precision, and the confusion matrix, using an 80:20 split between training and test data. The test results showed an accuracy of 93.00% and a classification error of 7.00%. The results show that the method used can be applied to sentiment classification for social media comments, although errors still occur in some comments with ambiguous contexts.
Copyrights © 2026