SlideShare a Scribd company logo
1 of 31
Semantic Patterns for Sentiment 
Analysis of Twitter 
Hassan Saif, Yulan He, Miriam Fernandez and Harith Alani 
The 13th International Semantic Web Conference (ISWC2014) 
May 2014
OutLine 
o Sentiment Analysis 
o Traditional Sentiment Analysis 
o Pattern-based Sentiment Analysis 
o Semantic Sentiment Patterns 
o Evaluation 
o Results 
o Conclusion
Sentiment Analysis 
“Sentiment analysis is the task of identifying 
positive and negative opinions, emotions and 
evaluations in text” 
3 
Nooo, it is very 
humid :( 
The weather is 
great today :) 
I think its almost 
30 degrees today 
Opinion Fact Opinion
Traditional Sentiment Analysis 
Training Features: 
– Syntactic features 
(letter, n-grams, 
word n-grams, POS 
tags, etc) 
– Linguistic Features 
(Synonyms, glosses, 
etc) 
(1) The Lexicon-based Approach 
(1) The Machine Learning Approach 
Just got my new iPhone 6, looks 
and feel great! :D 
Sentiment Lexicon 
great sad 
down 
wrong
Traditional Sentiment Analysis 
However.. 
Sentiment is often expressed via more subtle relations, 
patterns and dependencies among words in tweets: 
Destroy Invading Germs 
Negative Negative Concept 
Positive Sentiment
Pattern-based Sentiment Analysis 
Syntactic Pattern Approaches 
Semantic Pattern Approaches
Syntactic Pattern Approaches 
• Based on syntactic relations between words. 
• Rely on predefined POS templates: 
<subject> passive-verb <subject> active-verb 
<customer> was satisfied <she> complained 
• But, they are Semantically Weak! 
<beer> is cold 
<subject> verb cold 
<weather> is cold
Semantic Pattern Approaches 
• Apply syntactic and semantic processing techniques 
• Use external semantic resources (Ontologies, Semantic 
Networks, etc.) 
• Capture the conceptual semantic relations in text that implicitly 
convey sentiment 
– Happy birthday (Positive) 
– Invading Germs (Negative)
Syntactic & Semantic Pattern Approaches 
are not tailored to 
Twitter
Syntactic & Semantic Pattern 
Approaches 
Are designed to function on 
Formal Text, that is: 
1. Long enough 
2. Well-Structured 
3. Formal Sentences
Tweets are often 
• Short! 
• Noisy and messy 
• Have informal, and 
ill-structured sentences
We Propose.. 
 A pattern-based approach 
 Works on Twitter 
 Does not rely on the syntactic structures of tweets or pre-defined 
syntactic templates 
 Does not rely on or semantic knowledge sources. 
 Automatically extracts patterns from the 
