讽刺在在线讨论中很常见,但对机器来说难以识别,因为意图的意义往往与字面意义相矛盾。在本工作中,我研究了仅使用经典机器学习方法和显式特征工程进行讽刺检测,不依赖神经网络或父评论的上下文。使用Self-Annotated Reddit Corpus (SARC 2.0) 的10万条评论子样本,我结合了词级和字符级TF-IDF特征以及简单的风格指标。评估了四个模型:逻辑回归、线性SVM、多项式朴素贝叶斯和随机森林。朴素贝叶斯和逻辑回归表现最佳,达到约0.57的讽刺评论F1分数。尽管缺乏对话上下文限制了性能,但结果为使用轻量且可解释的方法进行讽刺检测提供了清晰且可重复的基准。
英文摘要:
Sarcasm is common in online discussions, yet difficult for machines to identify because the intended meaning often contradicts the literal wording. In this work, I study sarcasm detection using only classical machine learning methods and explicit feature engineering, without relying on neural networks or context from parent comments. Using a 100,000-comment subsample of the Self-Annotated Reddit Corpus (SARC 2.0), I combine word-level and character-level TF-IDF features with simple stylistic indicators. Four models are evaluated: logistic regression, a linear SVM, multinomial Naive Bayes, and a random forest. Naive Bayes and logistic regression perform the strongest, achieving F1-scores around 0.57 for sarcastic comments. Although the lack of conversational context limits performance, the results offer a clear and reproducible baseline for sarcasm detection using lightweight and interpretable methods.
CASCADE: Contextual Sarcasm Detection in Online Discussion Forums
National University of Singapore(新加坡国立大学);A*STAR(新加坡科技研究局);Indian Institute of Science, Bangalore(班加罗尔印度科学学院);University of Michigan, Ann Arbor(密歇根大学安娜堡分校)
Social media polarization during conflict: Insights from an ideological stance dataset on Israel-Palestine Reddit comments
Department of Business and Technology Management, Islamic University of Technology, Gazipur, Dhaka, Bangladesh(伊斯兰科技大学商学院与技术管理系,加兹ipur,达卡,孟加拉国);Department of Computer Science and Engineering, Islamic University of Technology, Gazipur, Dhaka, Bangladesh(伊斯兰科技大学计算机科学与工程系,加兹ipur,达卡,孟加拉国);Department of Electrical and Electronic Engineering, University of Dhaka, Nilkhet Road, Dhaka, Bangladesh(达卡大学电子与电气工程系,Nilkhet Road,达卡,孟加拉国);Department of Computer Science, American International University–Bangladesh, Kuratoli, Dhaka, Bangladesh(孟加拉国美国国际大学计算机科学系,Kuratoli,达卡,孟加拉国)