Abstract

Sentiment analysis is a technique of analyzing text to classify its emotion into positive, negative, or neutral sentiments. The main purpose of this study is to use sentiment analysis to seek Indonesian opinions about the chief of the Indonesian National Police. The dataset obtained from Twitter contains opinions toward the police chief from 20th August until 30th August 2022. Sentiment analysis can be done by using machine learning. Unfortunately, each machine learning algorithm performs differently depending on the data. This performance led to the issue of confusion in picking the best machine learning model to perform sentiment analysis, especially for unseen data. Therefore, ensemble learning is needed to combine multiple machine learning models. Bagging-based and Boosting-based ensemble learning have different algorithms. In order to get a high-performance model, Bagging-based and Boosting-based ensemble models can be combined as one model. This work proposed a second-level ensemble model called a multi-level ensemble model for sentiment analysis. It combines Multinomial Naive Bayes, Boosting-based ensemble learning, and Bagging-based ensemble learning. The data is processed using CountVectorizer to convert text into numbers and oversampling to handle imbalanced data. The experimental results show that our proposed model has the best results in terms of accuracy, precision, and F1-score for testing set compared to individual models.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.