contextual semantic and sentiment similarities of 
words in tweets
Contextual Semantics and Sentiment 
Contextual Semantics 
• Contextual Semantics refer to semantics inferred 
from words’ co-occurrences in tweets. 
“Words that occur in similar context tend to have similar meaning” 
Wittgenstein (1953) 
Threat 
Hack 
Trojan Horse 
Dangerous 
Code 
Program 
Harm 
Malware 
Greek Tale 
Trojan Horse 
History 
Troy 
Wooden Class
Contextual Semantic Sentiment Patterns 
“Some words in different tweets tend to come with similar contextual semantics 
and sentiment, forming therefore specific clusters or patterns. 
Threat 
Trojan Horse 
Hack 
Code 
Dangerous 
Spyware 
Program 
Harm 
Malware
Contextual Semantic Sentiment Patterns 
Threat 
Trojan Horse 
Hack 
Code 
Dangerous 
Spyware 
Program 
Harm 
Malware 
C_Semantics(Worms) 
Negative Contextual Pattern 
C_Semantics(Adware) 
C_Semantics(Time bombs) 
Follow 
Follow 
Follow
Pattern Extraction 
Tweets 
Sentiment Lexicon 
Capturing Contextual 
Semantics & Sentiment 
Syntactical Preprocessing 
Extracting Semantic 
Sentiment Patterns 
Bag of 
SentiCircles 
Bag of 
SS-Patterns 
1. Syntactical Preprocessing of tweets 
2. Capturing the Contextual Semantics and Sentiment of 
words 
3. Extracting Semantic Sentiment Patterns 
Pipeline
(1) Syntactical Preprocessing 
• All URL links are replaced with the term “URL” 
• Remove all non-ASCII and non-English characters 
• Revert words that contain repeated letters to 
their original English form. 
– “maaadddd” will be converted to “mad” after 
processing.
(2) Capturing Contextual Semantics & Sentiment 
The SentiCircle Approach 
Context Terms 
Term (m) C1 
Trojan Horse 
Prior Sentiment 
DanCg1erous fix 
Degree of Correlation 
X = R * COS(θ) Y = R * SIN(θ) 
SentiCircle of “Trojan Horse” 
+1 
Very Positive Positive 
useful discover 
easily 
-1 +1 Neutral 
xi 
Dangerous 
X 
ri 
θi 
yi 
destroy 
Very Negative Negative 
-1 
Region 
ri = TDOC(Ci) 
θi = Prior_Sentiment (Ci) * π 
threat 
Malicious 
attack 
Overall Contextual Sentiment (Senti-Median) 
Saif, H., Fernandez, M., He, Y. and Alani, H. (2014) SentiCircles for Contextual and Conceptual Semantic Sentiment Analysis of Twitter, ESWC2014
(3) Extracting Semantic Sentiment Patterns 
Patterns are extracted by finding clusters of 
Similar SentiCircles 
iPod 
Spyw 
are 
Oprah 
Obam 
a 
SentiCircle’s Feature Vector 
Geometry Density Dispersion 
(1) 
(2) K-means 
SS-Patterns 
SentiCircle’s Feature Vectors
Evaluation 
SS-Patterns 
Training 
Sentiment 
Classifiers 
Entity-level Sentiment Analysis 
Detect the sentiment (Positive, 
Negative, Neutral) of named entities 
extracted from tweets 
Tweet-level Sentiment Analysis 
Detect the overall sentiment 
(Positive, Negative) of a tweet.
Evaluation Setup (1) 
Sentiment Classifiers 
– Tweet-Level 
• Maximum Entropy (MaxEnt) 
• Naïve Bayes (NB) 
– Entity-Level 
• MLE Classifier
Datasets 
Evaluation Setup (2) 
Tweet-level 
9 Twitter datasets 
Entity-Level 
58 manually 
annotated named 
entities
Evaluation Setup (3) 
Baseline Features 
Syntactic Features 
Unigrams Individual unique terms in tweets 
POS Features Words’ part-of-speech tags 
Twitter Features Usernames, emoticons, hashtags, etc 
Lexicon Features Prior sentiment of words in a given sentiment 
lexicon(e.g., great->positive, destroy->negative) 
Semantic Features 
LDA-Topic Features Topics generated by LDA 
Semantic Concepts Semantic concepts of named entities in tweets (e.g., 
Obama -> Person, London -> City)
Results
Tweet-Level Sentiment Analysis (1) 
The baseline model is a sentiment classifier trained 
from word unigram features. 
• MaxEnt outperforms NB in average Accuracy and 
F1-measure
Tweet-Level Sentiment Analysis (2) 
Win/Loss in Accuracy and F-measure of using different features for sentiment 
classification on all nine datasets.
Entity-Level Sentiment Analysis 
SS-Patterns produce 6.31% and 7.5% higher accuracy and F-measure than other features 
67.00 
65.00 
63.00 
61.00 
59.00 
57.00 
55.00 
Accuracy F1 
Unigrams LDA-Topics Semantic Concepts SS-Patterns
Within-Pattern Sentiment Consistency 
• Refers to the percentage of words having 
similar sentiment within a given pattern. 
• Strongly consistent patterns are those whose 
terms have similar sentiment.
Within-Pattern Sentiment Consistency 
• STS-Entity Dataset: 
– 58 Entities 14 SS-Patterns 
Consistency(Pattern12) = 88.89% 
Consistency(Pattern5) = 50% 
(Strongly Consistent) 
(Poorly Consistent) 
Average Sentiment Consistency (14 SS-Patterns) = 88%
Conclusion 
• We proposed a new approach for automatically extracting patterns 
from the contextual semantic and sentiment similarities of words in 
tweets. 
• Used patterns as features in tweet- and entity-level sentiment 
classification tasks 
• SS-Patterns consistently outperformed the syntactic and semantic 
type of features for entity- and tweet-level sentiment analysis 
• Conducted quantitative analysis on a sample of our extracted SS-Patterns 
and show that our patterns are strongly consistent with 
the sentiment of the words within them.
Thank You 
Email: hassan.saif@open.ac.uk 
Twitter: hrsaif 
Website: tweenator.com

More Related Content

What's hot

MTech Seminar Presentation [IIT-Bombay]
MTech Seminar Presentation [IIT-Bombay]MTech Seminar Presentation [IIT-Bombay]
MTech Seminar Presentation [IIT-Bombay]Sagar Ahire
 
Sentiment Analysis
Sentiment AnalysisSentiment Analysis
Sentiment AnalysisAnkur Tyagi
 
Sarcasm Detection: Achilles Heel of sentiment analysis
Sarcasm Detection: Achilles Heel of sentiment analysisSarcasm Detection: Achilles Heel of sentiment analysis
Sarcasm Detection: Achilles Heel of sentiment analysisAnuj Gupta
 
Sentiment Analysis
Sentiment AnalysisSentiment Analysis
Sentiment AnalysisSagar Ahire
 
Query recommendation papers
Query recommendation papersQuery recommendation papers
Query recommendation papersAshish Kulkarni
 
Sentiment Analysis
Sentiment AnalysisSentiment Analysis
Sentiment Analysisishan0019
 
Sentiment Analysis
Sentiment AnalysisSentiment Analysis
Sentiment Analysisharit66
 
Sentiment analyzer and opinion mining
Sentiment analyzer and opinion miningSentiment analyzer and opinion mining
Sentiment analyzer and opinion miningAnkush Mehta
 
Sentiment analysis
Sentiment analysisSentiment analysis
Sentiment analysisAmenda Joy
 
