- El-Cezeri
- Cilt: 10 Sayı: 3
- Comparison of SVM and Naïve Bayes Algorithms with InNER enriched to Predict Hate Speech
Comparison of SVM and Naïve Bayes Algorithms with InNER enriched to Predict Hate Speech
Authors : Isnen Hadi Al Ghozali, Arif Pirman, Indra Indra
Pages : 600-611
Doi:10.31202/ecjse.1325078
View : 31 | Download : 22
Publication Date : 2023-09-30
Article Type : Research
Abstract :Hate speech is one of the negative sides of social media abuse. Hate speech can be classified into insults, defamation, unpleasant acts, provoking, inciting, and spreading fake news (hoax). The purpose of this study is to compare the SVM and Naïve Bayes methods with feature extraction in the form of Indonesian NER (InNER) for detecting hate speech. To obtain the best model, this study applies five steps: a) data collection; b) data preprocessing; c) feature engineering; d) model development; and e) evaluating and comparing models. In this study, we have collected 7100 tweets as an initial dataset. After manual annotation, this study produced 1681 tweets: 548 insult tweets, 288 blasphemy tweets, 272 provocative tweets, and 573 neutral tweets. This study use two Python libraries that accommodate NER in Indonesian, namely the NLTK library and the Polyglot library. Based on the results of the evaluation of the proposed model, model 5, which develops the SVM algorithm with the NLTK library, is the best model proposed. This model shows an accuracy score of 92.88% with a precision of 0.93, a recall of 0.93, and an F-1 score of 0.92.Keywords : SVM, Naive Bayes, NER, Hate Speech