SlideShare a Scribd company logo
1 of 50
What lies beneath sentiment analysis
Marie-Catherine de Marneffe
The Ohio State University
Linguistics
?
Sentiment analysis is implicit meaning
and context-dependent
unpredictable plot
Sentiment analysis is implicit meaning
and context-dependent
unpredictable plot
unpredictable boss
How does it work?
Machine learning
training
Annotated corpus Classifier
How does it work?
Machine learning
training
Annotated corpus
OR
Classification result
New text
Classifier
Stanford Sentiment Treebank
[Socher et al. 2013]
9
9
13
13
11
.
This
13
8½
13 11 14
1318
new idea
is n’t a
16
Sentiment score: average of 3 scores
00.
1 25
Overall sentiment score: 0.4444
Raw scores: 13,13, 9
5-way labeling
(0.8, 1.0]
(0.6, 0.8]
(0.4, 0.6]
(0.2, 0.4]
[0, 0.2]
Binary labeling
(0.8, 1.0]
(0.6, 0.8]
(0.4, 0.6]
(0.2, 0.4]
[0, 0.2]
RNTN
All phrases Sentences
binary 87.6 85.4
5-class 80.7 45.7
Results on both categorizations
Stanford Sentiment System
http://nlp.stanford.edu:8080/sentiment/rntnDemo.html
✓
✓
Far from being solved
Minimally changing sentences breaks current
sentiment analysis systems
Systems can only handle the ends of the
sentiment spectrum (+/-)
Inherent bias in the data
https://bibinlp.umiacs.umd.edu/sharedtask.html
EMNLP 2017
Systems fail to capture the difference
If not for its show-offy back-and- forthing of time,
the movie would be a banal, pointlessly
depressing exercise.
Despite its show-offy back-and- forthing of time,
the movie is a banal, pointlessly depressing
exercise.
+
-
Using mostly unknown and first-time actors, Loach
spins a passable coming-of-age tale, which
should please his fans and provides a diversion
for the rest of us.
Using mostly unknown and first-time actors, Loach
spins a passable coming-of-age tale, which ought
to have pleased his fans and provided a diversion
for the rest of us.
+
-
Systems fail to capture the difference
We are far from robust sentiment
analysis
[Mahler et al. 2017]
We are far from robust sentiment
analysis
“Standard” negation
This is one of the worst movies of the year.
This is not one of the worst movies of the year.
Director Jordan fails to deliver a film
worthy of such mythical figure.
Director Jordan did not fail to deliver a film
worthy of such mythical figure.
-
58% break, n=6
-
+
0%
-
83%
Post-fixed negation
Exciting heist film for teens and their families.
Exciting heist film for teens and their families – not!
A fun bit of action comedy with a bang up cast.
A fun bit of action comedy with a bang up cast –
not!
+
-
100% break, n=2
-
+
Conjunct reversal
Munich ricochets all over the place, but it hits its
target dead-on.
Munich hits its target dead-on, but ricochets all over
the place.
71% break, n=7
-
100%
+
Conjunct reversal
Munich ricochets all over the place, but it hits its
target dead-on.
Munich hits its target dead-on, but ricochets all over
the place.
The sentiments are right on the money, but the
execution never quite filled me with holiday cheer.
The execution never quite filled me with holiday
cheer, but the sentiments are right on the money.
-
71% break, n=7
-
+
100%
67%
+
Do systems understand the
linguistic structure?
Systems seem to understand the individual
words to detect sentiment
But they cannot yet handle more complex
linguistic expressions
Currently sentiment analysis is binary
POSITIVE
NEGATIVE
Currently sentiment analysis is binary
Phrases with sentiment score
0.55556
a film as Byatt fans could hope for
A sly dissection of the inanities of the
contemporary music business and a
rather sad story of the difficulties
13,15,15
13,15,15
a film as Byatt fans could hope for
A sly dissection of the inanities of the
contemporary music business and a
rather sad story of the difficulties
a sad, superior human
a joke
Angel presents events partly from the
perspective of Aurelie and Christelle and
infuses the film with the sensibility of a
particularly nightmarish fairytale
13,15,15
13,15,15
9,13, 21
8,15, 20
9,17 17
Phrases with sentiment score
0.55556
Averages obscure differences
In most datasets sentiment scores are averaged
But this conflates the data in a way that
obscures differences
Another common measure: majority voting
But data with variance is informative too!
Acknowledging variability
Precisio
n
Recall F1
Complicate
d
19.9 13.8 16.3
Positive 59.9 60.5 60.2
Neutral 76.6 80.6 78.6
Negative 51.0 48.7 49.8
Total 51.8 50.9 51.2
[Kenyon-Dean et al. 2018]
Inherent bias
[Blodgett & O’Connor 2017]
Inherent bias
[Blodgett & O’Connor 2017]
Data representation: word
embeddings
Based on distributional semantics
With long, wispy eyelashes and a vibrant blue face,
Bernie the southern cassowary has a look that
rivals even the fanciest of peacocks.
Cassowaries stand between 1.5-2 meters in height
with both sexes similar in appearance.
How Dangerous Are Cassowaries, Really? -
Scientific American Blog ...
Scientists currently recognize three living species of
cassowary—all of which are restricted to New
Guinea, northeastern Australia, and nearby islands.
Image from Wikipedia
Data representation
occurs near
Australia
occurs near
dangerous
cassowary
never often
often
What other things are dangerous?
What other things live in Australia?
Most Dangerous Cancers in Men and Women Infographic
Why are cancer cells dangerous?
The koala is an arboreal herbivorous marsupial native
to Australia.
The AKF estimates that there are likely to be less than
80,000 Koalas remaining in Australia today and it could
be as low as 43,000.
Data representation
occurs near
Australia
occurs near
dangerous
koala cassowary
cancer
often
never often
Data representation
occurs near
Australia
occurs near
dangerous
koala cassowary
cancer
often
never often
There are lots of dimensions
[Kim & de Marneffe 2013]
Word2Vec/Elmo/Bert
https://rare-technologies.com/word2vec-tutorial/
Word2Vec learns the bias in the
data
https://rare-technologies.com/word2vec-tutorial/
Word2Vec learns the bias in the
data
Wrapping up
Know the kind of data on which systems you use
are trained.
Thank you!

