SlideShare una empresa de Scribd logo
1 de 20
Descargar para leer sin conexión
Mining Explicit User Generated Content:
Sentiment Analysis
Kira Radinsky
Slides based on material from: Bing Liu (WWW-2008 tutorial)
2
Introduction
• Two main types of textual information.
– Facts and Opinions
• Most current text information processing
methods (e.g., web search, text mining) work
with factual information.
• Sentiment analysis/opinion mining
– computational study of opinions, sentiments and
emotions expressed in text.
– huge volumes of opinionated text on the web
3
User Generated Media
Word-of-mouth on the Web
– User-generated media: One can express opinions
on anything in reviews, forums, discussion groups,
blogs ...
– Opinions of global scale: No longer limited to:
• Individuals: one’s circle of friends
• Businesses: Small scale surveys, tiny focus
groups, etc.
An Example Review
• “I bought an iPhone a few days ago. It was such a nice
phone. The touch screen was really cool. The voice quality
was clear too. Although the battery life was not long, that
is ok for me. However, my mother was mad with me as I
did not tell her before I bought the phone. She also thought
the phone was too expensive, and wanted me to return it
to the shop. …”
• What do we see?
– Opinions, targets of opinions, and opinion holders
4
5
Target Object
• Definition (object): An object o is a product, person, event,
organization, or topic. o is represented as
– A hierarchy of components, sub-components, and so on.
– Each node represents a component and is associated with a
set of attributes of the component.
• An opinion can be expressed on any node or attribute of
the node (also called features)
* Liu, Web Data Mining book, 2006
What is an Opinion?
An opinion :
(oj, fjk, soijkl, hi, tl),
• oj is a target object.
• fjk is a feature of the object oj.
• hi is an opinion holder.
• tl is the time when the opinion is expressed.
• soijkl is the sentiment value of the opinion of
the opinion holder hi on feature fjk of object oj
at time tl. soijkl is +ve, -ve, or neu, or a more
granular rating. 6
Sentiment Analysis approaches
• Document level sentiment classification
– Unsupervised review classification (Turney, ACL-02)
– Sentiment classification using machine learning
methods (Pang et al, EMNLP-02)
• Sentence level sentiment analysis
– Using learnt patterns (Rilloff and Wiebe, EMNLP-03)
• Feature-based opinion mining and
summarization
– Next slides
8
Feature-Based Sentiment Analysis
• Objective: Discovering all quintuples
(oj, fjk, soijkl, hi, tl)
• Sentiment classification at both document and sentence
(or clause) levels are not enough,
– they do not tell what people like and/or dislike
– A positive opinion on an object does not mean that the opinion
holder likes everything.
– An negative opinion on an object does not mean that the opinion
holder dislikes everything.
9
Feature-Based Opinion Summary
“I bought an iPhone a few days
ago. It was such a nice phone.
The touch screen was really cool.
The voice quality was clear too.
Although the battery life was not
long, that is ok for me. However,
my mother was mad with me as
I did not tell her before I bought
the phone. She also thought the
phone was too expensive, and
wanted me to return it to the
shop. …”
Feature Based Summary:
Feature1: Touch screen
Positive: 212
• The touch screen was really cool.
• The touch screen was so easy to use
and can do amazing things.
…
Negative: 6
• The screen is easily scratched.
• I have a lot of difficulty in removing
finger marks from the touch screen.
…
Feature2: battery life
…
*Hu & Liu, KDD-2004
10
Visual Comparison
 Summary of
reviews of
Cell Phone 1
Voice Screen Size WeightBattery
+
_
 Comparison of
