Application of Naïve Bayes Algorithm Variations On Indonesian General Analysis Dataset for Sentiment Analysis

Umar, Najirah and Nur, Adnan (2022) Application of Naïve Bayes Algorithm Variations On Indonesian General Analysis Dataset for Sentiment Analysis. JURNAL RESTI, 6 (4). pp. 585-590. ISSN 2580-0760

[img] Text
4179-Article Text-13351-1-10-20220822 Resti.pdf

Download (309kB)
Official URL: https://jurnal.iaii.or.id/index.php/RESTI/article/...

Abstract

Indonesian General Analysis Dataset is a dataset sourced from social media twitter by using keywords in the form of conjunctions to get a dataset that does not only focus on a particular topic. The use of Indonesian language datasets with general topics can be used to test the accuracy of the classification model so as to provide additional reference in choosing the right methods and parameters for sentiment analysis. One of the algorithms which in several studies produces the highest level of accuracy is naive Bayes which has several variations. This study aims to obtain the method with the best accuracy from the naive Bayes variation by setting the minimum and maximum document frequency parameters on the Indonesian General Analysis Dataset for sentiment analysis. The naive Bayes classifier variations used include Bernoulli naive Bayes, gaussian naive Bayes, complement naive Bayes and multinomial naive Bayes. The research stage begins with downloading the dataset. Preprocessing becomes the next stage which consists of tokenizing, stemming, converting abbreviations and eliminating conjunctions. In the preprocessed data, feature extraction is carried out by converting the dataset into vectors and applying the TF-IDF method before entering the sentiment analysis classification stage. Tests in this study were carried out by applying the minimum document frequency (min-df) and maximum document frequency (max-df) for each variation of naive Bayes to obtain the appropriate parameters. The test uses k-fold cross validation of the dataset to divide the training data and sentiment analysis test data. The next confusion matrix is made to evaluate the level of accuracy.

Item Type: Article
Uncontrolled Keywords: ;
Subjects: 600 Technology and Applied Sciences
Depositing User: Najirah Umar
Date Deposited: 10 Oct 2022 04:32
Last Modified: 10 Oct 2022 04:32
URI: http://repo.handayani.ac.id/id/eprint/183

Actions (login required)

View Item View Item