The sarcasm detection with the method of logistic regression
The sarcasm detection with the method of logistic regressionThe sarcasm detection with the method of logistic regression
The sarcasm detection with the method of logistic regressionEditorIJAERD
 
A review of sentiment analysis approaches in big
A review of sentiment analysis approaches in bigA review of sentiment analysis approaches in big
A review of sentiment analysis approaches in bigNurfadhlina Mohd Sharef
 
Textual & Sentiment Analysis of Movie Reviews
Textual & Sentiment Analysis of Movie ReviewsTextual & Sentiment Analysis of Movie Reviews
Textual & Sentiment Analysis of Movie ReviewsYousef Fadila
 
Sentence representations and question answering (YerevaNN)
Sentence representations and question answering (YerevaNN)Sentence representations and question answering (YerevaNN)
Sentence representations and question answering (YerevaNN)YerevaNN research lab
 
RCOMM 2011 - Sentiment Classification with RapidMiner
RCOMM 2011 - Sentiment Classification with RapidMinerRCOMM 2011 - Sentiment Classification with RapidMiner
RCOMM 2011 - Sentiment Classification with RapidMinerbohanairl
 
HashCount for SemEval-2018 Task 3: Concatenative Featurization of Tweet and H...
HashCount for SemEval-2018 Task 3: Concatenative Featurization of Tweet and H...HashCount for SemEval-2018 Task 3: Concatenative Featurization of Tweet and H...
HashCount for SemEval-2018 Task 3: Concatenative Featurization of Tweet and H...WarNik Chow
 

What's hot (20)

Sentiment analysis
Sentiment analysisSentiment analysis
Sentiment analysis
 
2 13
2 132 13
2 13
 
sentiment analysis
sentiment analysis sentiment analysis
sentiment analysis
 
MTech Seminar Presentation [IIT-Bombay]
MTech Seminar Presentation [IIT-Bombay]MTech Seminar Presentation [IIT-Bombay]
MTech Seminar Presentation [IIT-Bombay]
 
Sentiment Analysis
Sentiment AnalysisSentiment Analysis
Sentiment Analysis
 
Sarcasm Detection: Achilles Heel of sentiment analysis
Sarcasm Detection: Achilles Heel of sentiment analysisSarcasm Detection: Achilles Heel of sentiment analysis
Sarcasm Detection: Achilles Heel of sentiment analysis
 
Sentiment Analysis
Sentiment AnalysisSentiment Analysis
Sentiment Analysis
 
Query recommendation papers
Query recommendation papersQuery recommendation papers
Query recommendation papers
 
Sentiment Analysis
Sentiment AnalysisSentiment Analysis
Sentiment Analysis
 
Sentiment Analysis
Sentiment AnalysisSentiment Analysis
Sentiment Analysis
 
Final deck
Final deckFinal deck
Final deck
 
Sentiment analyzer and opinion mining
Sentiment analyzer and opinion miningSentiment analyzer and opinion mining
Sentiment analyzer and opinion mining
 
Sentiment analysis
Sentiment analysisSentiment analysis
Sentiment analysis
 
The sarcasm detection with the method of logistic regression
The sarcasm detection with the method of logistic regressionThe sarcasm detection with the method of logistic regression
The sarcasm detection with the method of logistic regression
 
A review of sentiment analysis approaches in big
A review of sentiment analysis approaches in bigA review of sentiment analysis approaches in big
A review of sentiment analysis approaches in big
 
Textual & Sentiment Analysis of Movie Reviews
Textual & Sentiment Analysis of Movie ReviewsTextual & Sentiment Analysis of Movie Reviews
Textual & Sentiment Analysis of Movie Reviews
 
Sentence representations and question answering (YerevaNN)
Sentence representations and question answering (YerevaNN)Sentence representations and question answering (YerevaNN)
Sentence representations and question answering (YerevaNN)
 
RCOMM 2011 - Sentiment Classification with RapidMiner
RCOMM 2011 - Sentiment Classification with RapidMinerRCOMM 2011 - Sentiment Classification with RapidMiner
RCOMM 2011 - Sentiment Classification with RapidMiner
 
HashCount for SemEval-2018 Task 3: Concatenative Featurization of Tweet and H...
HashCount for SemEval-2018 Task 3: Concatenative Featurization of Tweet and H...HashCount for SemEval-2018 Task 3: Concatenative Featurization of Tweet and H...
HashCount for SemEval-2018 Task 3: Concatenative Featurization of Tweet and H...
 
Project report
Project reportProject report
Project report
 

Similar to Semantic Patterns for Sentiment Analysis of Twitter

NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptxNLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptxBoston Institute of Analytics
 
Extraction of Socio-Semantic Data from Chat Conversations in Collaborative Le...
Extraction of Socio-Semantic Data from Chat Conversations in Collaborative Le...Extraction of Socio-Semantic Data from Chat Conversations in Collaborative Le...
Extraction of Socio-Semantic Data from Chat Conversations in Collaborative Le...Traian Rebedea
 
Iulia Pasov, Sixt. Trends in sentiment analysis. The entire history from rule...
Iulia Pasov, Sixt. Trends in sentiment analysis. The entire history from rule...Iulia Pasov, Sixt. Trends in sentiment analysis. The entire history from rule...
Iulia Pasov, Sixt. Trends in sentiment analysis. The entire history from rule...IT Arena
 
