{'fraction_non_alphanumeric': 0.028518859245630176, 'fraction_numerical': 0.03035878564857406, 'mean_word_length': 5.146892655367232, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Comparing Sentiment Analysis of Indonesian Presidential Election 2019 with Support Vector Machine and K-Nearest Neighbor Algorithm

The purpose of this research is to compare the effectiveness of the Support Vector Machine (SVM) algorithm with the K-Nearest Neighbor (KNN) algorithm in predicting the results of the Indonesian presidential election 2019 based on sentiment analysis on social media (Twitter). The research methodology used includes several stages: preprocessing and weighting using TF-IDF. The SVM algorithm has the highest accuracy compared to the KNN algorithm. The average accuracy of SVM algorithm is 69.27, with the highest accuracy is 76.5%, while the average value of the KNN algorithm is 61.3% with the highest accuracy of 68.3%. The fastest training time is obtained by the KNN algorithm, while the SVM algorithm obtains the fastest testing time. The results of presidential predictions based on positive sentiment, namely candidate number 01 obtained a percentage of 67.98% while the number of positive sentiment predictions from candidate number 02 was 67.79%.