reviews of
Cell Phone 1
Cell Phone 2
_
+
* Liu et al. WWW-2005
Bing feature-based opinion summary
11
Sentiment Analysis is Hard!
• “This past Saturday, I bought a Nokia phone
and my girlfriend bought a Motorola phone
with Bluetooth. We called each other when we
got home. The voice on my phone was not so
clear, worse than my previous phone. The
battery life was long. My girlfriend was quite
happy with her phone. I wanted a phone with
good sound quality. So my purchase was a real
disappointment. I returned the phone
yesterday.”
12
Not Just ONE Problem
• (oj, fjk, soijkl, hi, tl),
– oj - a target object: Named Entity Extraction (more)
– fjk - a feature of oj: Information Extraction
– soijkl is sentiment: Sentiment determination
– hi is an opinion holder: Information/Data Extraction
– tl is the time: Data Extraction
• Co-reference resolution
• Relation extraction
• Synonym match (voice = sound quality) …
• None of them is a solved problem!
13
Easier and Harder Problems
• Reviews are easier.
– Objects/entities are given (almost), and little noise
• Forum discussions and blogs are harder.
– Objects are not given, and a large amount of noise
• Determining sentiments seems to be easier.
• Determining objects and their corresponding
features is harder.
• Combining them is even harder.
14
15
Two Main Types of Opinions
• Direct Opinions: direct sentiment expressions
on some target objects, e.g., products, events,
topics, persons.
– E.g., “the picture quality of this camera is great.”
• Comparative Opinions: Comparisons
expressing similarities or differences of more
than one object. Usually stating an ordering or
preference.
– E.g., “car x is cheaper than car y.”
16
Comparative Opinions
• Gradable
– Non-Equal Gradable: Relations of the type greater
or less than
• Ex: “optics of camera A is better than that of camera B”
– Equative: Relations of the type equal to
• Ex: “camera A and camera B both come in 7MP”
– Superlative: Relations of the type greater or less
than all others
• Ex: “camera A is the cheapest camera available in
market”
* Jindal and Liu, AAAI 2006
Mining Comparative Opinions
(Jinal and Liu, SIGIR-06)
Given a collection of evaluative texts
Task 1: Identify comparative sentences.
Task 2: Categorize different types of
comparative sentences.
Task 2: Extract comparative relations from the
sentences.
Identify comparative sentences
Keyword strategy
• An observation: It is easy to find a small set of
keywords that covers almost all comparative sentences, i.e.,
with a very high recall and a reasonable precision
• Compiled a list of 83 keywords used in comparative
sentences, which includes:
– Words with POS tags of JJR, JJS, RBR, RBS
• POS tags are used as keyword instead of individual
words.
• Exceptions: more, less, most and least
– Other indicative words like beat, exceed, ahead, etc
– Phrases like in the lead on par with etc
2-step learning strategy
• Step1: Extract sentences which contain at
least a keyword (recall = 98%, precision =32%
on our data set for gradables)
• Step2: Use the naïve Bayes (NB) classifier to
classify sentences into two classes:
comparative and non-comparative, and use
features like:
– Use words within radius r of a keyword to form a
sequence (words are replaced with POS tags)
– Use different minimum supports for different
keywords (multiple minimum supports)
Mining Comparative Opinions
1. (Bos and Nissim 2006) proposes a method to
extract items from superlative sentences. It
does not study sentiments either.
2. (Fiszman et al 2007) tried to identify which
entity has more of a certain property in a
comparative sentence.
3. (Ding and Liu 2008) studies sentiment
analysis of comparatives, i.e., identifying
which entity is preferred.
20

Más contenido relacionado

La actualidad más candente

Opinion Mining
Opinion MiningOpinion Mining
Opinion Mining
Ali Habeeb
 
NLP based Mining on Movie Critics
NLP based Mining on Movie Critics NLP based Mining on Movie Critics
NLP based Mining on Movie Critics
supraja reddy
 
Sentiment Analysis on Amazon Movie Reviews Dataset
Sentiment Analysis on Amazon Movie Reviews DatasetSentiment Analysis on Amazon Movie Reviews Dataset
Sentiment Analysis on Amazon Movie Reviews Dataset
Maham F'Rajput
 
Ontology based opinion mining for book reviews
Ontology based opinion mining for book reviewsOntology based opinion mining for book reviews
Ontology based opinion mining for book reviews
firzhan naqash
 

La actualidad más candente (20)

Sentiment Analysis
Sentiment AnalysisSentiment Analysis
Sentiment Analysis
 
Statistical Methods for Integration and Analysis of Online Opinionated Text...
Statistical Methods for Integration and Analysis of Online Opinionated Text...Statistical Methods for Integration and Analysis of Online Opinionated Text...
Statistical Methods for Integration and Analysis of Online Opinionated Text...
 
Opinion Mining
Opinion MiningOpinion Mining
Opinion Mining
 
Sentiment Analysis
Sentiment AnalysisSentiment Analysis
Sentiment Analysis
 
Potentials and limitations of ‘Automated Sentiment Analysis
Potentials and limitations of ‘Automated Sentiment AnalysisPotentials and limitations of ‘Automated Sentiment Analysis
Potentials and limitations of ‘Automated Sentiment Analysis
 