Sentiment Analysis of Film-Related Messages on Social Media
Sentiment Analysis of Film-Related Messages on Social MediaSentiment Analysis of Film-Related Messages on Social Media
Sentiment Analysis of Film-Related Messages on Social MediaDomino Data Lab
 
A review on sentiment analysis and emotion detection.pptx
A review on sentiment analysis and emotion detection.pptxA review on sentiment analysis and emotion detection.pptx
A review on sentiment analysis and emotion detection.pptxvoicemail1
 
Why Watson Won: A cognitive perspective
Why Watson Won: A cognitive perspectiveWhy Watson Won: A cognitive perspective
Why Watson Won: A cognitive perspectiveJames Hendler
 
Analyzing Arguments during a Debate using Natural Language Processing in Python
Analyzing Arguments during a Debate using Natural Language Processing in PythonAnalyzing Arguments during a Debate using Natural Language Processing in Python
Analyzing Arguments during a Debate using Natural Language Processing in PythonAbhinav Gupta
 
Unsupervised Software-Specific Morphological Forms Inference from Informal Di...
Unsupervised Software-Specific Morphological Forms Inference from Informal Di...Unsupervised Software-Specific Morphological Forms Inference from Informal Di...
Unsupervised Software-Specific Morphological Forms Inference from Informal Di...Chunyang Chen
 
Do you Mean what you say? Recognizing Emotions.
Do you Mean what you say? Recognizing Emotions.Do you Mean what you say? Recognizing Emotions.
Do you Mean what you say? Recognizing Emotions.Sunil Kumar Kopparapu
 
Frame-based Sentiment Analysis with Sentilo
Frame-based Sentiment Analysis with SentiloFrame-based Sentiment Analysis with Sentilo
Frame-based Sentiment Analysis with SentiloValentina Presutti
 
110917_0900_Karimi.pdf
110917_0900_Karimi.pdf110917_0900_Karimi.pdf
110917_0900_Karimi.pdfJayashankara3
 
Engineering Intelligent NLP Applications Using Deep Learning – Part 1
Engineering Intelligent NLP Applications Using Deep Learning – Part 1Engineering Intelligent NLP Applications Using Deep Learning – Part 1
Engineering Intelligent NLP Applications Using Deep Learning – Part 1Saurabh Kaushik
 
detect emotion from text
detect emotion from textdetect emotion from text
detect emotion from textSafayet Hossain
 
Multiple Methods and Techniques in Analyzing Computer-Supported Collaborative...
Multiple Methods and Techniques in Analyzing Computer-Supported Collaborative...Multiple Methods and Techniques in Analyzing Computer-Supported Collaborative...
Multiple Methods and Techniques in Analyzing Computer-Supported Collaborative...CITE
 
Artificial Intelligence (3).pdf
Artificial Intelligence (3).pdfArtificial Intelligence (3).pdf
Artificial Intelligence (3).pdfsweta836730
 

Similar to Semantic Patterns for Sentiment Analysis of Twitter (20)

NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptxNLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
 
Extraction of Socio-Semantic Data from Chat Conversations in Collaborative Le...
Extraction of Socio-Semantic Data from Chat Conversations in Collaborative Le...Extraction of Socio-Semantic Data from Chat Conversations in Collaborative Le...
Extraction of Socio-Semantic Data from Chat Conversations in Collaborative Le...
 
Iulia Pasov, Sixt. Trends in sentiment analysis. The entire history from rule...
Iulia Pasov, Sixt. Trends in sentiment analysis. The entire history from rule...Iulia Pasov, Sixt. Trends in sentiment analysis. The entire history from rule...
Iulia Pasov, Sixt. Trends in sentiment analysis. The entire history from rule...
 
NLP
NLPNLP
NLP
 
Sentiment Analysis of Film-Related Messages on Social Media
Sentiment Analysis of Film-Related Messages on Social MediaSentiment Analysis of Film-Related Messages on Social Media
Sentiment Analysis of Film-Related Messages on Social Media
 
Aaai 2006 Pedersen
Aaai 2006 PedersenAaai 2006 Pedersen
Aaai 2006 Pedersen
 
A review on sentiment analysis and emotion detection.pptx
A review on sentiment analysis and emotion detection.pptxA review on sentiment analysis and emotion detection.pptx
A review on sentiment analysis and emotion detection.pptx
 
Eacl 2006 Pedersen
Eacl 2006 PedersenEacl 2006 Pedersen
Eacl 2006 Pedersen
 
Why Watson Won: A cognitive perspective
Why Watson Won: A cognitive perspectiveWhy Watson Won: A cognitive perspective
Why Watson Won: A cognitive perspective
 
Analyzing Arguments during a Debate using Natural Language Processing in Python
Analyzing Arguments during a Debate using Natural Language Processing in PythonAnalyzing Arguments during a Debate using Natural Language Processing in Python
Analyzing Arguments during a Debate using Natural Language Processing in Python
 
Unsupervised Software-Specific Morphological Forms Inference from Informal Di...
Unsupervised Software-Specific Morphological Forms Inference from Informal Di...Unsupervised Software-Specific Morphological Forms Inference from Informal Di...
Unsupervised Software-Specific Morphological Forms Inference from Informal Di...
 
