Software Recognizes Sarcastic Tweets
An anonymous reader writes "Even humans sometimes fail to recognize sarcasm and irony; can machines do better? An algorithm that identifies sarcastic tweets (PDF) on Twitter and sarcastic sentences in product reviews on Amazon will be presented next week in the International Conference for Weblogs and Social Media in Washington, DC, and in the Computational Natural Language Learning in Sweden in July. A team from the Hebrew University, Israel, has developed an algorithm that identifies sarcastic sentences by using a machine learning technique in which a small number of sarcastic sentences act as seeds for the software to learn and generalize upon. The algorithm can then identify sarcastic sentences that are nothing like the examples. The variety of recognized sarcastic sentences is impressive, though the results are not perfect. But again, we don't do it so well ourselves, do we?"
Yeah, sure it does.
Want to improve your Karma? Instead of "Post Anonymously", try the "Post Humously" option.
Weight of various patterns and features. We present here a deeper look on some examples. A classic example of a sarcastic comment is: "Silly me, the Kindle and the Sony eBook can’t read these protected formats. Great!". Some of the patterns it contains are ...
You know DRM is pervasive as a very serious consumer problem when statistical research papers recognize user dissatisfaction with it as a classic example of sarcasm that floods reviews.
My work here is dung.
This may help people with autism and Asperger's Syndrome recognize satire.
A sarcasm detector, that's a real useful invention!
"Yeah, we totally developed a program to detect sarcastic tweets... #fuckinggenius"
Just end your sarcasm tags before being sarcastic. This won't conform to W3C standards, however.
"Hegelians, who love a synthesis, will probably conclude that he wears a wig." - Bertrand Russell
Given that sometimes not even humans understand when I am being sarcastic, I expect this software will have an exceptionally high recognition rate with very low false positives. A truly remarkable achievement and the one algorithm the human race has been waiting for!
Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
"Any sufficiently optimistic statement is indistinguishable from sarcasm."
Yeah, like that would work!
-- Two men say they're Jesus. One of them must be wrong. - Dire Straits
The algorithm can then identify sarcastic sentences that are nothing like the examples.
Place it in my office. If it still responds at the end of the week, it's not working correctly. If it's overloaded and partially melted, we've got a winner.
I wonder what would happen if you applied their algorithm to any given slashdot post, particularly one on the Apple board.
-- Two men say they're Jesus. One of them must be wrong. - Dire Straits
When quoting the Simpsons, do it correctly.
Comic Book Guy: Oh, a sarcasm detector, that's a real useful invention.
It dates back into some of the great classic works of our time... upon reading Romeo and Juliet one critic was overheard saying:
"Nice play Shakespeare..."
or upon solving a great mystery, Watson was once overheard saying, "No shit Sherlock."
Vercotti: Well, I had been running a successful escort agency - high class, no really, high class girls - we didn't have any of that. That was right out. And I decided. (phone rings on desk) Excuse me (he answers it) Hello......no, not now......shtoom...shtoom....right......yes, we'll have the watch ready for you at midnight.......the watch.....the Chinese watch....yes, right-oh, bye-bye mother (he replaces reciever) Anyway I decided then to open a high-class night club for the gentry at Biggleswade with International cuisine, cooking, top-line acts, and not a cheap clip joint for picking up tarts, that was right out, I deny that completely, and one night Dinsdale walked in with a couple of big lads, one of whom was carrying a tactical nuclear missile. They said I'd bought one of their fruit machines and would I pay for it.
Interviewer: How much did they want?
Vercotti: Three quarters of a million pounds. Then they went out.
Interviewer: Why didn't you call the police?
Vercotti: Well I had noticed that the lad with the thermo-nuclear device was the Chief Constable for the area. Anyway a week later they came back, said that the cheque had bounced and that I had to see Doug.
Interviewer: Doug?
Vercotti: Doug (takes a drink) I was terrified of him. Everyone was terrified of Doug. I've seen grown men pull their own heads off rather than see Doug. Even Dinsdale was frightened of Doug.
Interviewer: What did he do?
Vercotti: He used sarcasm. He knew all the tricks, dramatic irony, metaphor, bathos, puns, parody, litotes and satire.
....
No folly is more costly than the folly of intolerant idealism. - Winston Churchill
I bet it just looks for itallic text.
Their algorithm gets 77% accuracy. I think I can do better:
# Estimated accuracy: 92.1%
isSarcastic(tweet) { return true; }
Or does that only work for slashdot comments?
The problem with that is that in American sitcoms, verbal irony is accompanied by non-verbal cues like facial expression, tone of voice, or, ugh, laugh tracks. Take away the cues, and deliver the sarcasm in a deadpan manner, and tons of people in the USA are completely unable to catch it, neurotypical or not.
Are you adequate?