NLP based Mining on Movie Critics
NLP based Mining on Movie Critics NLP based Mining on Movie Critics
NLP based Mining on Movie Critics
 
Text classification & sentiment analysis
Text classification & sentiment analysisText classification & sentiment analysis
Text classification & sentiment analysis
 
Sentiment Analysis
Sentiment AnalysisSentiment Analysis
Sentiment Analysis
 
Ml ppt
Ml pptMl ppt
Ml ppt
 
Lexicon-Based Sentiment Analysis at GHC 2014
Lexicon-Based Sentiment Analysis at GHC 2014Lexicon-Based Sentiment Analysis at GHC 2014
Lexicon-Based Sentiment Analysis at GHC 2014
 
Enabling Opinion-Driven Decision Making - Sentiment Analysis Innovation Summit
Enabling Opinion-Driven Decision Making - Sentiment Analysis Innovation Summit Enabling Opinion-Driven Decision Making - Sentiment Analysis Innovation Summit
Enabling Opinion-Driven Decision Making - Sentiment Analysis Innovation Summit
 
Sentiment Analysis Using Hybrid Structure of Machine Learning Algorithms
Sentiment Analysis Using Hybrid Structure of Machine Learning AlgorithmsSentiment Analysis Using Hybrid Structure of Machine Learning Algorithms
Sentiment Analysis Using Hybrid Structure of Machine Learning Algorithms
 
Mining of product reviews at aspect level
Mining of product reviews at aspect levelMining of product reviews at aspect level
Mining of product reviews at aspect level
 
Introduction to Sentiment Analysis
Introduction to Sentiment AnalysisIntroduction to Sentiment Analysis
Introduction to Sentiment Analysis
 
Sentiment Analysis on Amazon Movie Reviews Dataset
Sentiment Analysis on Amazon Movie Reviews DatasetSentiment Analysis on Amazon Movie Reviews Dataset
Sentiment Analysis on Amazon Movie Reviews Dataset
 
Frame-based Sentiment Analysis with Sentilo
Frame-based Sentiment Analysis with SentiloFrame-based Sentiment Analysis with Sentilo
Frame-based Sentiment Analysis with Sentilo
 
Sentiment analysis
Sentiment analysisSentiment analysis
Sentiment analysis
 
Ontology based opinion mining for book reviews
Ontology based opinion mining for book reviewsOntology based opinion mining for book reviews
Ontology based opinion mining for book reviews
 
Presentation on Sentiment Analysis
Presentation on Sentiment AnalysisPresentation on Sentiment Analysis
Presentation on Sentiment Analysis
 
Social Media Sentiments Analysis
Social Media Sentiments AnalysisSocial Media Sentiments Analysis
Social Media Sentiments Analysis
 

Destacado (8)

Tutorial 14 (collaborative filtering)
Tutorial 14 (collaborative filtering)Tutorial 14 (collaborative filtering)
Tutorial 14 (collaborative filtering)
 
Tutorial 1 (information retrieval basics)
Tutorial 1 (information retrieval basics)Tutorial 1 (information retrieval basics)
Tutorial 1 (information retrieval basics)
 
Information retrieval s
Information retrieval sInformation retrieval s
Information retrieval s
 
Tutorial 12 (click models)
Tutorial 12 (click models)Tutorial 12 (click models)
Tutorial 12 (click models)
 
Tutorial 2 (mle + language models)
Tutorial 2 (mle + language models)Tutorial 2 (mle + language models)
Tutorial 2 (mle + language models)
 
Tutorial 9 (bloom filters)
Tutorial 9 (bloom filters)Tutorial 9 (bloom filters)
Tutorial 9 (bloom filters)
 
Tutorial 7 (link analysis)
Tutorial 7 (link analysis)Tutorial 7 (link analysis)
Tutorial 7 (link analysis)
 
Information storage and retrieval
Information storage and retrievalInformation storage and retrieval
Information storage and retrieval
 

Similar a Tutorial 13 (explicit ugc + sentiment analysis)

opinionminingkavitahyunduk00-110407113230-phpapp01.ppt
opinionminingkavitahyunduk00-110407113230-phpapp01.pptopinionminingkavitahyunduk00-110407113230-phpapp01.ppt
opinionminingkavitahyunduk00-110407113230-phpapp01.ppt
ssuser059331
 
