SlideShare a Scribd company logo
University of Sheffield, NLP
Diana Maynard
Mark Greenwood
University of Sheffield, UK
Who cares about sarcastic tweets?
Twitter is full of mindless drivel
●
OMMMFG!!! JUST HEARD EMINEM'S “RAPGOD”. SMFH!!!
these other dudes might as well stop rapping if they not on this
level
●
i've got dressed but only because I need biscuits
●
I used to be so bad at naming any k idol group members pmsl I
would get so confused and now I'm pro ;)))
●
im gonna learn to be a lifegaurd hopfully so while everyone else is
working in a shop actually doing stuff il be sitting on a pool
side.yay
What are people reading about?
●
Of the top 10 Twitter accounts
with the highest number of
followers:
●
7 pop stars
●
2 social media sites
●
and Barack Obama
●
Why on earth do we care about
this stuff?
Even the mindless drivel could be useful
●
OMMMFG!!! JUST HEARD EMINEM'S “RAPGOD”. SMFH!!!
these other dudes might as well stop rapping if they not on this level
●
i've got dressed but only because I need biscuits
●
I used to be so bad at naming any k idol group members pmsl I
would get so confused and now I'm pro ;)))
●
im gonna learn to be a lifegaurd hopfully so while everyone else is
working in a shop actually doing stuff il be sitting on a pool
side.yay
➔
English people like biscuits. A lot.
➔
What do young people think about their future careers?
➔
People who like K Idol and RapGod also like Apple
products
Sarcasm is a part of British culture
●
The BBC has its own webpage on sarcasm designed to teach
non-native English speakers how to be sarcastic successfully
in conversation
How do you know when someone is being
sarcastic?
• Use of hashtags in tweets such as #sarcasm, #irony, #whoknew etc.
It's not like I wanted to eat breakfast anyway #sarcasm
• Large collections of tweets based on hashtags can be used to make a
training set for machine learning
• But you still have to know what to do with sarcasm once you've
found it
• Sarcasm generally entails saying the opposite of what you mean
– But it doesn't necessarily just invert the polarity of an
opinion
– “It's not like I wanted to eat breakfast anyway” is negative
when uttered sarcastically, but non-opinionated when
uttered neutrally.
My friend Barry likes Apple products
Or does he?
Understanding sarcasm is hard
Sarcastic or not?
How about now?
It often requires world knowledge
Capitalisation indicates sarcasm
But not always
What does sarcasm do to polarity?
●
Sarcasm often indicated by hashtags in tweets such as #sarcasm,
#irony, #whoknew etc.
●
It's very hard to identify sarcasm outside these parameters
●
In general, when someone is being sarcastic, they're saying the
opposite of what they mean
●
So as long as you know which bit of the utterance is the sarcastic bit,
you can simply reverse the polarity
Eating breakfast food for lunch. Living the dream.
#toast #rebel #sarcasm
●
If there is no polarity on the original statement, the sarcastic version is
probably negative
It's not like I wanted to eat breakfast anyway #sarcasm
●
If there's more than one hashtag, you need to look at the combination,
and any sentiments they express
Getting the scope of hashtags right
Eating breakfast food for lunch. Living the dream.
#toast #rebel #sarcasm
Getting the scope of hashtags right
Eating breakfast food for lunch. Living the dream.
#toast #rebel #sarcasm
Getting the scope of hashtags right
Eating breakfast food for lunch. Living the dream.
#toast #rebel #sarcasm
Getting the scope of hashtags right
Eating breakfast food for lunch. Living the dream.
#toast #rebel #sarcasm
Getting the scope of hashtags right
Eating breakfast food for lunch. Living the dream.
#toast #rebel #sarcasm
Analysing Hashtags
What's in a hashtag?
●
Hashtags often contain smushed words
●
#SteveJobs
●
#CombineAFoodAndABand
●
#southamerica
●
For NER we want the individual tokens so
we can link them to the right entity
●
For opinion mining, individual words in
the hashtags often indicate sentiment,
sarcasm etc.
●
#greatidea
●
#worstdayever
●
We need to retokenise hashtags so that we
can use the content in our application
How to analyse hashtags?
●
Camelcasing makes it relatively easy to separate the words, using an
adapted tokeniser, but many people don't bother
●
We use a simple approach based on dictionary matching the longest
consecutive strings, working L to R
●
We use a combination of dictionaries (Linux dictionary, slang
dictionary, plus gazetteers of Named Entities, modified manually)
●
#lifeisgreat -> #-life-is-great
●
#lovinglife -> #-loving-life
●
It's not foolproof, however
●
#greatstart -> #-greats-tart
●
In an experiment with 2010 English hashtags (4538 tokens):
P=98.12%, R=96.41% , F1= 97.25%.
●
We could use a language modelling approach based on bigrams and
trigrams, but since hashtags are often novel, it might not help much
Identifying the scope of sarcasm
I am not happy that I woke up at 5:15 this morning.
#greatstart #sarcasm
You are really mature. #lying #sarcasm
Rules for identifying scope
I am not happy that I woke up at 5:15 this morning. #greatstart
#sarcasm
●
negative sentiment + positive hashtag + sarcasm hashtag
●
The positive hashtag becomes negative with sarcasm
You are really mature. #lying #sarcasm
●
positive sentiment + sarcasm hashtag + sarcasm hashtag
●
The positive sentiment is turned negative by both sarcasm
hashtags
●
When in doubt, it's usually safe to assume that a sarcastic
statement carries negative sentiment
Experiments with sarcastic hashtags

