• P-ISSN 0974-6846 E-ISSN 0974-5645

Indian Journal of Science and Technology


Indian Journal of Science and Technology

Year: 2023, Volume: 16, Issue: 10, Pages: 764-774

Original Article

Aspect Based Sentiment Analysis and Opinion Mining on Twitter Data Set Using Linguistic Rules

Received Date:04 November 2022, Accepted Date:26 December 2022, Published Date:11 March 2023


Objectives: To propose the most effective machine learning technique for aspect based sentiment analysis of consumer feedback reviews by correlating people’s emotions of different aspects of a product or service with word importance, linguistic rules, tagging, dependency relations and filtering to enhance the classification accuracy and to explore the different machine learning approaches in order to determine their significance and to spark interest in this field of study. Methods: The dataset has been taken from the most popular networking site twitter using twitter API. A total of 33,036 tweets were retrieved for this study from16 July 2022 to 16 Sept. 2022, but were only able to include 7570 tweets after data cleaning and then proposes a model named SVMS (SVM using Spacy) for sentiment Analysis. To measure the performance of a particular model, numerous analyses are conducted on the dataset and then the effectiveness of proposed model is compared with 4 basic classifiers LR, NB, RF and SVM. The parameters used in this study are accuracy, precision, recall, and F1 score. Findings: It is found that the Proposed SVMS model shows better results than all other algorithms by having 96% accuracy which is 1% faster than LR, 2% faster than NB, 5% faster than RF, and 4% faster than SVM, 96% precision, 98% recall and 97% F1 score. SVMS is recommended in this research context for the classification of the text and has a great significance for future researchers in sentences and text classification. Novelty: In this paper the performance of sentiment analysis classifiers is evaluated. In addition to general opinions, the work examines specific aspects such as product, quality, service, price, and ease of use. Comparing the proposed model with the existing models, it has been found that it outperformed the other models in most of the aspects.

Keywords: Aspect; Sentiment Analysis; NLP; Spacy; Linguistics


  1. Soni PK, Rambola R. Deep Learning, WordNet, and spaCy based Hybrid Method for Detection of Implicit Aspects for Sentiment Analysis. 2021 International Conference on Intelligent Technologies (CONIT). 2021;p. 1–6. Available from: https://doi.org/10.1109/CONIT51480.2021.9498372
  2. Suhariyanto RA, Sarno R. Aspect Based Sentiment Analysis for Explicit and Implicit Aspects in Restaurant Review using Grammatical Rules. Hybrid Approach, and SentiCircle. 2021;p. 294–305. Available from: https://doi:org/10.22266/ijies2021.1031.27
  3. Aljedaani W, Krasniqi R, Aljedaani S, Mkaouer MW, Ludi S, Al-Raddah K. If online learning works for you, what about deaf students? Emerging challenges of online learning for deaf and hearing-impaired students during COVID-19: a literature review. Universal Access in the Information Society. 2022;25. Available from: http://dx.doi.org/10.1007/s10209-022-00897-5
  4. Priyanka K, Janakiraman S, Priya MD. WITHDRAWN: Aspect level Sentimental Analysis of Opinion Mining – A Review. Materials Today: Proceedings. 2021. Available from: https://doi.org/10.1016/j.matpr.2021.02.183
  5. Singh AK, Verma A. An Efficient method for Aspect Based Sentiment Analysis Using SpaCy and Vader. 2021 10th IEEE International Conference on Communication Systems and Network Technologies (CSNT). 2021;p. 130–135. Available from: https://doi.org/10.1109/CSNT51715.2021.9509650
  6. Monica M, Ochani SD, Sawarkar M, Narwane S. A Novel Approach to Handle Class Imbalance in Machine Learning. International Journal of Engineering Research & Technology (IJERT). 2019;8:2278–0181. Available from: https://doi.org/10.17577/IJERTV8IS110174
  7. Sazzed S, Jayarathna S. SSentiA: A Self-supervised Sentiment Analyzer for classification from unlabeled data. Machine Learning with Applications. 2021;4:100026. Available from: https://doi.org/10.1016/j.mlwa.2021.100026
  8. Rupapara V, Rustam F, Shahzad HF, Mehmood A, Ashraf I, Choi GS. Impact of SMOTE on Imbalanced Text Features for Toxic Comments Classification Using RVVC Model. IEEE Access. 2021;9:78621–78634. Available from: https://doi.org/10.1109/ACCESS.2021.3083638
  9. Sazzed S. A Hybrid Approach of Opinion Mining and Comparative Linguistic Analysis of Restaurant Reviews. Proceedings of the Conference Recent Advances in Natural Language Processing - Deep Learning for Natural Language Processing Methods and Applications. 2021;p. 1281–1288. Available from: http://dx.doi.org/10.26615/978-954-452-072-4_144
  10. Vashishtha S, Susan S. Fuzzy Interpretation of Word Polarity Scores for Unsupervised Sentiment Analysis. 2020 11th International Conference on Computing, Communication and Networking Technologies (ICCCNT). 2020. Available from: https://doi.org/10.1109/ICCCNT49239.2020.9225646


© 2023 Ahmad et al. This is an open-access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. Published By Indian Society for Education and Environment (iSee)


Subscribe now for latest articles and news.