Social media is a place for people to convey opinions, and also criticism. The social media that is often used by Indonesian people to express their opinions is Twitter. Twitter can be a forum for Indonesian people to express their opinions and aspirations on certain matters, such as policies made by the government. One of the policies that has sparked public discussion on social media Twitter is increasing cigarettes tax by an average of 10% starting in 2023. This policy has drawn pros and cons from the public, therefore an analysis of public sentiment regarding the cigarette tax increase policy can be carried out. This study will analyze public sentiment contained in the tweets of Twitter users about the increase cigarette tax into the classification of positive and negative sentiments. The execution process is implemented in Google Colaboratory with the Naive Bayes Classifier algorithm. Processes in the sentiment analysis which include data collection, manual labeling, text preprocessing, TF-IDF weighting, data balancing with the Synthetic Minority Oversampling Technique (SMOTE), data validation using k-fold cross validation, and test the classification results with the confusion matrix. The best accuracy results of 74% were obtained by using the data balance SMOTE results with a comparison of training data: test data of 90%:10%, text preprocessing, TF-IDF weighting, and use Multinomial Naive Bayes. The highest cross-validation score obtained was 78% with an average of 73%. Based on these results, the Naive Bayes Classifier is quite good as an alternative for sentiment analysis.
Copyrights © 2023