Is ChatGPT a Good Sentiment Analyzer? A Preliminary Study

Zengzhi Wang, Qiming Xie, Yi Feng, Zixiang Ding, Zinong Yang +1 more
4/10/2023
cs.CLcs.AI

No official code found. Best implementation: NUSTM/ChatGPT-Sentiment-Evaluation (54 stars, last commit 2024-09-23).

Abstract

Recently, ChatGPT has drawn great attention from both the research community and the public. We are particularly interested in whether it can serve as a universal sentiment analyzer. To this end, in this work, we provide a preliminary evaluation of ChatGPT on the understanding of \emph{opinions}, \emph{sentiments}, and \emph{emotions} contained in the text. Specifically, we evaluate it in three settings, including \emph{standard} evaluation, \emph{polarity shift} evaluation and \emph{open-domain} evaluation. We conduct an evaluation on 7 representative sentiment analysis tasks covering 17 benchmark datasets and compare ChatGPT with fine-tuned BERT and corresponding state-of-the-art (SOTA) models on them. We also attempt several popular prompting techniques to elicit the ability further. Moreover, we conduct human evaluation and present some qualitative case studies to gain a deep comprehension of its sentiment analysis capabilities.

View on arXivView PDF

Code Implementations(1)

Can ChatGPT really understand the opinions, sentiments, and emotions contained in the text? We provide a preliminary evaluation.

545PythonFeb 28, 20232 years ago
aspect-based-sentiment-analysischatgptemotion-analysisemotion-cause-analysisemotion-cause-extraction+7 more

Similar Papers

Cite this paper

@article{wang2023chatgpt,
  title  = {Is ChatGPT a Good Sentiment Analyzer? A Preliminary Study},
  author = {Zengzhi Wang and Qiming Xie and Yi Feng and Zixiang Ding and Zinong Yang and Rui Xia},
  year   = {2023},
  eprint = {2304.04339},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.04339v2}
}

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/2304.04339.svg)](https://codeofpaper.com/paper/2304.04339)

Discussion