Do you Mean what you say? Recognizing Emotions.
Do you Mean what you say? Recognizing Emotions.Do you Mean what you say? Recognizing Emotions.
Do you Mean what you say? Recognizing Emotions.
 
sent_analysis_report
sent_analysis_reportsent_analysis_report
sent_analysis_report
 
Frame-based Sentiment Analysis with Sentilo
Frame-based Sentiment Analysis with SentiloFrame-based Sentiment Analysis with Sentilo
Frame-based Sentiment Analysis with Sentilo
 
Eurolan 2005 Pedersen
Eurolan 2005 PedersenEurolan 2005 Pedersen
Eurolan 2005 Pedersen
 
110917_0900_Karimi.pdf
110917_0900_Karimi.pdf110917_0900_Karimi.pdf
110917_0900_Karimi.pdf
 
Engineering Intelligent NLP Applications Using Deep Learning – Part 1
Engineering Intelligent NLP Applications Using Deep Learning – Part 1Engineering Intelligent NLP Applications Using Deep Learning – Part 1
Engineering Intelligent NLP Applications Using Deep Learning – Part 1
 
detect emotion from text
detect emotion from textdetect emotion from text
detect emotion from text
 
Multiple Methods and Techniques in Analyzing Computer-Supported Collaborative...
Multiple Methods and Techniques in Analyzing Computer-Supported Collaborative...Multiple Methods and Techniques in Analyzing Computer-Supported Collaborative...
Multiple Methods and Techniques in Analyzing Computer-Supported Collaborative...
 
Artificial Intelligence (3).pdf
Artificial Intelligence (3).pdfArtificial Intelligence (3).pdf
Artificial Intelligence (3).pdf
 

Recently uploaded

办理伯明翰大学毕业证书文凭学位证书
办理伯明翰大学毕业证书文凭学位证书办理伯明翰大学毕业证书文凭学位证书
办理伯明翰大学毕业证书文凭学位证书saphesg8
 
Unlock Your Social Media Potential with IndianLikes - IndianLikes.com
Unlock Your Social Media Potential with IndianLikes - IndianLikes.comUnlock Your Social Media Potential with IndianLikes - IndianLikes.com
Unlock Your Social Media Potential with IndianLikes - IndianLikes.comSagar Sinha
 
Spotify AI DJ Deck - The Agency at University of Florida
Spotify AI DJ Deck - The Agency at University of FloridaSpotify AI DJ Deck - The Agency at University of Florida
Spotify AI DJ Deck - The Agency at University of Floridajorirz24
 
Cosmic Conversations with Sociocosmos...
Cosmic Conversations with Sociocosmos...Cosmic Conversations with Sociocosmos...
Cosmic Conversations with Sociocosmos...SocioCosmos
 
Add more information to your upload Tip: Better titles and descriptions lead ...
Add more information to your upload Tip: Better titles and descriptions lead ...Add more information to your upload Tip: Better titles and descriptions lead ...
Add more information to your upload Tip: Better titles and descriptions lead ...SejarahLokal
 
AI Virtual Influencers: The Future of Influencer Marketing
AI Virtual Influencers:  The Future of Influencer MarketingAI Virtual Influencers:  The Future of Influencer Marketing
AI Virtual Influencers: The Future of Influencer MarketingCut-the-SaaS
 
Independent Escorts Lucknow 8923113531 WhatsApp luxurious locale in your city...
Independent Escorts Lucknow 8923113531 WhatsApp luxurious locale in your city...Independent Escorts Lucknow 8923113531 WhatsApp luxurious locale in your city...
Independent Escorts Lucknow 8923113531 WhatsApp luxurious locale in your city...makika9823
 
AI Virtual Influencers: The Future of Influencer Marketing
AI Virtual Influencers:  The Future of Influencer MarketingAI Virtual Influencers:  The Future of Influencer Marketing
AI Virtual Influencers: The Future of Influencer MarketingCut-the-SaaS
 
Protecting Your Little Explorer at Home!
Protecting Your Little Explorer at Home!Protecting Your Little Explorer at Home!
Protecting Your Little Explorer at Home!andrekr997
 
定制(ENU毕业证书)英国爱丁堡龙比亚大学毕业证成绩单原版一比一
定制(ENU毕业证书)英国爱丁堡龙比亚大学毕业证成绩单原版一比一定制(ENU毕业证书)英国爱丁堡龙比亚大学毕业证成绩单原版一比一
定制(ENU毕业证书)英国爱丁堡龙比亚大学毕业证成绩单原版一比一ra6e69ou
 
Impact Of Educational Resources on Students' Academic Performance in Economic...
Impact Of Educational Resources on Students' Academic Performance in Economic...Impact Of Educational Resources on Students' Academic Performance in Economic...
Impact Of Educational Resources on Students' Academic Performance in Economic...AJHSSR Journal
 
Mastering Wealth with YouTube Content Marketing.pdf
Mastering Wealth with YouTube Content Marketing.pdfMastering Wealth with YouTube Content Marketing.pdf
Mastering Wealth with YouTube Content Marketing.pdfTirupati Social Media
 
