Sentiment Analysis about Large-Scale Social Restrictions in Social Media Twitter Using Algoritm K-Nearest Neighbor
Authors:
Open Access
- 17 June 2021
- journal article
- research article
- Published by Sunan Gunung Djati State Islamic University of Bandung in Jurnal Online Informatika
- Vol. 6 (1) , 96-102
Abstract
Sentiment analysis is a data processing to recognize topics that people talk about and their sentiments toward the topics, one of which in this study is about large-scale social restrictions (PSBB). This study aims to classify negative and positive sentiments by applying the K-Nearest Neighbor algorithm to see the accuracy value of 3 types of distance calculation which are cosine similarity, euclidean, and manhattan distance for Indonesian language tweets about large-scale social restrictions (PSBB) from social media twitter. With the results obtained, the K-Nearest Neighbor accuracy by the Cosine Similarity distance 82% at k = 3, K-Nearest Neighbor by the Euclidean Distance with an accuracy of 81% at k = 11 and K-Nearest Neighbor by Manhattan Distance with an accuracy 80% at k = 5, 7, 9, 11, and 13. So, in this study the K-Nearest Neighbor algorithm with the Cosine Similarity Distance calculation gets the highest point.Keywords
This publication has 9 references indexed in Scilit:
- COVID-19 Public Sentiment Insights and Machine Learning for Tweets ClassificationInformation, 2020
- Comparison of Distance Measurement Methods on K-Nearest Neighbor Algorithm For Classification2020
- Sentiment Analysis of Perpustakaan Nasional Republik Indonesia Through Social Media TwitterMATICS: Jurnal Ilmu Komputer dan Teknologi Informasi (Journal of Computer Science and Information Technology), 2020
- Practical Web Scraping for Data Science2018
- Encyclopedia of Machine Learning and Data Mining2017
- Perbandingan Metode Cosine Similarity Dengan Metode Jaccard Similarity Pada Aplikasi Pencarian Terjemah Al-Qur’an Dalam Bahasa IndonesiaJurnal Online Informatika, 2016
- Data Modeling2014
- Mining of Massive Datasets2011
- Data Mining in Agriculture2009