SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.15005 · 2023

Sentiment Analysis in the Era of Large Language Models: A Reality Check

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 6 functions out of this paper's own repositories and ran 0 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
damo-nlp-sg/llm-sentiment canonical 0 of 6
FunctionStatusWhere it lives
extract_label Not yet run damo-nlp-sg/llm-sentiment/evaluate.py
pointer only (licence: MIT) · get_code("10ef73cfeb03a631")
extract_labels Not yet run damo-nlp-sg/llm-sentiment/evaluate.py
pointer only (licence: MIT) · get_code("3ed2c1a495206991")
parallel_query_chatgpt_model Not yet run damo-nlp-sg/llm-sentiment/predict.py
pointer only (licence: MIT) · get_code("228207619251d2ad")
parallel_query_davinci_model Not yet run damo-nlp-sg/llm-sentiment/predict.py
pointer only (licence: MIT) · get_code("406e5c992288f1dd")
process_tuple_f1 Not yet run damo-nlp-sg/llm-sentiment/evaluate.py
pointer only (licence: MIT) · get_code("5da8031f78e9aa57")
query_chatgpt_model Not yet run damo-nlp-sg/llm-sentiment/predict.py
pointer only (licence: MIT) · get_code("aa9f51571e5694f7")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Sentiment analysis (SA) has been a long-standing research area in natural language processing. It can offer rich insights into human sentiments and opinions and has thus seen considerable interest from both academia and industry. With the advent of large language models (LLMs) such as ChatGPT, there is a great potential for their employment on SA problems. However, the extent to which existing LLMs can be leveraged for different sentiment analysis tasks remains unclear. This paper aims to provide a comprehensive investigation into the capabilities of LLMs in performing various sentiment analysis tasks, from conventional sentiment classification to aspect-based sentiment analysis and multifaceted analysis of subjective texts. We evaluate performance across 13 tasks on 26 datasets and compare the results against small language models (SLMs) trained on domain-specific datasets. Our study reveals that while LLMs demonstrate satisfactory performance in simpler tasks, they lag behind in more complex tasks requiring deeper understanding or structured sentiment information. However, LLMs significantly outperform SLMs in few-shot learning settings, suggesting their potential when annotation resources are limited. We also highlight the limitations of current evaluation practices in assessing LLMs' SA abilities and propose a novel benchmark, \textsc{SentiEval}, for a more comprehensive and realistic evaluation. Data and code during our investigations are available at \url{https://github.com/DAMO-NLP-SG/LLM-Sentiment}.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2305.15005")
get_code_for_paper("2305.15005")
have("2305.15005")

Connect an agent — have() is free.