Copyright © 2026 Authors retain the copyright of this article. This article is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
@article{209753,
author = {Dr. Yogesh V Somwanshi and Mr. Dinesh Kumar Singh},
title = {Comparative Evaluation of Classical Machine Learning Models for Sentiment Classification of Posts on X (Formerly Twitter)},
journal = {International Journal of Innovative Research in Technology},
year = {2026},
volume = {13},
number = {5},
pages = {3344-3348},
issn = {2349-6002},
url = {https://ijirt.org/article?manuscript=209753},
abstract = {X (formerly Twitter) produces large volumes of short, informal text whose sentiment must be classified automatically for brand monitoring, public-opinion analysis and moderation. This paper evaluates three classical machine learning classifiers Multinomial Naive Bayes (MNB), Logistic Regression (LR) and a Linear Support Vector Machine (SVM) trained on TF-IDF word uni-gram and bi-gram features for three-class sentiment classification (negative, neutral, positive) on the TweetEval sentiment benchmark (45,615 training, 2,000 validation and 12,284 test posts). A social-media-specific preprocessing pipeline normalizes mentions, URLs, hashtags, emojis and elongated words. On the test set, LR achieved the highest macro-F1 (56.80%) and accuracy (58.17%), closely followed by the Linear SVM (56.54% macro-F1, 57.84% accuracy), while MNB obtained 54.36% macro-F1. MNB trained in about 0.01 s, the SVM in 1.21 s and LR in 5.71 s, and inference for all three took under 0.01 s per 1,000 posts. The results provide a reproducible, low-cost baseline for later comparison with neural and transformer-based models.},
keywords = {Sentiment analysis, text classification, machine learning, X (Twitter), TF-IDF, logistic regression, support vector machine, Naive Bayes, TweetEval.},
month = {October},
}
Submit your research paper and those of your network (friends, colleagues, or peers) through your IPN account, and receive 800 INR for each paper that gets published.
Join NowNational Conference on Sustainable Engineering and Management - 2024 Last Date: 15th March 2024
Submit inquiry