SlideShare a Scribd company logo
Sentiment Analysis in Twitter
Contributed by:
ANAND KUMAR MISHRA(141321300X)
ABHIJEET PANDEY(141321300X)
SURENDRA PRATAP(__________)
Instructor: Mr. Sudhanshu Saurabh
What is Sentiment Analysis?
• It is classification of the polarity of a
given text in the document, sentence
or phrase
• The goal is to determine whether the
expressed opinion in the text is
positive, negative or neutral.
Positive
Negative
Neutral
Why is Sentiment Analysis Important?
• Microblogging has become popular communication tool
• Opinion of the mass is important
• Political party may want to know whether people support their program or
not.
• Before investing into a company, one can leverage the sentiment of the
people for the company to find out where it stands.
• A company might want find out the reviews of its products
Using Twitter for Sentiment Analysis
• Popular microblogging site
• Short Text Messages of 140 characters
• 240+ million active users
• 500 million tweets are generated everyday
• Twitter audience varies from common man to celebrities
• Users often discuss current affairs and share personal views on
various subjects
• Tweets are small in length and hence unambiguous
Problem Statement
The problem at hand consists of two subtasks:
• Phrase Level Sentiment Analysis in Twitter :
Given a message containing a marked instance of a word or a phrase,
determine whether that instance is positive, negative or neutral in that
context.
• Sentence Level Sentiment Analysis in Twitter:
Given a message, decide whether the message is of positive, negative, or
neutral sentiment. For messages conveying both a positive and negative
sentiment, whichever is the stronger sentiment should be chosen.
Challenges
• Tweets are highly unstructured and also non-grammatical
• Out of Vocabulary Words
• Lexical Variation
• Extensive usage of acronyms like asap, lol, afaik
Approach
SVM Classifier and Prediction
Feature Extractor
Preprocessing
Tokeniser
Tweet Downloader
• Tweet Downloader
• Download the tweets using Twitter API
• Tokenisation
• Twitter specific POS Tagger developed by ARK Social Media Search
• Preprocessing
• Removing non-English Tweets
• Replacing Emoticons by their polarity
• Remove URL, Target Mentions, Hashtags, Numbers.
• Replace Negative Mentions
• Replace Sequence of Repeated Characters eg. ‘coooooooool’ by ‘coool’
• Remove Nouns and Prepositions
Approach
• Feature Extractor
• Polarity Score of the Tweet
• Percentage of Capitalised Words
• Number of Positive/Negative Capitalised Words
• Number of Positive/Negative Hashtags
• Number of Positive/Negative/Extremely Positive/Extremely Negative Emoticons
• Number of Negation
• Positive/Negative special POS Tags Polarity Score
• Number of special characters : ?,!,*
• Number of special POS
• Classifier and Prediction
• The features extracted are next passed on to SVM classifier.
• The model built is used to predict the sentiment of the new tweets.
Approach
Results
A baseline model by taking the unigrams, bigrams and trigrams and
compare it with the feature based model for both the sub-tasks
Sub-Task Baseline Model Feature Based
Model
Baseline + Feature Based
Model
Phrase Based 62.24 % 77.33% 79.90%
Sentence Based 52.54% 57.57% 58.36%
Accuracy
F1 Score
Sub-Task Baseline Model Feature Based
Model
Baseline + Feature Based
Model
Phrase Based 76.27* 75.23 75.98
Sentence Based 55.70 59.86 60.55
*Classifies in positive classes only, hence high recall.
Conclusion
• We investigated two kinds of models: Baseline and Feature Based
Models and demonstrate that combination of both these models
perform the best.
• For our feature-based approach, feature analysis reveals that the
most important features are those that combine the prior polarity of
words and their parts-of-speech tags.
Thank You

More Related Content

PPTX
Twitter sentiment analysis
Sunil Kandari
 
PPTX
Sentiment Analaysis on Twitter
Nitish J Prabhu
 
PPTX
Twitter sentiment analysis ppt
SonuCreation
 
PPTX
Twitter sentiment analysis ppt
AntaraBhattacharya12
 
PPT
Twitter sentiment-analysis Jiit2013-14
Rachit Goel
 
PPTX
Sentiment Analysis in Twitter
Ayushi Dalmia
 
PDF
Sentiment analysis of Twitter Data
Nurendra Choudhary
 
PPT
Sentiment Analysis in Twitter
prnk08
 
Twitter sentiment analysis
Sunil Kandari
 
Sentiment Analaysis on Twitter
Nitish J Prabhu
 
Twitter sentiment analysis ppt
SonuCreation
 
Twitter sentiment analysis ppt
AntaraBhattacharya12
 
Twitter sentiment-analysis Jiit2013-14
Rachit Goel
 
