JURIKOM (Jurnal Riset Komputer)
Vol 10, No 2 (2023): April 2023

Analisis Sentimen HateSpeech pada Pengguna Layanan Twitter dengan Metode Naïve Bayes Classifier (NBC)

Murni Murni (Universitas Ahmad Dahlan, Yogyakarta)
Imam Riadi (Universitas Ahmad Dahlan, Yogyakarta)
Abdul Fadlil (Universitas Ahmad Dahlan, Yogyakarta)



Article Info

Publish Date
30 Apr 2023

Abstract

In January 2023, Twitter users experienced a significant increase of 27.4% compared to the previous year. The social media platform Twitter is commonly used to share various types of information. One type of information frequently shared by users is Hate Speech. Hate Speech involves the dissemination of messages that nurture feelings of hatred and hostility towards specific individuals or groups, including ethnicity, religion, race, and other categories. Forms of Hate Speech encompass insults, defamation, blasphemy, provocation, incitement, and the spread of fake news. In order to address the potential for division and threats to Indonesia's unity, sentiment analysis capable of categorizing tweets as Hate Speech or Non-Hate Speech is necessary. This research aims to conduct sentiment analysis on Hate Speech tweets posted by Twitter users using the Naïve Bayes Classifier method. The dataset consists of 5000 samples processed using the Python programming language. Data processing stages involve preprocessing (including case folding, tokenization, stopword removal, normalization, and stemming), labeling, and assigning word weights (Term Weighting) using the Term Frequency (TF) and Inverse Document Frequency (IDF) methods. The data is then divided into training and testing sets, with three different data splits: 70% training and 30% testing, 30% training and 70% testing, and 50% training and 50% testing. Evaluation using the Confusion Matrix yields the highest accuracy of 81%, precision of 81%, recall of 100%, and F1-Score of 90% in the 70% training and 30% testing data split.

Copyrights © 2023






Journal Info

Abbrev

jurikom

Publisher

Subject

Computer Science & IT Control & Systems Engineering Electrical & Electronics Engineering

Description

JURIKOM (Jurnal Riset Komputer) membahas ilmu dibidang Informatika, Sistem Informasi, Manajemen Informatika, DSS, AI, ES, Jaringan, sebagai wadah dalam menuangkan hasil penelitian baik secara konseptual maupun teknis yang berkaitan dengan Teknologi Informatika dan Komputer. Topik utama yang ...