More Related Content

What's hot (8)

Fractions multdiv mixed_004
Fractions multdiv mixed_004Fractions multdiv mixed_004
Fractions multdiv mixed_004
 
GAME THEORY
GAME THEORYGAME THEORY
GAME THEORY
 
Operations Research
Operations ResearchOperations Research
Operations Research
 
Game theory
Game theoryGame theory
Game theory
 
Game theory
Game theoryGame theory
Game theory
 
Applications of game theory on event management
Applications of game theory on event management Applications of game theory on event management
Applications of game theory on event management
 
Game theory ppt
Game theory pptGame theory ppt
Game theory ppt
 
Game theory ppt
Game theory pptGame theory ppt
Game theory ppt
 

Similar to Sentiment analysis

02 naive bays classifier and sentiment analysis
02 naive bays classifier and sentiment analysis02 naive bays classifier and sentiment analysis
02 naive bays classifier and sentiment analysis
Subhas Kumar Ghosh
 
Mike Thelwall - Sentiment strength detection for the social web: From YouTube...
Mike Thelwall - Sentiment strength detection for the social web: From YouTube...Mike Thelwall - Sentiment strength detection for the social web: From YouTube...
Mike Thelwall - Sentiment strength detection for the social web: From YouTube...
yaevents
 
Cs221 lecture5-fall11
Cs221 lecture5-fall11Cs221 lecture5-fall11
Cs221 lecture5-fall11
darwinrlo
 
SOC212 - Application Question #2Due Friday, April 8th at 1159pm.docx
SOC212 - Application Question #2Due Friday, April 8th at 1159pm.docxSOC212 - Application Question #2Due Friday, April 8th at 1159pm.docx
SOC212 - Application Question #2Due Friday, April 8th at 1159pm.docx
whitneyleman54422
 

Similar to Sentiment analysis (20)

02 naive bays classifier and sentiment analysis
02 naive bays classifier and sentiment analysis02 naive bays classifier and sentiment analysis
02 naive bays classifier and sentiment analysis
 