Collected a corpus of 134 tweets containing #sarcasm

Manually annotated sentences with sentiment

266 sentences, of which 68 opinionated (25%)

62 negative, 6 positive (yes, this is biased...)

Adding sarcasm detection improved accuracy of polarity
detection from 27.27% to 77.28%

Even though we know these sentences are sarcastic, we don't always get
polarity right

After implementing rules for sarcasm scope, 91% accuracy
Conclusions
●
Unlike most work on sarcasm detection, we don't try to
identify sarcasm where it's not explicitly indicated
●
We instead examine the effect that known sarcasm has on the
sentiment expressed in tweets
●
We retokenise hashtags so that we can make use of
information within them in order to identify sarcasm scope
●
We develop a set of rules for determining sarcasm scope, and
improve polarity detection as a result
●
Lots more work could be done on this topic, but it's a
#greatstart #really
Questions?
?

More Related Content

Viewers also liked

Relationship Status as a Mediator for Sarcastic Interpretation
Relationship Status as a Mediator for Sarcastic InterpretationRelationship Status as a Mediator for Sarcastic Interpretation
Relationship Status as a Mediator for Sarcastic Interpretationdanielleee333
 
NLP Asignment Final Presentation [IIT-Bombay]
NLP Asignment Final Presentation [IIT-Bombay]NLP Asignment Final Presentation [IIT-Bombay]
NLP Asignment Final Presentation [IIT-Bombay]
Sagar Ahire
 
Sarcasm & Thwarting in Sentiment Analysis [IIT-Bombay]
Sarcasm & Thwarting in Sentiment Analysis [IIT-Bombay]Sarcasm & Thwarting in Sentiment Analysis [IIT-Bombay]
Sarcasm & Thwarting in Sentiment Analysis [IIT-Bombay]
Sagar Ahire
 
Python NLTK
Python NLTKPython NLTK
Python NLTK
Alberts Pumpurs
 
Text Analysis and Semantic Search with GATE
Text Analysis and Semantic Search with GATEText Analysis and Semantic Search with GATE
Text Analysis and Semantic Search with GATE
Diana Maynard
 
Sentiment Analysis
Sentiment AnalysisSentiment Analysis
Sentiment Analysis
Sagar Ahire
 
Sentiments Analysis using Python and nltk
Sentiments Analysis using Python and nltk Sentiments Analysis using Python and nltk
Sentiments Analysis using Python and nltk
Ashwin Perti
 
Text analysis and Semantic Search with GATE
Text analysis and Semantic Search with GATEText analysis and Semantic Search with GATE
Text analysis and Semantic Search with GATE
Diana Maynard
 
Sentiment analysis-by-nltk
Sentiment analysis-by-nltkSentiment analysis-by-nltk
Sentiment analysis-by-nltkWei-Ting Kuo
 
Introduction to Sentiment Analysis
Introduction to Sentiment AnalysisIntroduction to Sentiment Analysis
Introduction to Sentiment Analysis
Jaganadh Gopinadhan
 
Sentiment analysis of twitter data
Sentiment analysis of twitter dataSentiment analysis of twitter data
Sentiment analysis of twitter data
Bhagyashree Deokar
 
Tutorial of Sentiment Analysis
Tutorial of Sentiment AnalysisTutorial of Sentiment Analysis
Tutorial of Sentiment AnalysisFabio Benedetti
 
Sentiment analysis of tweets
Sentiment analysis of tweetsSentiment analysis of tweets
Sentiment analysis of tweetsVasu Jain
 
Twitter sentiment-analysis Jiit2013-14
Twitter sentiment-analysis Jiit2013-14Twitter sentiment-analysis Jiit2013-14
Twitter sentiment-analysis Jiit2013-14Rachit Goel
 
Sentiment Analysis in Twitter
Sentiment Analysis in TwitterSentiment Analysis in Twitter
Sentiment Analysis in Twitter
Ayushi Dalmia
 
Sentiment Analysis of Twitter Data
Sentiment Analysis of Twitter DataSentiment Analysis of Twitter Data
Sentiment Analysis of Twitter Data
Sumit Raj
 

Viewers also liked (17)

Relationship Status as a Mediator for Sarcastic Interpretation
Relationship Status as a Mediator for Sarcastic InterpretationRelationship Status as a Mediator for Sarcastic Interpretation
Relationship Status as a Mediator for Sarcastic Interpretation
 
sent_analysis_report
sent_analysis_reportsent_analysis_report
sent_analysis_report
 
NLP Asignment Final Presentation [IIT-Bombay]
NLP Asignment Final Presentation [IIT-Bombay]NLP Asignment Final Presentation [IIT-Bombay]
NLP Asignment Final Presentation [IIT-Bombay]
 
