Comparison of the TF-IDF Method with the Count Vectorizer to Classify Hate Speech

Hate speech is a form of expression used to spread hatred and commit acts of violence and discrimination against a person or group of people for various reasons. Cases of hate speech are very common in social media, one of which is Twitter. The goal to be achieved is to create a system that can clas...

Full description

Saved in:
Bibliographic Details
Published inEngineering, MAthematics and Computer Science (EMACS) Journal Vol. 5; no. 2; pp. 79 - 83
Main Author Suryaningrum, Kristien Margi
Format Journal Article
LanguageEnglish
Published 31.05.2023
Online AccessGet full text
ISSN2686-2573
2686-2573
DOI10.21512/emacsjournal.v5i2.9978

Cover

Loading…
More Information
Summary:Hate speech is a form of expression used to spread hatred and commit acts of violence and discrimination against a person or group of people for various reasons. Cases of hate speech are very common in social media, one of which is Twitter. The goal to be achieved is to create a system that can classify a tweet on Twitter into hate speech (HS) or non-hate speech (NONHS) classes. The method used is Support Vector Machine by comparing the features of TF-IDF and Count Vectorizer. And the parameters compared are seen from accuracy, precision, recall, and f1-score. Results obtained, overall, by using the TF-IDF feature, the Support Vector Machine algorithm gets high results compared to the Count Vectorizer feature, with an accuracy value of 88.77%, 87.45% precision, 88.77% recall, and f1-score of 87.81%.
ISSN:2686-2573
2686-2573
DOI:10.21512/emacsjournal.v5i2.9978