Continuous Sentiment Intensity Prediction based on Deep Learning
Continuous Sentiment Intensity Prediction based on Deep LearningContinuous Sentiment Intensity Prediction based on Deep Learning
Continuous Sentiment Intensity Prediction based on Deep Learning
 
Tangel Trends Report
Tangel Trends ReportTangel Trends Report
Tangel Trends Report
 
Yunchao he icot2015
Yunchao he icot2015Yunchao he icot2015
Yunchao he icot2015
 
Presentation Redux @ Lanco Infratch
Presentation Redux @ Lanco InfratchPresentation Redux @ Lanco Infratch
Presentation Redux @ Lanco Infratch
 
Zscores
ZscoresZscores
Zscores
 
Strategies Without Frontiers
Strategies Without FrontiersStrategies Without Frontiers
Strategies Without Frontiers
 
More Cat than Cute ? Interpretable Prediction of Adjective-Noun Pairs
More Cat than Cute ? Interpretable Prediction of Adjective-Noun PairsMore Cat than Cute ? Interpretable Prediction of Adjective-Noun Pairs
More Cat than Cute ? Interpretable Prediction of Adjective-Noun Pairs
 
Mike Thelwall - Sentiment strength detection for the social web: From YouTube...
Mike Thelwall - Sentiment strength detection for the social web: From YouTube...Mike Thelwall - Sentiment strength detection for the social web: From YouTube...
Mike Thelwall - Sentiment strength detection for the social web: From YouTube...
 
Michael Thelwall "Sentiment strength detection for the social web: From YouTu...
Michael Thelwall "Sentiment strength detection for the social web: From YouTu...Michael Thelwall "Sentiment strength detection for the social web: From YouTu...
Michael Thelwall "Sentiment strength detection for the social web: From YouTu...
 
Cs221 lecture5-fall11
Cs221 lecture5-fall11Cs221 lecture5-fall11
Cs221 lecture5-fall11
 
Hypothesis Testing: Proportions (Compare 1:1)
Hypothesis Testing: Proportions (Compare 1:1)Hypothesis Testing: Proportions (Compare 1:1)
Hypothesis Testing: Proportions (Compare 1:1)
 
Division inset
Division insetDivision inset
Division inset
 
Hypothesis Testing: Proportions (Compare 1:Standard)
Hypothesis Testing: Proportions (Compare 1:Standard)Hypothesis Testing: Proportions (Compare 1:Standard)
Hypothesis Testing: Proportions (Compare 1:Standard)
 
Hypothesis Testing: Proportions (Compare 2+ Factors)
Hypothesis Testing: Proportions (Compare 2+ Factors)Hypothesis Testing: Proportions (Compare 2+ Factors)
Hypothesis Testing: Proportions (Compare 2+ Factors)
 
Estimating the confidence of speech spoofing countermeasure
Estimating the confidence of speech spoofing countermeasureEstimating the confidence of speech spoofing countermeasure
Estimating the confidence of speech spoofing countermeasure
 
SOC212 - Application Question #2Due Friday, April 8th at 1159pm.docx
SOC212 - Application Question #2Due Friday, April 8th at 1159pm.docxSOC212 - Application Question #2Due Friday, April 8th at 1159pm.docx
SOC212 - Application Question #2Due Friday, April 8th at 1159pm.docx
 
Hypothesis Testing: Central Tendency – Normal (Compare 2+ Factors)
Hypothesis Testing: Central Tendency – Normal (Compare 2+ Factors)Hypothesis Testing: Central Tendency – Normal (Compare 2+ Factors)
Hypothesis Testing: Central Tendency – Normal (Compare 2+ Factors)
 
Sentiment Analysis.pptx
Sentiment Analysis.pptxSentiment Analysis.pptx
Sentiment Analysis.pptx
 
Big Data Analytics: The Math, the Implementation and How it can be Effectivel...
Big Data Analytics: The Math, the Implementation and How it can be Effectivel...Big Data Analytics: The Math, the Implementation and How it can be Effectivel...
Big Data Analytics: The Math, the Implementation and How it can be Effectivel...
 

More from Jason Packer

More from Jason Packer (17)

