Sentiment Analysis on tweets using n-grams and lexicon

Authors

  • Muhammad Sanaullah Department of Computer Science, Bahauddin Zakariya University, Multan, 60800, Pakistan
  • Rabea Saleem Department of Computer Science, Air University, Multan, 60000, Pakistan
  • Fatima Riaz Lecturer Computer Science, Higher Education Department, Multan, 60000, Pakistan

DOI:

https://doi.org/10.66108/mna.v4i2.85

Keywords:

Sentiment analysis, n-grams, twitter tweets, lexicon

Abstract

Twitter is serving as micro-blogging platform where freedom is given to user to express their opinion and share information about any subject through short messages known as tweets. Tweet composed of textual data that can be classified into positive, negative or neutral sentiment. This classification is often based on the analysis of n-grams, which involves examining the frequency and combination of words used. This research article presents a technique which filters out the noise from tweets and apply the scoring mechanism to sentiments that assigns the score between -1 and +1. The proposed techniques results are validated by manually scored evaluations for same tweets. Additionally, the study compares the effectiveness of different n-gram techniques for sentiment analysis.

Downloads

Download data is not yet available.

Author Biography

Muhammad Sanaullah, Department of Computer Science, Bahauddin Zakariya University, Multan, 60800, Pakistan

Corresponding Author

Additional Files

Published

2025-08-01

How to Cite

Sanaullah, M., Saleem, R., & Riaz, F. (2025). Sentiment Analysis on tweets using n-grams and lexicon. Machines and Algorithms, 4(2), 84–99. https://doi.org/10.66108/mna.v4i2.85

Issue

Section

Articles

Categories

Most read articles by the same author(s)