Sarcasm & Thwarting in Sentiment Analysis [IIT-Bombay]
Sarcasm & Thwarting in Sentiment Analysis [IIT-Bombay]Sarcasm & Thwarting in Sentiment Analysis [IIT-Bombay]
Sarcasm & Thwarting in Sentiment Analysis [IIT-Bombay]
 
Python NLTK
Python NLTKPython NLTK
Python NLTK
 
Text Analysis and Semantic Search with GATE
Text Analysis and Semantic Search with GATEText Analysis and Semantic Search with GATE
Text Analysis and Semantic Search with GATE
 
Sentiment Analysis
Sentiment AnalysisSentiment Analysis
Sentiment Analysis
 
Sentiments Analysis using Python and nltk
Sentiments Analysis using Python and nltk Sentiments Analysis using Python and nltk
Sentiments Analysis using Python and nltk
 
Text analysis and Semantic Search with GATE
Text analysis and Semantic Search with GATEText analysis and Semantic Search with GATE
Text analysis and Semantic Search with GATE
 
Sentiment analysis-by-nltk
Sentiment analysis-by-nltkSentiment analysis-by-nltk
Sentiment analysis-by-nltk
 
Introduction to Sentiment Analysis
Introduction to Sentiment AnalysisIntroduction to Sentiment Analysis
Introduction to Sentiment Analysis
 
Sentiment analysis of twitter data
Sentiment analysis of twitter dataSentiment analysis of twitter data
Sentiment analysis of twitter data
 
Tutorial of Sentiment Analysis
Tutorial of Sentiment AnalysisTutorial of Sentiment Analysis
Tutorial of Sentiment Analysis
 
Sentiment analysis of tweets
Sentiment analysis of tweetsSentiment analysis of tweets
Sentiment analysis of tweets
 
Twitter sentiment-analysis Jiit2013-14
Twitter sentiment-analysis Jiit2013-14Twitter sentiment-analysis Jiit2013-14
Twitter sentiment-analysis Jiit2013-14
 
Sentiment Analysis in Twitter
Sentiment Analysis in TwitterSentiment Analysis in Twitter
Sentiment Analysis in Twitter
 
Sentiment Analysis of Twitter Data
Sentiment Analysis of Twitter DataSentiment Analysis of Twitter Data
Sentiment Analysis of Twitter Data
 

Similar to Who cares about sarcastic tweets? Investigating the impact of sarcasm on sentiment analysis.

Multimodal opinion mining from social media
Multimodal opinion mining from social mediaMultimodal opinion mining from social media
Multimodal opinion mining from social media
Diana Maynard
 
Do we really know what people mean when they tweet?
Do we really know what people mean when they tweet?Do we really know what people mean when they tweet?
Do we really know what people mean when they tweet?
Diana Maynard
 
Three Rules for Using Twitter Hashtags
Three Rules for Using Twitter HashtagsThree Rules for Using Twitter Hashtags
Three Rules for Using Twitter Hashtags
echogravity
 
Twitter Tips
Twitter TipsTwitter Tips
Twitter Tips
ron mader
 
Teachers, Don't be a Twit, Let's Tweet! Twitter 101 for educators
Teachers, Don't be a Twit, Let's Tweet! Twitter 101 for educatorsTeachers, Don't be a Twit, Let's Tweet! Twitter 101 for educators
Teachers, Don't be a Twit, Let's Tweet! Twitter 101 for educators
Georgia Virtual School
 
Aardman Social Media Training Slides
Aardman Social Media Training SlidesAardman Social Media Training Slides
Aardman Social Media Training Slides
Noisy Little Monkey
 
How to Start a Successful Blog...Today! #ViralChat
How to Start a Successful Blog...Today! #ViralChatHow to Start a Successful Blog...Today! #ViralChat
How to Start a Successful Blog...Today! #ViralChat
Post Planner
 
Make presentations that rock!
Make presentations that rock!Make presentations that rock!
Make presentations that rock!
Akash Shrivastava
 
7 Social Media Rules for 2010
7 Social Media Rules for 20107 Social Media Rules for 2010
7 Social Media Rules for 2010
Beem & Oostervink
 
The Savvy Online Student Affairs Professional
The Savvy Online Student Affairs ProfessionalThe Savvy Online Student Affairs Professional
The Savvy Online Student Affairs Professional
Paul Brown
 
#sbIMPACT How to Use Twitter for Business
#sbIMPACT How to Use Twitter for Business#sbIMPACT How to Use Twitter for Business
#sbIMPACT How to Use Twitter for Business
Mel DePaoli, MBA
 
Finding My Voice + Learning to Trust my Gut - from LeanIN Toronto Launch
Finding My Voice + Learning to Trust my Gut - from LeanIN Toronto LaunchFinding My Voice + Learning to Trust my Gut - from LeanIN Toronto Launch
Finding My Voice + Learning to Trust my Gut - from LeanIN Toronto Launch
Tara Hunt
 
Leanintalk 140926080104-phpapp01
Leanintalk 140926080104-phpapp01Leanintalk 140926080104-phpapp01
Leanintalk 140926080104-phpapp01Nina Lubinarskaya
 
Twitter Talk: Using Twitter for Learning and Professional Development in Res ...
Twitter Talk: Using Twitter for Learning and Professional Development in Res ...Twitter Talk: Using Twitter for Learning and Professional Development in Res ...
Twitter Talk: Using Twitter for Learning and Professional Development in Res ...
Melissa Robertson
 