opinionminingkavitahyunduk00-110407113230-phpapp01.ppt
opinionminingkavitahyunduk00-110407113230-phpapp01.pptopinionminingkavitahyunduk00-110407113230-phpapp01.ppt
opinionminingkavitahyunduk00-110407113230-phpapp01.ppt
ssuser059331
 
Conducting, analyzing and reporting in depth interviews slideshare 0213 dmf
Conducting, analyzing and reporting in depth interviews slideshare  0213 dmfConducting, analyzing and reporting in depth interviews slideshare  0213 dmf
Conducting, analyzing and reporting in depth interviews slideshare 0213 dmf
David Filiberto
 
Opinion Mining Techniques in Tourisms
Opinion Mining Techniques in TourismsOpinion Mining Techniques in Tourisms
Opinion Mining Techniques in Tourisms
Pawan Kumar Tiwari
 
Human computation, crowdsourcing and social: An industrial perspective
Human computation, crowdsourcing and social: An industrial perspectiveHuman computation, crowdsourcing and social: An industrial perspective
Human computation, crowdsourcing and social: An industrial perspective
oralonso
 
2005 Web Content Mining 4
2005 Web Content Mining   42005 Web Content Mining   4
2005 Web Content Mining 4
George Ang
 

Similar a Tutorial 13 (explicit ugc + sentiment analysis) (20)

Sentiment Analysis (GDSCTU).pdf
Sentiment Analysis (GDSCTU).pdfSentiment Analysis (GDSCTU).pdf
Sentiment Analysis (GDSCTU).pdf
 
Presentation for data science and data anayltics
Presentation for data science and data anaylticsPresentation for data science and data anayltics
Presentation for data science and data anayltics
 
opinionminingkavitahyunduk00-110407113230-phpapp01.ppt
opinionminingkavitahyunduk00-110407113230-phpapp01.pptopinionminingkavitahyunduk00-110407113230-phpapp01.ppt
opinionminingkavitahyunduk00-110407113230-phpapp01.ppt
 
opinionminingkavitahyunduk00-110407113230-phpapp01.ppt
opinionminingkavitahyunduk00-110407113230-phpapp01.pptopinionminingkavitahyunduk00-110407113230-phpapp01.ppt
opinionminingkavitahyunduk00-110407113230-phpapp01.ppt
 
Data Acquisition for Sentiment Analysis
Data Acquisition for Sentiment AnalysisData Acquisition for Sentiment Analysis
Data Acquisition for Sentiment Analysis
 
Tf4
Tf4Tf4
Tf4
 
Feature Based Opinion Mining from Amazon Reviews
Feature Based Opinion Mining from Amazon ReviewsFeature Based Opinion Mining from Amazon Reviews
Feature Based Opinion Mining from Amazon Reviews
 
Naïve multi label classification of you tube comments using
Naïve multi label classification of you tube comments usingNaïve multi label classification of you tube comments using
Naïve multi label classification of you tube comments using
 
Conducting, analyzing and reporting in depth interviews slideshare 0213 dmf
Conducting, analyzing and reporting in depth interviews slideshare  0213 dmfConducting, analyzing and reporting in depth interviews slideshare  0213 dmf
Conducting, analyzing and reporting in depth interviews slideshare 0213 dmf
 
Big Data & Sentiment Analysis
Big Data & Sentiment AnalysisBig Data & Sentiment Analysis
Big Data & Sentiment Analysis
 
Opinion Mining Techniques in Tourisms
Opinion Mining Techniques in TourismsOpinion Mining Techniques in Tourisms
Opinion Mining Techniques in Tourisms
 
Opinion mining techniques in tourisms
Opinion mining techniques in tourismsOpinion mining techniques in tourisms
Opinion mining techniques in tourisms
 
UX Field Research Toolkit - A Workshop at Big Design - 2017
UX Field Research Toolkit - A Workshop at Big Design - 2017UX Field Research Toolkit - A Workshop at Big Design - 2017
UX Field Research Toolkit - A Workshop at Big Design - 2017
 
Web Opinion Mining
Web Opinion MiningWeb Opinion Mining
Web Opinion Mining
 
Human computation, crowdsourcing and social: An industrial perspective
Human computation, crowdsourcing and social: An industrial perspectiveHuman computation, crowdsourcing and social: An industrial perspective
Human computation, crowdsourcing and social: An industrial perspective
 