Sentiment Analysis in Twitter
Ayushi Dalmia
 
Sentiment analysis of Twitter Data
Nurendra Choudhary
 
Sentiment Analysis in Twitter
prnk08
 

What's hot (20)

PDF
Sentiment analysis - Our approach and use cases
Karol Chlasta
 
PPTX
Twitter Sentiment Analysis
Ayush Khandelwal
 
PPTX
Sentiment analysis of Twitter data using python
Hetu Bhavsar
 
PPTX
social network analysis project twitter sentimental analysis
Ashish Mundra
 
PPTX
New sentiment analysis of tweets using python by Ravi kumar
Ravi Kumar
 
PPTX
Sentiment analysis of twitter data
Bhagyashree Deokar
 
DOCX
Sentiment analysis in twitter using python
CloudTechnologies
 
PPTX
Sentiment Analysis on Twitter
SmritiAgarwal26
 
PPTX
Sentiment Analysis using Twitter Data
Hari Prasad
 
PPTX
Sentiment Analysis
Aditya Nag
 
PPTX
Twitter sentiment analysis
Rahul Jha
 
PPTX
Sentiment analysis
VishalPatil527
 
PPTX
Sentiment analysis using ml
Pravin Katiyar
 
PDF
Sentiment Analysis of Twitter Data
Sumit Raj
 
PPTX
Sentiment Analysis Using Twitter
piya chauhan
 
PPTX
sentiment analysis text extraction from social media
Ravindra Chaudhary
 
PPT
Sentiment analysis in Twitter on Big Data
Iswarya M
 
PPTX
Approaches to Sentiment Analysis
Nihar Suryawanshi
 
DOCX
Twitter sentiment analysis project report
Bharat Khanna
 
DOCX
Tweet sentiment analysis
Anil Shrestha
 
Sentiment analysis - Our approach and use cases
Karol Chlasta
 
Twitter Sentiment Analysis
Ayush Khandelwal
 
Sentiment analysis of Twitter data using python
Hetu Bhavsar
 
social network analysis project twitter sentimental analysis
Ashish Mundra
 
New sentiment analysis of tweets using python by Ravi kumar
Ravi Kumar
 
Sentiment analysis of twitter data
Bhagyashree Deokar
 
Sentiment analysis in twitter using python
CloudTechnologies
 
Sentiment Analysis on Twitter
SmritiAgarwal26
 
Sentiment Analysis using Twitter Data
Hari Prasad
 
Sentiment Analysis
Aditya Nag
 
Twitter sentiment analysis
Rahul Jha
 
Sentiment analysis
VishalPatil527
 
Sentiment analysis using ml
Pravin Katiyar
 
Sentiment Analysis of Twitter Data
Sumit Raj
 
Sentiment Analysis Using Twitter
piya chauhan
 
sentiment analysis text extraction from social media
Ravindra Chaudhary
 
Sentiment analysis in Twitter on Big Data
Iswarya M
 
Approaches to Sentiment Analysis
Nihar Suryawanshi
 
Twitter sentiment analysis project report
Bharat Khanna
 
Tweet sentiment analysis
Anil Shrestha
 
Ad

Similar to Sentimental Analysis of twitter data . (20)

PPTX
Twitter_presentation.pptx
delowar34
 
PPTX
Twitter Sentimental Analysis
TickTube
 
PPTX
Twitter & Instagram 101
Hilary Kemptner
 
PDF
Twitter Sentiment Analysis.pdf
Rachanasamal3
 
PPTX
Sentiment analysis on demonetisation
AbrarMohamed5
 
PPTX
Social Media Training
Archie Mckinlay
 
PPTX
How to work in social media
Online Marketing Institute & Training Pvt Ltd
 
PDF
ASC Marketing Workshop - Mar 2012
TRG Arts
 
PPT
Recruitcamp Twitter
marywood123
 
PPT
Recruitcamp Twitter
marywood123
 
PPTX
Tech Tips & Tools for Career Practitioners
Deb Osborn
 
PPTX
Hype presentation
Anna Ruth Williams
 
PPTX
IDEAinstitute - How to #makenews and Lead Your Industry
Anna Ruth Williams
 
PPTX
analyzing public sentiments using twitter feeds
Orakzay
 
PPTX
Social Media Preso 5.2.12
bloggerchica
 
PPT
Support Optimization
Lymba
 
PPTX
How to Master Twitter
AdvisorDeck
 
PDF
How to Do Better Market Research
Kissmetrics on SlideShare
 
PPT
Twitter Basics
GateHouseMedia
 
PPT
Twitter Basics
carlene_cox
 
Twitter_presentation.pptx
delowar34
 
Twitter Sentimental Analysis
TickTube
 