Listen. Engage. Build Relationships. Spring 2014
Listen. Engage. Build Relationships. Spring 2014Listen. Engage. Build Relationships. Spring 2014
Listen. Engage. Build Relationships. Spring 2014
Allison Matherly
 
We Have to Do Something with Social Media, But What?
We Have to Do Something with Social Media, But What?We Have to Do Something with Social Media, But What?
We Have to Do Something with Social Media, But What?
Gerrit Heijkoop
 
New business models - social change for @SPARKdotme
New business models - social change for @SPARKdotme New business models - social change for @SPARKdotme
New business models - social change for @SPARKdotme
Dragana Djermanovic
 
140 Twitter Tips
140 Twitter Tips140 Twitter Tips
140 Twitter Tips
Kyle Lacy
 
Rules Of Engagement
Rules Of EngagementRules Of Engagement
Rules Of Engagement
Melissa DelGaudio
 

Similar to Who cares about sarcastic tweets? Investigating the impact of sarcasm on sentiment analysis. (20)

Multimodal opinion mining from social media
Multimodal opinion mining from social mediaMultimodal opinion mining from social media
Multimodal opinion mining from social media
 
Do we really know what people mean when they tweet?
Do we really know what people mean when they tweet?Do we really know what people mean when they tweet?
Do we really know what people mean when they tweet?
 
Three Rules for Using Twitter Hashtags
Three Rules for Using Twitter HashtagsThree Rules for Using Twitter Hashtags
Three Rules for Using Twitter Hashtags
 
Twitter Tips
Twitter TipsTwitter Tips
Twitter Tips
 
Teachers, Don't be a Twit, Let's Tweet! Twitter 101 for educators
Teachers, Don't be a Twit, Let's Tweet! Twitter 101 for educatorsTeachers, Don't be a Twit, Let's Tweet! Twitter 101 for educators
Teachers, Don't be a Twit, Let's Tweet! Twitter 101 for educators
 
Aardman Social Media Training Slides
Aardman Social Media Training SlidesAardman Social Media Training Slides
Aardman Social Media Training Slides
 
How to Start a Successful Blog...Today! #ViralChat
How to Start a Successful Blog...Today! #ViralChatHow to Start a Successful Blog...Today! #ViralChat
How to Start a Successful Blog...Today! #ViralChat
 
Make presentations that rock!
Make presentations that rock!Make presentations that rock!
Make presentations that rock!
 
7 Social Media Rules for 2010
7 Social Media Rules for 20107 Social Media Rules for 2010
7 Social Media Rules for 2010
 
The Savvy Online Student Affairs Professional
The Savvy Online Student Affairs ProfessionalThe Savvy Online Student Affairs Professional
The Savvy Online Student Affairs Professional
 
#sbIMPACT How to Use Twitter for Business
#sbIMPACT How to Use Twitter for Business#sbIMPACT How to Use Twitter for Business
#sbIMPACT How to Use Twitter for Business
 
Finding My Voice + Learning to Trust my Gut - from LeanIN Toronto Launch
Finding My Voice + Learning to Trust my Gut - from LeanIN Toronto LaunchFinding My Voice + Learning to Trust my Gut - from LeanIN Toronto Launch
Finding My Voice + Learning to Trust my Gut - from LeanIN Toronto Launch
 
Leanintalk 140926080104-phpapp01
Leanintalk 140926080104-phpapp01Leanintalk 140926080104-phpapp01
Leanintalk 140926080104-phpapp01
 
Twitter Talk: Using Twitter for Learning and Professional Development in Res ...
Twitter Talk: Using Twitter for Learning and Professional Development in Res ...Twitter Talk: Using Twitter for Learning and Professional Development in Res ...
Twitter Talk: Using Twitter for Learning and Professional Development in Res ...
 
Listen. Engage. Build Relationships. Spring 2014
Listen. Engage. Build Relationships. Spring 2014Listen. Engage. Build Relationships. Spring 2014
Listen. Engage. Build Relationships. Spring 2014
 
We Have to Do Something with Social Media, But What?
We Have to Do Something with Social Media, But What?We Have to Do Something with Social Media, But What?
We Have to Do Something with Social Media, But What?
 
New business models - social change for @SPARKdotme
New business models - social change for @SPARKdotme New business models - social change for @SPARKdotme
New business models - social change for @SPARKdotme
 
140 Twitter Tips
140 Twitter Tips140 Twitter Tips
140 Twitter Tips
 
140twittertips
140twittertips140twittertips
140twittertips
 
Rules Of Engagement
Rules Of EngagementRules Of Engagement
Rules Of Engagement
 

More from Diana Maynard

Filth and lies: analysing social media
Filth and lies: analysing social mediaFilth and lies: analysing social media
Filth and lies: analysing social media
Diana Maynard
 
Adding value to NLP: a little semantics goes a long way
Adding value to NLP: a little semantics goes a long wayAdding value to NLP: a little semantics goes a long way
Adding value to NLP: a little semantics goes a long way
Diana Maynard
 