data analysis.ppt
data analysis.pptdata analysis.ppt
data analysis.ppt
 
data analysis.pptx
data analysis.pptxdata analysis.pptx
data analysis.pptx
 
2005 Web Content Mining 4
2005 Web Content Mining   42005 Web Content Mining   4
2005 Web Content Mining 4
 
REVIEW PPT.pptx
REVIEW PPT.pptxREVIEW PPT.pptx
REVIEW PPT.pptx
 
Opinion mining
Opinion miningOpinion mining
Opinion mining
 

Más de Kira (7)

Tutorial 11 (computational advertising)
Tutorial 11 (computational advertising)Tutorial 11 (computational advertising)
Tutorial 11 (computational advertising)
 
Tutorial 10 (computational advertising)
Tutorial 10 (computational advertising)Tutorial 10 (computational advertising)
Tutorial 10 (computational advertising)
 
Tutorial 8 (web graph models)
Tutorial 8 (web graph models)Tutorial 8 (web graph models)
Tutorial 8 (web graph models)
 
Tutorial 6 (web graph attributes)
Tutorial 6 (web graph attributes)Tutorial 6 (web graph attributes)
Tutorial 6 (web graph attributes)
 
Tutorial 5 (lucene)
Tutorial 5 (lucene)Tutorial 5 (lucene)
Tutorial 5 (lucene)
 
Tutorial 4 (duplicate detection)
Tutorial 4 (duplicate detection)Tutorial 4 (duplicate detection)
Tutorial 4 (duplicate detection)
 
Tutorial 3 (b tree min heap)
Tutorial 3 (b tree min heap)Tutorial 3 (b tree min heap)
Tutorial 3 (b tree min heap)
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Último (20)

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 