Third Party Cookies: Columbus DAW March 2024
Third Party Cookies: Columbus DAW March 2024Third Party Cookies: Columbus DAW March 2024
Third Party Cookies: Columbus DAW March 2024
 
Cbuswaw October '23, Marketing Mix Modeling
Cbuswaw October '23, Marketing Mix ModelingCbuswaw October '23, Marketing Mix Modeling
Cbuswaw October '23, Marketing Mix Modeling
 
Generative AI and SEO
Generative AI and SEOGenerative AI and SEO
Generative AI and SEO
 
DataOps , cbuswaw April '23
DataOps , cbuswaw April '23DataOps , cbuswaw April '23
DataOps , cbuswaw April '23
 
Google Analytics Alternatives
Google Analytics AlternativesGoogle Analytics Alternatives
Google Analytics Alternatives
 
Google Analytics Alternatives
Google Analytics AlternativesGoogle Analytics Alternatives
Google Analytics Alternatives
 
Web Analytics Wednesday April 2020 - Customer Journey Mapping
Web Analytics Wednesday April 2020 - Customer Journey MappingWeb Analytics Wednesday April 2020 - Customer Journey Mapping
Web Analytics Wednesday April 2020 - Customer Journey Mapping
 
Introduction to Factor Analysis
Introduction to Factor AnalysisIntroduction to Factor Analysis
Introduction to Factor Analysis
 
Product Analytics at Web Analytics Wednesday
Product Analytics at Web Analytics WednesdayProduct Analytics at Web Analytics Wednesday
Product Analytics at Web Analytics Wednesday
 
Columbus Web Analytics Wednesday September 2019
Columbus Web Analytics Wednesday September 2019Columbus Web Analytics Wednesday September 2019
Columbus Web Analytics Wednesday September 2019
 
How to Present Test Results to Inspire Action
How to Present Test Results to Inspire ActionHow to Present Test Results to Inspire Action
How to Present Test Results to Inspire Action
 
CBUSWAW - October 2017 Alain Stephan
CBUSWAW - October 2017 Alain StephanCBUSWAW - October 2017 Alain Stephan
CBUSWAW - October 2017 Alain Stephan
 
Attribution 101
Attribution 101Attribution 101
Attribution 101
 
CBUSWAW presentation July 2016
CBUSWAW presentation July 2016CBUSWAW presentation July 2016
CBUSWAW presentation July 2016
 
CBUSWAW presentation May 2016
CBUSWAW presentation May 2016CBUSWAW presentation May 2016
CBUSWAW presentation May 2016
 
Digging into Data Collection
Digging into Data CollectionDigging into Data Collection
Digging into Data Collection
 
Columbus WordCamp 2015
Columbus WordCamp 2015Columbus WordCamp 2015
Columbus WordCamp 2015
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

Sentiment analysis

Editor's Notes

  1. Annotated every phrase in a sentence for sentiment, which gives a great picture of compositionality.
  2. Concretely, annotated phrases for sentiment with a slider bar labeled from very negative (1) to very positive (25). Each phrase was scored by at least 3 annotators. The scores were then averaged and mapped between 0 and 1. Again as far as I can tell, nothing was done to ensure Turkers were not spamming.
  3. They took careful care to bin the annotations in something sensible, that matches the annotations. 5 way split as well as a binary split
  4. 5 way split as well as a binary split
  5. Recursive Neural Tensor Network trained on all nodes. All phrases: classification for every n-gram, and then restrict the data to full sentences (not broken down). I give you here the best results they achieved but with all the other models they tested, you have the same picture: big drop when trained at sentence-level for the 5-way classification.
  6. 2 tasks: builder – build sentiment analysis systems Breaker – minimal edit items from the test sets so that the system would “break” – where break means that it doesn’t assign the correct sentiment to exactly one of the items in the pair
  7. All systems miss that examples
  8. Here we see the raw scores: remember the scale goes from 1 to 25. The last two examples in each category are full sentences.
  9. And throwing away data for which high-annotator agreement isn’t obtained.
  10. Macro-average – the goal here was to see how much inclucing the compicated class impact the results. You can probably get better results with a better machine learning algorithm
  11. Sentiment analysis systems work well on the data they have been trained on.