Methodological possibilities for strengthening the monitoring of SDG indicato...
Methodological possibilities for strengthening the monitoring of SDG indicato...Methodological possibilities for strengthening the monitoring of SDG indicato...
Methodological possibilities for strengthening the monitoring of SDG indicato...
Diana Maynard
 
Getting the-most-out-of-conferences
Getting the-most-out-of-conferencesGetting the-most-out-of-conferences
Getting the-most-out-of-conferences
Diana Maynard
 
Understanding the world with NLP: interactions between society, behaviour and...
Understanding the world with NLP: interactions between society, behaviour and...Understanding the world with NLP: interactions between society, behaviour and...
Understanding the world with NLP: interactions between society, behaviour and...
Diana Maynard
 
The language of social media
The language of social mediaThe language of social media
The language of social media
Diana Maynard
 
Text analysis-semantic-search
Text analysis-semantic-searchText analysis-semantic-search
Text analysis-semantic-search
Diana Maynard
 
Using language to save the world: interactions between society, behaviour and...
Using language to save the world: interactions between society, behaviour and...Using language to save the world: interactions between society, behaviour and...
Using language to save the world: interactions between society, behaviour and...
Diana Maynard
 
Adapting NLP tools to diverse data: challenges and solutions
Adapting NLP tools to diverse data: challenges and solutionsAdapting NLP tools to diverse data: challenges and solutions
Adapting NLP tools to diverse data: challenges and solutions
Diana Maynard
 
Ontologies as bridges between data sources and user queries: the KNOWMAK proj...
Ontologies as bridges between data sources and user queries: the KNOWMAK proj...Ontologies as bridges between data sources and user queries: the KNOWMAK proj...
Ontologies as bridges between data sources and user queries: the KNOWMAK proj...
Diana Maynard
 
20 Years of Text Mining Applications with GATE: from Donald Trump to curing c...
20 Years of Text Mining Applications with GATE: from Donald Trump to curing c...20 Years of Text Mining Applications with GATE: from Donald Trump to curing c...
20 Years of Text Mining Applications with GATE: from Donald Trump to curing c...
Diana Maynard
 
Challenges of social media analysis in the real world
Challenges of social media analysis in the real worldChallenges of social media analysis in the real world
Challenges of social media analysis in the real world
Diana Maynard
 
GATE: a text analysis tool for social media
GATE: a text analysis tool for social mediaGATE: a text analysis tool for social media
GATE: a text analysis tool for social media
Diana Maynard
 
Tools for (Almost) Real-Time Social Media Analysis
Tools for (Almost) Real-Time Social Media AnalysisTools for (Almost) Real-Time Social Media Analysis
Tools for (Almost) Real-Time Social Media Analysis
Diana Maynard
 
Social media analytics as a service: tools from GATE
Social media analytics as a service: tools from GATESocial media analytics as a service: tools from GATE
Social media analytics as a service: tools from GATE
Diana Maynard
 
Can Social Media Analysis Improve Collective Awareness of Climate Change?
Can Social Media Analysis Improve Collective Awareness of Climate Change?Can Social Media Analysis Improve Collective Awareness of Climate Change?
Can Social Media Analysis Improve Collective Awareness of Climate Change?
Diana Maynard
 
Can Social Media Analysis Improve Collective Awareness of Climate Change?
Can Social Media Analysis Improve Collective Awareness of Climate Change?Can Social Media Analysis Improve Collective Awareness of Climate Change?
Can Social Media Analysis Improve Collective Awareness of Climate Change?Diana Maynard
 
Disability and Adventure Travel: the Double-Edged Sword
Disability and Adventure Travel: the Double-Edged SwordDisability and Adventure Travel: the Double-Edged Sword
Disability and Adventure Travel: the Double-Edged Sword
Diana Maynard
 
Practical Opinion Mining for Social Media
Practical Opinion Mining for Social MediaPractical Opinion Mining for Social Media
Practical Opinion Mining for Social Media
Diana Maynard
 

More from Diana Maynard (20)

Filth and lies: analysing social media
Filth and lies: analysing social mediaFilth and lies: analysing social media
Filth and lies: analysing social media
 
Adding value to NLP: a little semantics goes a long way
Adding value to NLP: a little semantics goes a long wayAdding value to NLP: a little semantics goes a long way
Adding value to NLP: a little semantics goes a long way
 
Methodological possibilities for strengthening the monitoring of SDG indicato...
Methodological possibilities for strengthening the monitoring of SDG indicato...Methodological possibilities for strengthening the monitoring of SDG indicato...
Methodological possibilities for strengthening the monitoring of SDG indicato...
 
Getting the-most-out-of-conferences
Getting the-most-out-of-conferencesGetting the-most-out-of-conferences
Getting the-most-out-of-conferences
 
Understanding the world with NLP: interactions between society, behaviour and...
Understanding the world with NLP: interactions between society, behaviour and...Understanding the world with NLP: interactions between society, behaviour and...
Understanding the world with NLP: interactions between society, behaviour and...
 
The language of social media
The language of social mediaThe language of social media
The language of social media
 
Text analysis-semantic-search
Text analysis-semantic-searchText analysis-semantic-search
Text analysis-semantic-search
 
