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 被引量:28
标识
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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
1秒前
1秒前
2秒前
2秒前
HMQ完成签到,获得积分10
3秒前
Luyao发布了新的文献求助10
4秒前
喻初原发布了新的文献求助10
4秒前
Hello应助mao采纳,获得10
5秒前
llyu玉发布了新的文献求助10
6秒前
干净的竺完成签到,获得积分10
7秒前
daigang完成签到,获得积分10
7秒前
捣药熊发布了新的文献求助10
7秒前
8秒前
情怀应助洋1采纳,获得10
8秒前
汉堡包应助危机的百褶裙采纳,获得10
8秒前
乐乐应助涔雨采纳,获得10
9秒前
MUXIYOU完成签到,获得积分10
9秒前
9秒前
123456qi完成签到,获得积分10
9秒前
9秒前
10秒前
HMO_eee完成签到,获得积分10
12秒前
yjh123应助pinst7采纳,获得10
12秒前
伶俐的傲白完成签到 ,获得积分20
12秒前
小马甲应助干净的竺采纳,获得10
14秒前
14秒前
我是老大应助荼曙采纳,获得10
15秒前
在水一方应助X123采纳,获得30
15秒前
starlet发布了新的文献求助10
16秒前
彩色蚂蚁完成签到 ,获得积分10
16秒前
18秒前
19秒前
19秒前
洋1发布了新的文献求助10
19秒前
Shine完成签到,获得积分10
20秒前
20秒前
21秒前
Kolt星完成签到,获得积分10
21秒前
21秒前
高分求助中
Principles of Economics, 11th Edition 10000
University Physics with Modern Physics, 16th edition 10000
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Environmental Leverage in Times of Climate Crisis: Product Standards, Carbon Border Measures and Preferential Trade Agreements 1000
Matrix Methods in Data Mining and Pattern Recognition 510
Social Skills Improvement System-Rating Scales--Chinese Version 500
Dynamische Polarisation von H-1 und B-11 in (CH-3)-3NBH-3 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7243059
求助须知:如何正确求助?哪些是违规求助? 8867434
关于积分的说明 18705537
捐赠科研通 6917107
什么是DOI,文献DOI怎么找? 3196483
关于科研通互助平台的介绍 2369994
邀请新用户注册赠送积分活动 2171096