Twitter & Instagram 101
Hilary Kemptner
 
Twitter Sentiment Analysis.pdf
Rachanasamal3
 
Sentiment analysis on demonetisation
AbrarMohamed5
 
Social Media Training
Archie Mckinlay
 
ASC Marketing Workshop - Mar 2012
TRG Arts
 
Recruitcamp Twitter
marywood123
 
Recruitcamp Twitter
marywood123
 
Tech Tips & Tools for Career Practitioners
Deb Osborn
 
Hype presentation
Anna Ruth Williams
 
IDEAinstitute - How to #makenews and Lead Your Industry
Anna Ruth Williams
 
analyzing public sentiments using twitter feeds
Orakzay
 
Social Media Preso 5.2.12
bloggerchica
 
Support Optimization
Lymba
 
How to Master Twitter
AdvisorDeck
 
How to Do Better Market Research
Kissmetrics on SlideShare
 
Twitter Basics
GateHouseMedia
 
Twitter Basics
carlene_cox
 
Ad

More from Greater Noida Institute Of Technology (20)

PDF
Airline Analysis of Data Using Hadoop
Greater Noida Institute Of Technology
 
PPTX
College Administration Management System
Greater Noida Institute Of Technology
 
PPT
Virtual Private Network
Greater Noida Institute Of Technology
 
PPT
Hacking Question and Answer
Greater Noida Institute Of Technology
 
PPT
Hacking and its Defence
Greater Noida Institute Of Technology
 
PPTX
BroadBand Over powerline .
Greater Noida Institute Of Technology
 
PPT
Modern Networking Hacking
Greater Noida Institute Of Technology
 
PPT
Hack wireless internet connections or wifi
Greater Noida Institute Of Technology
 
PPT
Hacking step (Methodology)
Greater Noida Institute Of Technology
 
PPT
How to become Hackers .
Greater Noida Institute Of Technology
 

Recently uploaded (20)

PDF
Be Seen Where It Scrolls Claim Your Spot
SocioCosmos
 
PPTX
How-Intent-Data-Platforms-Support-Content-Syndication-Strategies.pptx
brandonsoros91
 
PDF
MIL LESSON 1 - MEDIA IN THE CONTEXT OF MIL.pdf
ellakimoxford
 
PDF
Unlock TikTok Growth with The Short Media
21MCA2671RITUBISHT
 
PPTX
INTRODUCTION TO HTML .pptx
bbariaroshan003
 
PDF
Sociocosmos = Facebook Growth Partner Build With Us
SocioCosmos
 
PDF
Dominate Your Niche—The Smart Way...............
SocioCosmos
 
PDF
Make Your Presence Non-Negotiable .......
SocioCosmos
 
PDF
Best Digital Marketing Services in India
Kunal Chouhan
 
PDF
Boost Your Business with Expert Digital Marketing Services
Amrit Web
 
PDF
Modern & Stylish Kitchen Design Ideas.pdf
muqarrab277
 
PDF
TikTok Stories_ A Lifeline for Brands in PR Crises
Ufki
 
PDF
THE EFFECTIVENESS OF USING THE E-OFFICE AND THE SRIKANDI APPLICATIONS AT THE ...
AJHSSR Journal
 
PDF
TikTok UGC Marketing_ Use Hashtags to Boost Sales.
Ufki
 