Using language to save the world: interactions between society, behaviour and...
Using language to save the world: interactions between society, behaviour and...Using language to save the world: interactions between society, behaviour and...
Using language to save the world: interactions between society, behaviour and...
 
Adapting NLP tools to diverse data: challenges and solutions
Adapting NLP tools to diverse data: challenges and solutionsAdapting NLP tools to diverse data: challenges and solutions
Adapting NLP tools to diverse data: challenges and solutions
 
Ontologies as bridges between data sources and user queries: the KNOWMAK proj...
Ontologies as bridges between data sources and user queries: the KNOWMAK proj...Ontologies as bridges between data sources and user queries: the KNOWMAK proj...
Ontologies as bridges between data sources and user queries: the KNOWMAK proj...
 
20 Years of Text Mining Applications with GATE: from Donald Trump to curing c...
20 Years of Text Mining Applications with GATE: from Donald Trump to curing c...20 Years of Text Mining Applications with GATE: from Donald Trump to curing c...
20 Years of Text Mining Applications with GATE: from Donald Trump to curing c...
 
Challenges of social media analysis in the real world
Challenges of social media analysis in the real worldChallenges of social media analysis in the real world
Challenges of social media analysis in the real world
 
GATE: a text analysis tool for social media
GATE: a text analysis tool for social mediaGATE: a text analysis tool for social media
GATE: a text analysis tool for social media
 
Tools for (Almost) Real-Time Social Media Analysis
Tools for (Almost) Real-Time Social Media AnalysisTools for (Almost) Real-Time Social Media Analysis
Tools for (Almost) Real-Time Social Media Analysis
 
Social media analytics as a service: tools from GATE
Social media analytics as a service: tools from GATESocial media analytics as a service: tools from GATE
Social media analytics as a service: tools from GATE
 
Cls8 decarbonet
Cls8 decarbonetCls8 decarbonet
Cls8 decarbonet
 
Can Social Media Analysis Improve Collective Awareness of Climate Change?
Can Social Media Analysis Improve Collective Awareness of Climate Change?Can Social Media Analysis Improve Collective Awareness of Climate Change?
Can Social Media Analysis Improve Collective Awareness of Climate Change?
 
Can Social Media Analysis Improve Collective Awareness of Climate Change?
Can Social Media Analysis Improve Collective Awareness of Climate Change?Can Social Media Analysis Improve Collective Awareness of Climate Change?
Can Social Media Analysis Improve Collective Awareness of Climate Change?
 
Disability and Adventure Travel: the Double-Edged Sword
Disability and Adventure Travel: the Double-Edged SwordDisability and Adventure Travel: the Double-Edged Sword
Disability and Adventure Travel: the Double-Edged Sword
 
Practical Opinion Mining for Social Media
Practical Opinion Mining for Social MediaPractical Opinion Mining for Social Media
Practical Opinion Mining for Social Media
 

Recently uploaded

SluggerPunk Angel Investor Final Proposal
SluggerPunk Angel Investor Final ProposalSluggerPunk Angel Investor Final Proposal
SluggerPunk Angel Investor Final Proposal
grogshiregames
 
Buy Pinterest Followers, Reactions & Repins Go Viral on Pinterest with Socio...
Buy Pinterest Followers, Reactions & Repins  Go Viral on Pinterest with Socio...Buy Pinterest Followers, Reactions & Repins  Go Viral on Pinterest with Socio...
Buy Pinterest Followers, Reactions & Repins Go Viral on Pinterest with Socio...
SocioCosmos
 
Grow Your Reddit Community Fast.........
Grow Your Reddit Community Fast.........Grow Your Reddit Community Fast.........
Grow Your Reddit Community Fast.........
SocioCosmos
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE TRELLO
LORRAINE ANDREI_LEQUIGAN_HOW TO USE TRELLOLORRAINE ANDREI_LEQUIGAN_HOW TO USE TRELLO
LORRAINE ANDREI_LEQUIGAN_HOW TO USE TRELLO
lorraineandreiamcidl
 
7 Tips on Social Media Marketing strategy
7 Tips on Social Media Marketing strategy7 Tips on Social Media Marketing strategy
7 Tips on Social Media Marketing strategy
Digital Marketing Lab
 
Unlock TikTok Success with Sociocosmos..
Unlock TikTok Success with Sociocosmos..Unlock TikTok Success with Sociocosmos..
Unlock TikTok Success with Sociocosmos..
SocioCosmos
 
“To be integrated is to feel secure, to feel connected.” The views and experi...
“To be integrated is to feel secure, to feel connected.” The views and experi...“To be integrated is to feel secure, to feel connected.” The views and experi...
“To be integrated is to feel secure, to feel connected.” The views and experi...
AJHSSR Journal
 
Social Media Marketing Strategies .
Social Media Marketing Strategies                     .Social Media Marketing Strategies                     .
Social Media Marketing Strategies .
Virtual Real Design
 
Multilingual SEO Services | Multilingual Keyword Research | Filose
Multilingual SEO Services |  Multilingual Keyword Research | FiloseMultilingual SEO Services |  Multilingual Keyword Research | Filose
Multilingual SEO Services | Multilingual Keyword Research | Filose
madisonsmith478075
 
