算法可以检测讽刺吗 [英] Can an algorithm detect sarcasm

查看:17
本文介绍了算法可以检测讽刺吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被要求编写一种算法来检测讽刺,但我发现了逻辑中的一个缺陷(或看起来像一个缺陷).

I was asked to write an algorithm to detect sarcasm but I came across a flaw (or what seems like one) in the logic.

例如如果一个人说

A:我喜欢贾斯汀·贝伯.你喜欢他吗?

A: I love Justin Beiber. Do you like him to?

乙:是的.当然.我绝对爱他.

现在这可能被认为是讽刺与否,唯一的了解方式似乎是知道 B 是否是认真的.

Now this may be considered sarcasm or not and the only way to know seems to be to know if B is serious or not.

(我不应该深入.我们得到了一堆短语,只是被告知如果这些在句子中,那么它是讽刺的,但我很感兴趣?)

(I wasn't supposed to be in depth. We were given a bunch of phrases and just were told that if these were in the sentence then it was sarcastic but I got interested?)

有什么办法可以解决这个问题吗?还是计算机在讽刺方面完全卡住了?

Is there any way to work around this? Or are computers absolutely stuck when it comes to sarcasm?

(我想这取决于说话者的语气,但我的输入是文本)

(I suppose it depends on the tone of the speaker but my input is text)

推荐答案

看起来有一些研究试图这样做,但他们还没有想出一个有效的算法.

Looks like there are studies that attempted just that, but they have yet to come up with a well working algorithm.

来自 González-Ibáñez, R. 等.识别 Twitter 中的讽刺:仔细观察"

讽刺和反讽是语言学中经过充分研究的现象,心理学和认知科学[...].但是在文本挖掘中文献中,讽刺的自动检测被认为是一种困难问题 [...] 和仅在少数研究中得到了解决.[...] 与我们最密切相关的工作是 Davidov 等人的工作.(2010),其目标是识别讽刺和非讽刺Twitter 和亚马逊产品评论中的言论.在本文中,我们考虑将讽刺性推文与非讽刺性推文区分开来的更难的问题

Sarcasm and irony are well-studied phenomena in linguistics, psychology and cognitive science[...]. But in the text mining literature, automatic detection of sarcasm is considered a difficult problem [...] and has been addressed in only a few studies. [...] The work most closely related to ours is that of Davidov et al. (2010), whose objective was to identify sarcastic and non-sarcastic utterances in Twitter and in Amazon product reviews. In this paper, we consider the somewhat harder problem of distinguishing sarcastic tweets from non- sarcastic tweets

他们得出结论:

也许不出所料,无论是人类法官还是机器学习技术表现非常好.[...] 我们的结果表明,仅凭词汇特征不足以识别讽刺,语用和语境特征值得进一步研究

Perhaps unsurprisingly, neither the human judges nor the machine learning techniques perform very well. [...] Our results suggest that lexical features alone are not sufficient for identifying sarcasm and that pragmatic and contextual features merit further study

这是另一篇最近的相关论文:
雷耶斯,A.来自幽默识别到讽刺检测:社交媒体的比喻语言"

Here is another recent, relevant paper:
Reyes, A. "From humor recognition to irony detection: The figurative language of social media"

这篇关于算法可以检测讽刺吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