PPTX
Social Media Report Template [To use the template, click the _File_ tab and s...
Ankit kurup
 
PPTX
Multiple Quotes-playful Multiple Quotes-playful.pptx
BinayKrishnaDey
 
PPTX
Freedom-of-Human-Person_20250210_211129_0000.pptx
joshuaeborde787
 
PDF
Buy Facebook Growth That Works Get Started
SocioCosmos
 
PDF
STRESS AND COPING STRATEGIES DURING PANDEMIC AMONG ELEMENTARY SCHOOL TEACHERS
AJHSSR Journal
 
PDF
Let Poetry Heal What the Heart Can’t Say
Wajiha Mushtaq
 
Be Seen Where It Scrolls Claim Your Spot
SocioCosmos
 
How-Intent-Data-Platforms-Support-Content-Syndication-Strategies.pptx
brandonsoros91
 
MIL LESSON 1 - MEDIA IN THE CONTEXT OF MIL.pdf
ellakimoxford
 
Unlock TikTok Growth with The Short Media
21MCA2671RITUBISHT
 
INTRODUCTION TO HTML .pptx
bbariaroshan003
 
Sociocosmos = Facebook Growth Partner Build With Us
SocioCosmos
 
Dominate Your Niche—The Smart Way...............
SocioCosmos
 
Make Your Presence Non-Negotiable .......
SocioCosmos
 
Best Digital Marketing Services in India
Kunal Chouhan
 
Boost Your Business with Expert Digital Marketing Services
Amrit Web
 
Modern & Stylish Kitchen Design Ideas.pdf
muqarrab277
 
TikTok Stories_ A Lifeline for Brands in PR Crises
Ufki
 
THE EFFECTIVENESS OF USING THE E-OFFICE AND THE SRIKANDI APPLICATIONS AT THE ...
AJHSSR Journal
 
TikTok UGC Marketing_ Use Hashtags to Boost Sales.
Ufki
 
Social Media Report Template [To use the template, click the _File_ tab and s...
Ankit kurup
 
Multiple Quotes-playful Multiple Quotes-playful.pptx
BinayKrishnaDey
 
Freedom-of-Human-Person_20250210_211129_0000.pptx
joshuaeborde787
 
Buy Facebook Growth That Works Get Started
SocioCosmos
 
STRESS AND COPING STRATEGIES DURING PANDEMIC AMONG ELEMENTARY SCHOOL TEACHERS
AJHSSR Journal
 
Let Poetry Heal What the Heart Can’t Say
Wajiha Mushtaq
 

Sentimental Analysis of twitter data .

  • 1. Sentiment Analysis in Twitter Contributed by: ANAND KUMAR MISHRA(141321300X) ABHIJEET PANDEY(141321300X) SURENDRA PRATAP(__________) Instructor: Mr. Sudhanshu Saurabh
  • 2. What is Sentiment Analysis? • It is classification of the polarity of a given text in the document, sentence or phrase • The goal is to determine whether the expressed opinion in the text is positive, negative or neutral.
  • 4. Why is Sentiment Analysis Important? • Microblogging has become popular communication tool • Opinion of the mass is important • Political party may want to know whether people support their program or not. • Before investing into a company, one can leverage the sentiment of the people for the company to find out where it stands. • A company might want find out the reviews of its products
  • 5. Using Twitter for Sentiment Analysis • Popular microblogging site • Short Text Messages of 140 characters • 240+ million active users • 500 million tweets are generated everyday • Twitter audience varies from common man to celebrities • Users often discuss current affairs and share personal views on various subjects • Tweets are small in length and hence unambiguous
  • 6. Problem Statement The problem at hand consists of two subtasks: • Phrase Level Sentiment Analysis in Twitter : Given a message containing a marked instance of a word or a phrase, determine whether that instance is positive, negative or neutral in that context. • Sentence Level Sentiment Analysis in Twitter: Given a message, decide whether the message is of positive, negative, or neutral sentiment. For messages conveying both a positive and negative sentiment, whichever is the stronger sentiment should be chosen.
  • 7. Challenges • Tweets are highly unstructured and also non-grammatical • Out of Vocabulary Words • Lexical Variation • Extensive usage of acronyms like asap, lol, afaik
  • 8. Approach SVM Classifier and Prediction Feature Extractor Preprocessing Tokeniser Tweet Downloader
  • 9. • Tweet Downloader • Download the tweets using Twitter API • Tokenisation • Twitter specific POS Tagger developed by ARK Social Media Search • Preprocessing • Removing non-English Tweets • Replacing Emoticons by their polarity • Remove URL, Target Mentions, Hashtags, Numbers. • Replace Negative Mentions • Replace Sequence of Repeated Characters eg. ‘coooooooool’ by ‘coool’ • Remove Nouns and Prepositions Approach
  • 10. • Feature Extractor • Polarity Score of the Tweet • Percentage of Capitalised Words • Number of Positive/Negative Capitalised Words • Number of Positive/Negative Hashtags • Number of Positive/Negative/Extremely Positive/Extremely Negative Emoticons • Number of Negation • Positive/Negative special POS Tags Polarity Score • Number of special characters : ?,!,* • Number of special POS • Classifier and Prediction • The features extracted are next passed on to SVM classifier. • The model built is used to predict the sentiment of the new tweets. Approach
  • 11. Results A baseline model by taking the unigrams, bigrams and trigrams and compare it with the feature based model for both the sub-tasks Sub-Task Baseline Model Feature Based Model Baseline + Feature Based Model Phrase Based 62.24 % 77.33% 79.90% Sentence Based 52.54% 57.57% 58.36% Accuracy F1 Score Sub-Task Baseline Model Feature Based Model Baseline + Feature Based Model Phrase Based 76.27* 75.23 75.98 Sentence Based 55.70 59.86 60.55 *Classifies in positive classes only, hence high recall.
  • 12. Conclusion • We investigated two kinds of models: Baseline and Feature Based Models and demonstrate that combination of both these models perform the best. • For our feature-based approach, feature analysis reveals that the most important features are those that combine the prior polarity of words and their parts-of-speech tags.