Your Path to YouTube Stardom Starts Here
Your Path to YouTube Stardom Starts HereYour Path to YouTube Stardom Starts Here
Your Path to YouTube Stardom Starts Here
SocioCosmos
 
Surat Digital Marketing School - course curriculum
Surat Digital Marketing School - course curriculumSurat Digital Marketing School - course curriculum
Surat Digital Marketing School - course curriculum
digitalcourseshop4
 
Improving Workplace Safety Performance in Malaysian SMEs: The Role of Safety ...
Improving Workplace Safety Performance in Malaysian SMEs: The Role of Safety ...Improving Workplace Safety Performance in Malaysian SMEs: The Role of Safety ...
Improving Workplace Safety Performance in Malaysian SMEs: The Role of Safety ...
AJHSSR Journal
 
SluggerPunk Final Angel Investor Proposal
SluggerPunk Final Angel Investor ProposalSluggerPunk Final Angel Investor Proposal
SluggerPunk Final Angel Investor Proposal
grogshiregames
 

Recently uploaded (13)

SluggerPunk Angel Investor Final Proposal
SluggerPunk Angel Investor Final ProposalSluggerPunk Angel Investor Final Proposal
SluggerPunk Angel Investor Final Proposal
 
Buy Pinterest Followers, Reactions & Repins Go Viral on Pinterest with Socio...
Buy Pinterest Followers, Reactions & Repins  Go Viral on Pinterest with Socio...Buy Pinterest Followers, Reactions & Repins  Go Viral on Pinterest with Socio...
Buy Pinterest Followers, Reactions & Repins Go Viral on Pinterest with Socio...
 
Grow Your Reddit Community Fast.........
Grow Your Reddit Community Fast.........Grow Your Reddit Community Fast.........
Grow Your Reddit Community Fast.........
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE TRELLO
LORRAINE ANDREI_LEQUIGAN_HOW TO USE TRELLOLORRAINE ANDREI_LEQUIGAN_HOW TO USE TRELLO
LORRAINE ANDREI_LEQUIGAN_HOW TO USE TRELLO
 
7 Tips on Social Media Marketing strategy
7 Tips on Social Media Marketing strategy7 Tips on Social Media Marketing strategy
7 Tips on Social Media Marketing strategy
 
Unlock TikTok Success with Sociocosmos..
Unlock TikTok Success with Sociocosmos..Unlock TikTok Success with Sociocosmos..
Unlock TikTok Success with Sociocosmos..
 
“To be integrated is to feel secure, to feel connected.” The views and experi...
“To be integrated is to feel secure, to feel connected.” The views and experi...“To be integrated is to feel secure, to feel connected.” The views and experi...
“To be integrated is to feel secure, to feel connected.” The views and experi...
 
Social Media Marketing Strategies .
Social Media Marketing Strategies                     .Social Media Marketing Strategies                     .
Social Media Marketing Strategies .
 
Multilingual SEO Services | Multilingual Keyword Research | Filose
Multilingual SEO Services |  Multilingual Keyword Research | FiloseMultilingual SEO Services |  Multilingual Keyword Research | Filose
Multilingual SEO Services | Multilingual Keyword Research | Filose
 
Your Path to YouTube Stardom Starts Here
Your Path to YouTube Stardom Starts HereYour Path to YouTube Stardom Starts Here
Your Path to YouTube Stardom Starts Here
 
Surat Digital Marketing School - course curriculum
Surat Digital Marketing School - course curriculumSurat Digital Marketing School - course curriculum
Surat Digital Marketing School - course curriculum
 
Improving Workplace Safety Performance in Malaysian SMEs: The Role of Safety ...
Improving Workplace Safety Performance in Malaysian SMEs: The Role of Safety ...Improving Workplace Safety Performance in Malaysian SMEs: The Role of Safety ...
Improving Workplace Safety Performance in Malaysian SMEs: The Role of Safety ...
 
SluggerPunk Final Angel Investor Proposal
SluggerPunk Final Angel Investor ProposalSluggerPunk Final Angel Investor Proposal
SluggerPunk Final Angel Investor Proposal
 