Top Astrologer, Kala ilam specialist in USA and Bangali Amil baba in Saudi Ar...
Top Astrologer, Kala ilam specialist in USA and Bangali Amil baba in Saudi Ar...Top Astrologer, Kala ilam specialist in USA and Bangali Amil baba in Saudi Ar...
Top Astrologer, Kala ilam specialist in USA and Bangali Amil baba in Saudi Ar...baharayali
 
Upgrade Your Twitter Presence with Socio Cosmos
Upgrade Your Twitter Presence with Socio CosmosUpgrade Your Twitter Presence with Socio Cosmos
Upgrade Your Twitter Presence with Socio CosmosSocioCosmos
 
IMPACT OF FISCAL POLICY AND MONETARY POLICY ON THE ECONOMIC GROWTH OF NIGERIA...
IMPACT OF FISCAL POLICY AND MONETARY POLICY ON THE ECONOMIC GROWTH OF NIGERIA...IMPACT OF FISCAL POLICY AND MONETARY POLICY ON THE ECONOMIC GROWTH OF NIGERIA...
IMPACT OF FISCAL POLICY AND MONETARY POLICY ON THE ECONOMIC GROWTH OF NIGERIA...AJHSSR Journal
 
Call^ Girls Delhi Independent girls Chanakyapuri 9711199012 Call Me
Call^ Girls Delhi Independent girls Chanakyapuri 9711199012 Call MeCall^ Girls Delhi Independent girls Chanakyapuri 9711199012 Call Me
Call^ Girls Delhi Independent girls Chanakyapuri 9711199012 Call MeMs Riya
 

Recently uploaded (20)

办理伯明翰大学毕业证书文凭学位证书
办理伯明翰大学毕业证书文凭学位证书办理伯明翰大学毕业证书文凭学位证书
办理伯明翰大学毕业证书文凭学位证书
 
Unlock Your Social Media Potential with IndianLikes - IndianLikes.com
Unlock Your Social Media Potential with IndianLikes - IndianLikes.comUnlock Your Social Media Potential with IndianLikes - IndianLikes.com
Unlock Your Social Media Potential with IndianLikes - IndianLikes.com
 
Spotify AI DJ Deck - The Agency at University of Florida
Spotify AI DJ Deck - The Agency at University of FloridaSpotify AI DJ Deck - The Agency at University of Florida
Spotify AI DJ Deck - The Agency at University of Florida
 
Cosmic Conversations with Sociocosmos...
Cosmic Conversations with Sociocosmos...Cosmic Conversations with Sociocosmos...
Cosmic Conversations with Sociocosmos...
 
Add more information to your upload Tip: Better titles and descriptions lead ...
Add more information to your upload Tip: Better titles and descriptions lead ...Add more information to your upload Tip: Better titles and descriptions lead ...
Add more information to your upload Tip: Better titles and descriptions lead ...
 
AI Virtual Influencers: The Future of Influencer Marketing
AI Virtual Influencers:  The Future of Influencer MarketingAI Virtual Influencers:  The Future of Influencer Marketing
AI Virtual Influencers: The Future of Influencer Marketing
 
FULL ENJOY Call Girls In Mohammadpur (Delhi) Call Us 9953056974
FULL ENJOY Call Girls In Mohammadpur  (Delhi) Call Us 9953056974FULL ENJOY Call Girls In Mohammadpur  (Delhi) Call Us 9953056974
FULL ENJOY Call Girls In Mohammadpur (Delhi) Call Us 9953056974
 
Bicycle Safety in Focus: Preventing Fatalities and Seeking Justice
Bicycle Safety in Focus: Preventing Fatalities and Seeking JusticeBicycle Safety in Focus: Preventing Fatalities and Seeking Justice
Bicycle Safety in Focus: Preventing Fatalities and Seeking Justice
 
Independent Escorts Lucknow 8923113531 WhatsApp luxurious locale in your city...
Independent Escorts Lucknow 8923113531 WhatsApp luxurious locale in your city...Independent Escorts Lucknow 8923113531 WhatsApp luxurious locale in your city...
Independent Escorts Lucknow 8923113531 WhatsApp luxurious locale in your city...
 
AI Virtual Influencers: The Future of Influencer Marketing
AI Virtual Influencers:  The Future of Influencer MarketingAI Virtual Influencers:  The Future of Influencer Marketing
AI Virtual Influencers: The Future of Influencer Marketing
 
Protecting Your Little Explorer at Home!
Protecting Your Little Explorer at Home!Protecting Your Little Explorer at Home!
Protecting Your Little Explorer at Home!
 
young call girls in Greater Noida 🔝 9953056974 🔝 Delhi escort Service
young call girls in  Greater Noida 🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in  Greater Noida 🔝 9953056974 🔝 Delhi escort Service
young call girls in Greater Noida 🔝 9953056974 🔝 Delhi escort Service
 
young Call girls in Dwarka sector 23🔝 9953056974 🔝 Delhi escort Service
young Call girls in Dwarka sector 23🔝 9953056974 🔝 Delhi escort Serviceyoung Call girls in Dwarka sector 23🔝 9953056974 🔝 Delhi escort Service
young Call girls in Dwarka sector 23🔝 9953056974 🔝 Delhi escort Service
 