Tutorial 13 (explicit ugc + sentiment analysis)

  • 1. Mining Explicit User Generated Content: Sentiment Analysis Kira Radinsky Slides based on material from: Bing Liu (WWW-2008 tutorial)
  • 2. 2 Introduction • Two main types of textual information. – Facts and Opinions • Most current text information processing methods (e.g., web search, text mining) work with factual information. • Sentiment analysis/opinion mining – computational study of opinions, sentiments and emotions expressed in text. – huge volumes of opinionated text on the web
  • 3. 3 User Generated Media Word-of-mouth on the Web – User-generated media: One can express opinions on anything in reviews, forums, discussion groups, blogs ... – Opinions of global scale: No longer limited to: • Individuals: one’s circle of friends • Businesses: Small scale surveys, tiny focus groups, etc.
  • 4. An Example Review • “I bought an iPhone a few days ago. It was such a nice phone. The touch screen was really cool. The voice quality was clear too. Although the battery life was not long, that is ok for me. However, my mother was mad with me as I did not tell her before I bought the phone. She also thought the phone was too expensive, and wanted me to return it to the shop. …” • What do we see? – Opinions, targets of opinions, and opinion holders 4
  • 5. 5 Target Object • Definition (object): An object o is a product, person, event, organization, or topic. o is represented as – A hierarchy of components, sub-components, and so on. – Each node represents a component and is associated with a set of attributes of the component. • An opinion can be expressed on any node or attribute of the node (also called features) * Liu, Web Data Mining book, 2006
  • 6. What is an Opinion? An opinion : (oj, fjk, soijkl, hi, tl), • oj is a target object. • fjk is a feature of the object oj. • hi is an opinion holder. • tl is the time when the opinion is expressed. • soijkl is the sentiment value of the opinion of the opinion holder hi on feature fjk of object oj at time tl. soijkl is +ve, -ve, or neu, or a more granular rating. 6
  • 7. Sentiment Analysis approaches • Document level sentiment classification – Unsupervised review classification (Turney, ACL-02) – Sentiment classification using machine learning methods (Pang et al, EMNLP-02) • Sentence level sentiment analysis – Using learnt patterns (Rilloff and Wiebe, EMNLP-03) • Feature-based opinion mining and summarization – Next slides
  • 8. 8 Feature-Based Sentiment Analysis • Objective: Discovering all quintuples (oj, fjk, soijkl, hi, tl) • Sentiment classification at both document and sentence (or clause) levels are not enough, – they do not tell what people like and/or dislike – A positive opinion on an object does not mean that the opinion holder likes everything. – An negative opinion on an object does not mean that the opinion holder dislikes everything.
  • 9. 9 Feature-Based Opinion Summary “I bought an iPhone a few days ago. It was such a nice phone. The touch screen was really cool. The voice quality was clear too. Although the battery life was not long, that is ok for me. However, my mother was mad with me as I did not tell her before I bought the phone. She also thought the phone was too expensive, and wanted me to return it to the shop. …” Feature Based Summary: Feature1: Touch screen Positive: 212 • The touch screen was really cool. • The touch screen was so easy to use and can do amazing things. … Negative: 6 • The screen is easily scratched. • I have a lot of difficulty in removing finger marks from the touch screen. … Feature2: battery life … *Hu & Liu, KDD-2004
  • 10. 10 Visual Comparison  Summary of reviews of Cell Phone 1 Voice Screen Size WeightBattery + _  Comparison of reviews of Cell Phone 1 Cell Phone 2 _ + * Liu et al. WWW-2005
  • 12. Sentiment Analysis is Hard! • “This past Saturday, I bought a Nokia phone and my girlfriend bought a Motorola phone with Bluetooth. We called each other when we got home. The voice on my phone was not so clear, worse than my previous phone. The battery life was long. My girlfriend was quite happy with her phone. I wanted a phone with good sound quality. So my purchase was a real disappointment. I returned the phone yesterday.” 12
  • 13. Not Just ONE Problem • (oj, fjk, soijkl, hi, tl), – oj - a target object: Named Entity Extraction (more) – fjk - a feature of oj: Information Extraction – soijkl is sentiment: Sentiment determination – hi is an opinion holder: Information/Data Extraction – tl is the time: Data Extraction • Co-reference resolution • Relation extraction • Synonym match (voice = sound quality) … • None of them is a solved problem! 13
  • 14. Easier and Harder Problems • Reviews are easier. – Objects/entities are given (almost), and little noise • Forum discussions and blogs are harder. – Objects are not given, and a large amount of noise • Determining sentiments seems to be easier. • Determining objects and their corresponding features is harder. • Combining them is even harder. 14
  • 15. 15 Two Main Types of Opinions • Direct Opinions: direct sentiment expressions on some target objects, e.g., products, events, topics, persons. – E.g., “the picture quality of this camera is great.” • Comparative Opinions: Comparisons expressing similarities or differences of more than one object. Usually stating an ordering or preference. – E.g., “car x is cheaper than car y.”
  • 16. 16 Comparative Opinions • Gradable – Non-Equal Gradable: Relations of the type greater or less than • Ex: “optics of camera A is better than that of camera B” – Equative: Relations of the type equal to • Ex: “camera A and camera B both come in 7MP” – Superlative: Relations of the type greater or less than all others • Ex: “camera A is the cheapest camera available in market” * Jindal and Liu, AAAI 2006
  • 17. Mining Comparative Opinions (Jinal and Liu, SIGIR-06) Given a collection of evaluative texts Task 1: Identify comparative sentences. Task 2: Categorize different types of comparative sentences. Task 2: Extract comparative relations from the sentences.
  • 18. Identify comparative sentences Keyword strategy • An observation: It is easy to find a small set of keywords that covers almost all comparative sentences, i.e., with a very high recall and a reasonable precision • Compiled a list of 83 keywords used in comparative sentences, which includes: – Words with POS tags of JJR, JJS, RBR, RBS • POS tags are used as keyword instead of individual words. • Exceptions: more, less, most and least – Other indicative words like beat, exceed, ahead, etc – Phrases like in the lead on par with etc
  • 19. 2-step learning strategy • Step1: Extract sentences which contain at least a keyword (recall = 98%, precision =32% on our data set for gradables) • Step2: Use the naïve Bayes (NB) classifier to classify sentences into two classes: comparative and non-comparative, and use features like: – Use words within radius r of a keyword to form a sequence (words are replaced with POS tags) – Use different minimum supports for different keywords (multiple minimum supports)
  • 20. Mining Comparative Opinions 1. (Bos and Nissim 2006) proposes a method to extract items from superlative sentences. It does not study sentiments either. 2. (Fiszman et al 2007) tried to identify which entity has more of a certain property in a comparative sentence. 3. (Ding and Liu 2008) studies sentiment analysis of comparatives, i.e., identifying which entity is preferred. 20