A Comparison of Lexicon-Based and ML-Based Sentiment Analysis: Are There Outlier Words?

Siddhant Jaydeep Mahajani, Shashank Srivastava, Alan F. Smeaton
11/10/2023
cs.CL

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Lexicon-based approaches to sentiment analysis of text are based on each word or lexical entry having a pre-defined weight indicating its sentiment polarity. These are usually manually assigned but the accuracy of these when compared against machine leaning based approaches to computing sentiment, are not known. It may be that there are lexical entries whose sentiment values cause a lexicon-based approach to give results which are very different to a machine learning approach. In this paper we compute sentiment for more than 150,000 English language texts drawn from 4 domains using the Hedonometer, a lexicon-based technique and Azure, a contemporary machine-learning based approach which is part of the Azure Cognitive Services family of APIs which is easy to use. We model differences in sentiment scores between approaches for documents in each domain using a regression and analyse the independent variables (Hedonometer lexical entries) as indicators of each word's importance and contribution to the score differences. Our findings are that the importance of a word depends on the domain and there are no standout lexical entries which systematically cause differences in sentiment scores.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mahajani2023comparison,
  title  = {A Comparison of Lexicon-Based and ML-Based Sentiment Analysis: Are There Outlier Words?},
  author = {Siddhant Jaydeep Mahajani and Shashank Srivastava and Alan F. Smeaton},
  year   = {2023},
  eprint = {2311.06221},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.06221v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.06221.svg)](https://codeofpaper.com/paper/2311.06221)

Discussion