Who cares about sarcastic tweets? Investigating the impact of sarcasm on sentiment analysis.

  • 1. University of Sheffield, NLP Diana Maynard Mark Greenwood University of Sheffield, UK Who cares about sarcastic tweets?
  • 2. Twitter is full of mindless drivel ● OMMMFG!!! JUST HEARD EMINEM'S “RAPGOD”. SMFH!!! these other dudes might as well stop rapping if they not on this level ● i've got dressed but only because I need biscuits ● I used to be so bad at naming any k idol group members pmsl I would get so confused and now I'm pro ;))) ● im gonna learn to be a lifegaurd hopfully so while everyone else is working in a shop actually doing stuff il be sitting on a pool side.yay
  • 3. What are people reading about? ● Of the top 10 Twitter accounts with the highest number of followers: ● 7 pop stars ● 2 social media sites ● and Barack Obama ● Why on earth do we care about this stuff?
  • 4. Even the mindless drivel could be useful ● OMMMFG!!! JUST HEARD EMINEM'S “RAPGOD”. SMFH!!! these other dudes might as well stop rapping if they not on this level ● i've got dressed but only because I need biscuits ● I used to be so bad at naming any k idol group members pmsl I would get so confused and now I'm pro ;))) ● im gonna learn to be a lifegaurd hopfully so while everyone else is working in a shop actually doing stuff il be sitting on a pool side.yay ➔ English people like biscuits. A lot. ➔ What do young people think about their future careers? ➔ People who like K Idol and RapGod also like Apple products
  • 5. Sarcasm is a part of British culture ● The BBC has its own webpage on sarcasm designed to teach non-native English speakers how to be sarcastic successfully in conversation
  • 6.
  • 7. How do you know when someone is being sarcastic? • Use of hashtags in tweets such as #sarcasm, #irony, #whoknew etc. It's not like I wanted to eat breakfast anyway #sarcasm • Large collections of tweets based on hashtags can be used to make a training set for machine learning • But you still have to know what to do with sarcasm once you've found it • Sarcasm generally entails saying the opposite of what you mean – But it doesn't necessarily just invert the polarity of an opinion – “It's not like I wanted to eat breakfast anyway” is negative when uttered sarcastically, but non-opinionated when uttered neutrally.
  • 8. My friend Barry likes Apple products
  • 10. Understanding sarcasm is hard Sarcastic or not? How about now?
  • 11. It often requires world knowledge Capitalisation indicates sarcasm But not always
  • 12. What does sarcasm do to polarity? ● Sarcasm often indicated by hashtags in tweets such as #sarcasm, #irony, #whoknew etc. ● It's very hard to identify sarcasm outside these parameters ● In general, when someone is being sarcastic, they're saying the opposite of what they mean ● So as long as you know which bit of the utterance is the sarcastic bit, you can simply reverse the polarity Eating breakfast food for lunch. Living the dream. #toast #rebel #sarcasm ● If there is no polarity on the original statement, the sarcastic version is probably negative It's not like I wanted to eat breakfast anyway #sarcasm ● If there's more than one hashtag, you need to look at the combination, and any sentiments they express
  • 13. Getting the scope of hashtags right Eating breakfast food for lunch. Living the dream. #toast #rebel #sarcasm
  • 14. Getting the scope of hashtags right Eating breakfast food for lunch. Living the dream. #toast #rebel #sarcasm
  • 15. Getting the scope of hashtags right Eating breakfast food for lunch. Living the dream. #toast #rebel #sarcasm
  • 16. Getting the scope of hashtags right Eating breakfast food for lunch. Living the dream. #toast #rebel #sarcasm
  • 17. Getting the scope of hashtags right Eating breakfast food for lunch. Living the dream. #toast #rebel #sarcasm
  • 19. What's in a hashtag? ● Hashtags often contain smushed words ● #SteveJobs ● #CombineAFoodAndABand ● #southamerica ● For NER we want the individual tokens so we can link them to the right entity ● For opinion mining, individual words in the hashtags often indicate sentiment, sarcasm etc. ● #greatidea ● #worstdayever ● We need to retokenise hashtags so that we can use the content in our application
  • 20. How to analyse hashtags? ● Camelcasing makes it relatively easy to separate the words, using an adapted tokeniser, but many people don't bother ● We use a simple approach based on dictionary matching the longest consecutive strings, working L to R ● We use a combination of dictionaries (Linux dictionary, slang dictionary, plus gazetteers of Named Entities, modified manually) ● #lifeisgreat -> #-life-is-great ● #lovinglife -> #-loving-life ● It's not foolproof, however ● #greatstart -> #-greats-tart ● In an experiment with 2010 English hashtags (4538 tokens): P=98.12%, R=96.41% , F1= 97.25%. ● We could use a language modelling approach based on bigrams and trigrams, but since hashtags are often novel, it might not help much
  • 21. Identifying the scope of sarcasm I am not happy that I woke up at 5:15 this morning. #greatstart #sarcasm You are really mature. #lying #sarcasm
  • 22. Rules for identifying scope I am not happy that I woke up at 5:15 this morning. #greatstart #sarcasm ● negative sentiment + positive hashtag + sarcasm hashtag ● The positive hashtag becomes negative with sarcasm You are really mature. #lying #sarcasm ● positive sentiment + sarcasm hashtag + sarcasm hashtag ● The positive sentiment is turned negative by both sarcasm hashtags ● When in doubt, it's usually safe to assume that a sarcastic statement carries negative sentiment
  • 23. Experiments with sarcastic hashtags  Collected a corpus of 134 tweets containing #sarcasm  Manually annotated sentences with sentiment  266 sentences, of which 68 opinionated (25%)  62 negative, 6 positive (yes, this is biased...)  Adding sarcasm detection improved accuracy of polarity detection from 27.27% to 77.28%  Even though we know these sentences are sarcastic, we don't always get polarity right  After implementing rules for sarcasm scope, 91% accuracy
  • 24. Conclusions ● Unlike most work on sarcasm detection, we don't try to identify sarcasm where it's not explicitly indicated ● We instead examine the effect that known sarcasm has on the sentiment expressed in tweets ● We retokenise hashtags so that we can make use of information within them in order to identify sarcasm scope ● We develop a set of rules for determining sarcasm scope, and improve polarity detection as a result ● Lots more work could be done on this topic, but it's a #greatstart #really