Efficacy of ChatGPT in Cantonese Sentiment Analysis: Comparative Study

情绪分析 词典 计算机科学 人工智能 自然语言处理 支持向量机 众包 机器学习 万维网
作者
Ziru FU,Yu‐Cheng Hsu,Christian S. Chan,C. Lau,Joyce Liu,Paul Yip
出处
期刊:Journal of Medical Internet Research [JMIR Publications]
卷期号:26: e51069-e51069 被引量:38
标识
DOI:10.2196/51069
摘要

BACKGROUND: Sentiment analysis is a significant yet difficult task in natural language processing. The linguistic peculiarities of Cantonese, including its high similarity with Standard Chinese, its grammatical and lexical uniqueness, and its colloquialism and multilingualism, make it different from other languages and pose additional challenges to sentiment analysis. Recent advances in models such as ChatGPT offer potential viable solutions. OBJECTIVE: This study investigated the efficacy of GPT-3.5 and GPT-4 in Cantonese sentiment analysis in the context of web-based counseling and compared their performance with other mainstream methods, including lexicon-based methods and machine learning approaches. METHODS: We analyzed transcripts from a web-based, text-based counseling service in Hong Kong, including a total of 131 individual counseling sessions and 6169 messages between counselors and help-seekers. First, a codebook was developed for human annotation. A simple prompt ("Is the sentiment of this Cantonese text positive, neutral, or negative? Respond with the sentiment label only.") was then given to GPT-3.5 and GPT-4 to label each message's sentiment. GPT-3.5 and GPT-4's performance was compared with a lexicon-based method and 3 state-of-the-art models, including linear regression, support vector machines, and long short-term memory neural networks. RESULTS: Our findings revealed ChatGPT's remarkable accuracy in sentiment classification, with GPT-3.5 and GPT-4, respectively, achieving 92.1% (5682/6169) and 95.3% (5880/6169) accuracy in identifying positive, neutral, and negative sentiment, thereby outperforming the traditional lexicon-based method, which had an accuracy of 37.2% (2295/6169), and the 3 machine learning models, which had accuracies ranging from 66% (4072/6169) to 70.9% (4374/6169). CONCLUSIONS: Among many text analysis techniques, ChatGPT demonstrates superior accuracy and emerges as a promising tool for Cantonese sentiment analysis. This study also highlights ChatGPT's applicability in real-world scenarios, such as monitoring the quality of text-based counseling services and detecting message-level sentiments in vivo. The insights derived from this study pave the way for further exploration into the capabilities of ChatGPT in the context of underresourced languages and specialized domains like psychotherapy and natural language processing.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
shilly完成签到 ,获得积分10
1秒前
CGBIO完成签到,获得积分10
1秒前
拓跋幻枫完成签到,获得积分10
2秒前
科研狗完成签到 ,获得积分10
3秒前
神通广大的MOMO完成签到,获得积分10
3秒前
爱笑歌曲完成签到,获得积分10
4秒前
CC完成签到 ,获得积分10
5秒前
自信草丛完成签到,获得积分10
5秒前
光电发布了新的文献求助20
5秒前
BMG完成签到,获得积分10
5秒前
无语完成签到 ,获得积分10
5秒前
Li冠超完成签到 ,获得积分10
6秒前
Lizhuo完成签到,获得积分10
7秒前
斐波拉切土豆完成签到 ,获得积分10
9秒前
Godweless完成签到,获得积分10
10秒前
美满惜寒完成签到,获得积分10
11秒前
丸子完成签到 ,获得积分10
12秒前
伶俐如风完成签到 ,获得积分10
12秒前
CC完成签到 ,获得积分10
16秒前
啪嗒大白球完成签到,获得积分10
17秒前
派大星星完成签到 ,获得积分10
20秒前
朝夕之晖完成签到,获得积分10
22秒前
山岚完成签到 ,获得积分10
23秒前
怕孤单的以寒完成签到,获得积分10
24秒前
风雨晴鸿完成签到 ,获得积分10
24秒前
活佛济公完成签到 ,获得积分10
26秒前
阳光完成签到,获得积分10
29秒前
阿臭der完成签到 ,获得积分10
30秒前
Zhjie126完成签到,获得积分10
31秒前
科研通AI6.2应助光电采纳,获得10
33秒前
科研完成签到,获得积分10
34秒前
prl666完成签到,获得积分10
35秒前
洋芋饭饭完成签到,获得积分10
36秒前
小新完成签到 ,获得积分10
39秒前
韩佩阳完成签到,获得积分10
39秒前
开心的人杰完成签到,获得积分10
39秒前
40秒前
123完成签到,获得积分10
40秒前
ys1008完成签到,获得积分0
42秒前
lemon完成签到,获得积分10
42秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Navigating Normative Orders. Interdisciplinary Perspectives 800
Organizational Behavior 510
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
CLSI VET01S-2024 Performance Standards for Antimicrobial Disk and Dilution Susceptibility Tests for Bacteria Isolated From Animals (7th Ed) 500
A Case Study on Hotels as Noncongregate Emergency Living Accommodations for Returning Citizens 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7754508
求助须知:如何正确求助?哪些是违规求助? 9301048
关于积分的说明 20260358
捐赠科研通 7336962
什么是DOI,文献DOI怎么找? 3310879
关于科研通互助平台的介绍 2462112
邀请新用户注册赠送积分活动 2324165