arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.04396cs.CLcs.LG
收藏

利用经典机器学习和特征工程进行Reddit上的讽刺检测

Sarcasm Detection on Reddit Using Classical Machine Learning and Feature Engineering

Department of Mathematics(数学系);Technische Universität Chemnitz(技术大学切姆尼茨)

Subrata Karmaker

AI总结:

本文通过经典机器学习和特征工程方法,在Reddit上实现了讽刺检测,取得了约0.57的F1分数。

摘要:

讽刺在在线讨论中很常见,但对机器来说难以识别,因为意图的意义往往与字面意义相矛盾。在本工作中,我研究了仅使用经典机器学习方法和显式特征工程进行讽刺检测,不依赖神经网络或父评论的上下文。使用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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