Jurnal Nasional Teknologi Informasi dan Aplikasinya
Vol 2 No 2 (2024): JNATIA Vol. 2, No. 2, Februari 2024

Analisis Sentimen Twitter Pengaruh Tokoh Politik dengan Menggunakan Metode K-Nearest Neighbor

Palguna, I Made Surya Adi (Unknown)
Sanjaya ER, Ngurah Agus (Unknown)



Article Info

Publish Date
30 Jan 2024

Abstract

Understanding public sentiment towards political figures is crucial for gauging their influence and impact. This study employs sentiment analysis to analyze Twitter data and assess the influence of political figures. Sentiment analysis, a computational exploration of expressed opinions, emotions, and sentience, allows insights into public perception on a large scale. This work leverages the K-Nearest Neighbor (KNN) algorithm, which classifies data based on its similarity to existing data points. Tweets undergo preprocessing, followed by TF-IDF weighting for keyword importance and cosine similarity calculations for comparing tweets to a labeled training dataset. By analyzing the nearest neighbors, sentiment values are assigned. The KNN model achieved an accuracy of 89%, a precision of 85%, and a recall of 88%, demonstrating its effectiveness in assessing sentiment and influence through Twitter data. This research contributes to the field of political communication by offering a robust method for analyzing public opinion and gauging the influence of political figures on social media platforms. Keywords: Sentiment Analysis, K-Nearest Neighbor, TF-IDF, Cosine Similarity

Copyrights © 2024






Journal Info

Abbrev

jnatia

Publisher

Subject

Computer Science & IT

Description

JNATIA (Jurnal Nasional Teknologi Informasi dan Aplikasinya) merupakan jurnal yang berfokus pada teori, praktik dan metodologi seluruh aspek teknologi di bidang ilmu dan teknik komputer serta ide-ide produktif dan inovatif terkait teknologi baru dan sistem informasi. Jurnal ini memuat makalah ...