定制(ENU毕业证书)英国爱丁堡龙比亚大学毕业证成绩单原版一比一
定制(ENU毕业证书)英国爱丁堡龙比亚大学毕业证成绩单原版一比一定制(ENU毕业证书)英国爱丁堡龙比亚大学毕业证成绩单原版一比一
定制(ENU毕业证书)英国爱丁堡龙比亚大学毕业证成绩单原版一比一
 
Impact Of Educational Resources on Students' Academic Performance in Economic...
Impact Of Educational Resources on Students' Academic Performance in Economic...Impact Of Educational Resources on Students' Academic Performance in Economic...
Impact Of Educational Resources on Students' Academic Performance in Economic...
 
Mastering Wealth with YouTube Content Marketing.pdf
Mastering Wealth with YouTube Content Marketing.pdfMastering Wealth with YouTube Content Marketing.pdf
Mastering Wealth with YouTube Content Marketing.pdf
 
Top Astrologer, Kala ilam specialist in USA and Bangali Amil baba in Saudi Ar...
Top Astrologer, Kala ilam specialist in USA and Bangali Amil baba in Saudi Ar...Top Astrologer, Kala ilam specialist in USA and Bangali Amil baba in Saudi Ar...
Top Astrologer, Kala ilam specialist in USA and Bangali Amil baba in Saudi Ar...
 
Upgrade Your Twitter Presence with Socio Cosmos
Upgrade Your Twitter Presence with Socio CosmosUpgrade Your Twitter Presence with Socio Cosmos
Upgrade Your Twitter Presence with Socio Cosmos
 
IMPACT OF FISCAL POLICY AND MONETARY POLICY ON THE ECONOMIC GROWTH OF NIGERIA...
IMPACT OF FISCAL POLICY AND MONETARY POLICY ON THE ECONOMIC GROWTH OF NIGERIA...IMPACT OF FISCAL POLICY AND MONETARY POLICY ON THE ECONOMIC GROWTH OF NIGERIA...
IMPACT OF FISCAL POLICY AND MONETARY POLICY ON THE ECONOMIC GROWTH OF NIGERIA...
 
Call^ Girls Delhi Independent girls Chanakyapuri 9711199012 Call Me
Call^ Girls Delhi Independent girls Chanakyapuri 9711199012 Call MeCall^ Girls Delhi Independent girls Chanakyapuri 9711199012 Call Me
Call^ Girls Delhi Independent girls Chanakyapuri 9711199012 Call Me
 

Semantic Patterns for Sentiment Analysis of Twitter

  • 1. Semantic Patterns for Sentiment Analysis of Twitter Hassan Saif, Yulan He, Miriam Fernandez and Harith Alani The 13th International Semantic Web Conference (ISWC2014) May 2014
  • 2. OutLine o Sentiment Analysis o Traditional Sentiment Analysis o Pattern-based Sentiment Analysis o Semantic Sentiment Patterns o Evaluation o Results o Conclusion
  • 3. Sentiment Analysis “Sentiment analysis is the task of identifying positive and negative opinions, emotions and evaluations in text” 3 Nooo, it is very humid :( The weather is great today :) I think its almost 30 degrees today Opinion Fact Opinion
  • 4. Traditional Sentiment Analysis Training Features: – Syntactic features (letter, n-grams, word n-grams, POS tags, etc) – Linguistic Features (Synonyms, glosses, etc) (1) The Lexicon-based Approach (1) The Machine Learning Approach Just got my new iPhone 6, looks and feel great! :D Sentiment Lexicon great sad down wrong
  • 5. Traditional Sentiment Analysis However.. Sentiment is often expressed via more subtle relations, patterns and dependencies among words in tweets: Destroy Invading Germs Negative Negative Concept Positive Sentiment
  • 6. Pattern-based Sentiment Analysis Syntactic Pattern Approaches Semantic Pattern Approaches
  • 7. Syntactic Pattern Approaches • Based on syntactic relations between words. • Rely on predefined POS templates: <subject> passive-verb <subject> active-verb <customer> was satisfied <she> complained • But, they are Semantically Weak! <beer> is cold <subject> verb cold <weather> is cold
  • 8. Semantic Pattern Approaches • Apply syntactic and semantic processing techniques • Use external semantic resources (Ontologies, Semantic Networks, etc.) • Capture the conceptual semantic relations in text that implicitly convey sentiment – Happy birthday (Positive) – Invading Germs (Negative)
  • 9. Syntactic & Semantic Pattern Approaches are not tailored to Twitter
  • 10. Syntactic & Semantic Pattern Approaches Are designed to function on Formal Text, that is: 1. Long enough 2. Well-Structured 3. Formal Sentences
  • 11. Tweets are often • Short! • Noisy and messy • Have informal, and ill-structured sentences
  • 12. We Propose..  A pattern-based approach  Works on Twitter  Does not rely on the syntactic structures of tweets or pre-defined syntactic templates  Does not rely on or semantic knowledge sources.  Automatically extracts patterns from the contextual semantic and sentiment similarities of words in tweets
  • 13. Contextual Semantics and Sentiment Contextual Semantics • Contextual Semantics refer to semantics inferred from words’ co-occurrences in tweets. “Words that occur in similar context tend to have similar meaning” Wittgenstein (1953) Threat Hack Trojan Horse Dangerous Code Program Harm Malware Greek Tale Trojan Horse History Troy Wooden Class
  • 14. Contextual Semantic Sentiment Patterns “Some words in different tweets tend to come with similar contextual semantics and sentiment, forming therefore specific clusters or patterns. Threat Trojan Horse Hack Code Dangerous Spyware Program Harm Malware
  • 15. Contextual Semantic Sentiment Patterns Threat Trojan Horse Hack Code Dangerous Spyware Program Harm Malware C_Semantics(Worms) Negative Contextual Pattern C_Semantics(Adware) C_Semantics(Time bombs) Follow Follow Follow
  • 16. Pattern Extraction Tweets Sentiment Lexicon Capturing Contextual Semantics & Sentiment Syntactical Preprocessing Extracting Semantic Sentiment Patterns Bag of SentiCircles Bag of SS-Patterns 1. Syntactical Preprocessing of tweets 2. Capturing the Contextual Semantics and Sentiment of words 3. Extracting Semantic Sentiment Patterns Pipeline
  • 17. (1) Syntactical Preprocessing • All URL links are replaced with the term “URL” • Remove all non-ASCII and non-English characters • Revert words that contain repeated letters to their original English form. – “maaadddd” will be converted to “mad” after processing.
  • 18. (2) Capturing Contextual Semantics & Sentiment The SentiCircle Approach Context Terms Term (m) C1 Trojan Horse Prior Sentiment DanCg1erous fix Degree of Correlation X = R * COS(θ) Y = R * SIN(θ) SentiCircle of “Trojan Horse” +1 Very Positive Positive useful discover easily -1 +1 Neutral xi Dangerous X ri θi yi destroy Very Negative Negative -1 Region ri = TDOC(Ci) θi = Prior_Sentiment (Ci) * π threat Malicious attack Overall Contextual Sentiment (Senti-Median) Saif, H., Fernandez, M., He, Y. and Alani, H. (2014) SentiCircles for Contextual and Conceptual Semantic Sentiment Analysis of Twitter, ESWC2014
  • 19. (3) Extracting Semantic Sentiment Patterns Patterns are extracted by finding clusters of Similar SentiCircles iPod Spyw are Oprah Obam a SentiCircle’s Feature Vector Geometry Density Dispersion (1) (2) K-means SS-Patterns SentiCircle’s Feature Vectors
  • 20. Evaluation SS-Patterns Training Sentiment Classifiers Entity-level Sentiment Analysis Detect the sentiment (Positive, Negative, Neutral) of named entities extracted from tweets Tweet-level Sentiment Analysis Detect the overall sentiment (Positive, Negative) of a tweet.
  • 21. Evaluation Setup (1) Sentiment Classifiers – Tweet-Level • Maximum Entropy (MaxEnt) • Naïve Bayes (NB) – Entity-Level • MLE Classifier
  • 22. Datasets Evaluation Setup (2) Tweet-level 9 Twitter datasets Entity-Level 58 manually annotated named entities
  • 23. Evaluation Setup (3) Baseline Features Syntactic Features Unigrams Individual unique terms in tweets POS Features Words’ part-of-speech tags Twitter Features Usernames, emoticons, hashtags, etc Lexicon Features Prior sentiment of words in a given sentiment lexicon(e.g., great->positive, destroy->negative) Semantic Features LDA-Topic Features Topics generated by LDA Semantic Concepts Semantic concepts of named entities in tweets (e.g., Obama -> Person, London -> City)
  • 25. Tweet-Level Sentiment Analysis (1) The baseline model is a sentiment classifier trained from word unigram features. • MaxEnt outperforms NB in average Accuracy and F1-measure
  • 26. Tweet-Level Sentiment Analysis (2) Win/Loss in Accuracy and F-measure of using different features for sentiment classification on all nine datasets.
  • 27. Entity-Level Sentiment Analysis SS-Patterns produce 6.31% and 7.5% higher accuracy and F-measure than other features 67.00 65.00 63.00 61.00 59.00 57.00 55.00 Accuracy F1 Unigrams LDA-Topics Semantic Concepts SS-Patterns
  • 28. Within-Pattern Sentiment Consistency • Refers to the percentage of words having similar sentiment within a given pattern. • Strongly consistent patterns are those whose terms have similar sentiment.
  • 29. Within-Pattern Sentiment Consistency • STS-Entity Dataset: – 58 Entities 14 SS-Patterns Consistency(Pattern12) = 88.89% Consistency(Pattern5) = 50% (Strongly Consistent) (Poorly Consistent) Average Sentiment Consistency (14 SS-Patterns) = 88%
  • 30. Conclusion • We proposed a new approach for automatically extracting patterns from the contextual semantic and sentiment similarities of words in tweets. • Used patterns as features in tweet- and entity-level sentiment classification tasks • SS-Patterns consistently outperformed the syntactic and semantic type of features for entity- and tweet-level sentiment analysis • Conducted quantitative analysis on a sample of our extracted SS-Patterns and show that our patterns are strongly consistent with the sentiment of the words within them.
  • 31. Thank You Email: hassan.saif@open.ac.uk Twitter: hrsaif Website: tweenator.com