SlideShare a Scribd company logo
1 of 12
Sentiment Analysis for Twitter
Priyanka Bajaj priyanka.bajaj@students.iiit.ac.in
Kamal Gurala kamal.gurala@students.iiit.ac.in
Faraz Alam faraz.alam@students.iiit.ac.in
Ritesh Kumar Gupta ritesh.kumar.gupta@in.ibm.com
Guided By : Satarupa Guha satarupaguha11@gmail.com
Agenda
1.Introduction – Sentiment Analysis
2.About Twitter and Our Goal
3.Glossary
4.Challenges
5.Approach
6.Results and Conclusion
7.Tools and Technologies
What is Sentiment Analysis?
Mechanism to extract opinions, emotions and sentiments in text
Enable us to track attitudes and feelings on the web based on blog posts, comments, reviews
and tweets on different topics
Enable to track products, brands and people and determine whether they are viewed positively
or negatively on the web.
acts: "The painting was more expensive than a Monet"
pinions: "I honestly don't like Monet, Pollock is better”
• An online social networking and micro blogging service
• Enables users to send and read "tweets", which are text messages limited to 140 characters,
hence unambiguous
• 500 million tweets daily by 240+ million active users
• Audience varies from common man to celebrities
• Users discuss current affairs and share personal views
Our goal:
To determine whether the expressed opinion in the tweets is positive, negative or neutral.
For tweets conveying both a positive and negative sentiment, choose the stronger sentiment
About
Natural Language Processing: The attempt to use programming to read and understand the
meaning of text.
Semantic Analysis:
Use of Natural Language processing (NLP) to derive "sentiment," or subjective information
from text.
Artificial Intelligence:
Using information provided by NLP and mathematics to determine whether something is
negative or positive
Glossary
Challenges
• Tweets are highly unstructured and also non-grammatical
• Out of Vocabulary Words
• Lexical Variation
• Extensive usage of acronyms like asap, lol, afaik
Our System
• Tweet Downloader
– Download the tweets using Twitter API
• Tokenisation
– Twitter specific POS Tagger and tokenizer developed by ARK Social Media Search
• Preprocessing
– Replacing Emoticons by their polarity, assign scores
– Remove URL, Target Mentions
– Replace #text -> text, since hashtags may contribute to the sentiment
– Replace Sequence of Repeated Characters eg. ‘cooooool’ by ‘cool’ and assign higher
score
– Twitter specific stop word removal
– Acronym expansion
System Details
• Feature Extractor
– Unigrams and Bigrams
– Polarity Score of the Tweet (f1)
– Count of Positive/Negative Words (f2,f3)
– Maximum Positive/Negative Score for Words (f4,f5)
– Count of Positive/Negative Emoticons and assign scores(contibutes to all f1,f2,f3,f4,f5)
– Positive/Negative special POS Tags Polarity Score
• Classifier and Prediction
– Features extracted are fed into to SVM classifier
– Model built used to predict sentiment of new tweets
System Details Contd.
Results and Conclusion
A baseline model by taking the unigrams, and compare it with the bigrams and
lexicon features model
Sub-Task Baseline Model Feature Based
Model
Sentence Based 49.81% 57.85%
Accuracy F1 Score (f-Measure)
Sub-Task Baseline Model Feature Based
Model
Sentence Based 55.56 61.17
• We investigated two kinds of models: Baseline and Feature Based Models
• For our feature-based approach, feature analysis reveals that the most important features
are bigrams and those that combine the prior polarity of words and their parts-of-speech
tags
1. Concepts of Data Mining and Information Retrieval
2. Python Language
3. Java, Eclipse
4. Support Vector Machine(SVM) Theory
5. LIBSVM package for accuracy and f-Measure
6. Twitter.inc API for training set
7. NLTK
8. Shell Script for integration
Tools and Technology Used
Thank You

More Related Content

What's hot

Sentiment Analysis in Twitter
Sentiment Analysis in TwitterSentiment Analysis in Twitter
Sentiment Analysis in TwitterAyushi Dalmia
 
Sentiment Analysis in Twitter
Sentiment Analysis in TwitterSentiment Analysis in Twitter
Sentiment Analysis in Twitterprnk08
 
Sentiment Analysis in Twitter
Sentiment Analysis in TwitterSentiment Analysis in Twitter
Sentiment Analysis in Twitterprnk08
 
Twitter sentiment analysis
Twitter sentiment analysisTwitter sentiment analysis
Twitter sentiment analysisRahul Jha
 
Twitter sentiment-analysis Jiit2013-14
Twitter sentiment-analysis Jiit2013-14Twitter sentiment-analysis Jiit2013-14
Twitter sentiment-analysis Jiit2013-14Rachit Goel
 
Sentiment Analysis Using Twitter
Sentiment Analysis Using TwitterSentiment Analysis Using Twitter
Sentiment Analysis Using Twitterpiya chauhan
 
Sentiment analysis - Our approach and use cases
Sentiment analysis - Our approach and use casesSentiment analysis - Our approach and use cases
Sentiment analysis - Our approach and use casesKarol Chlasta
 
Sentiment analysis of Twitter data using python
Sentiment analysis of Twitter data using pythonSentiment analysis of Twitter data using python
Sentiment analysis of Twitter data using pythonHetu Bhavsar
 
Twitter sentiment analysis project report
Twitter sentiment analysis project reportTwitter sentiment analysis project report
Twitter sentiment analysis project reportBharat Khanna
 
Sentiment Analysis of Twitter Data
Sentiment Analysis of Twitter DataSentiment Analysis of Twitter Data
Sentiment Analysis of Twitter DataSumit Raj
 
Sentiment analysis using ml
Sentiment analysis using mlSentiment analysis using ml
Sentiment analysis using mlPravin Katiyar
 
Approaches to Sentiment Analysis
Approaches to Sentiment AnalysisApproaches to Sentiment Analysis
Approaches to Sentiment AnalysisNihar Suryawanshi
 
Sentiment tool Project presentaion
Sentiment tool Project presentaionSentiment tool Project presentaion
Sentiment tool Project presentaionRavindra Chaudhary
 
LSTM Based Sentiment Analysis
LSTM Based Sentiment AnalysisLSTM Based Sentiment Analysis
LSTM Based Sentiment Analysisijtsrd
 
SENTIMENT ANALYSIS OF TWITTER DATA
SENTIMENT ANALYSIS OF TWITTER DATASENTIMENT ANALYSIS OF TWITTER DATA
SENTIMENT ANALYSIS OF TWITTER DATAParvathy Devaraj
 
Sentiment Analysis
Sentiment AnalysisSentiment Analysis
Sentiment Analysisprnk08
 
Python report on twitter sentiment analysis
Python report on twitter sentiment analysisPython report on twitter sentiment analysis
Python report on twitter sentiment analysisAntaraBhattacharya12
 
Sentiment analysis of tweets
Sentiment analysis of tweetsSentiment analysis of tweets
Sentiment analysis of tweetsVasu Jain
 

What's hot (20)

Sentiment Analysis in Twitter
Sentiment Analysis in TwitterSentiment Analysis in Twitter
Sentiment Analysis in Twitter
 
Sentiment Analysis in Twitter
Sentiment Analysis in TwitterSentiment Analysis in Twitter
Sentiment Analysis in Twitter
 
Sentiment Analysis in Twitter
Sentiment Analysis in TwitterSentiment Analysis in Twitter
Sentiment Analysis in Twitter
 
Twitter sentiment analysis
Twitter sentiment analysisTwitter sentiment analysis
Twitter sentiment analysis
 
Twitter sentiment-analysis Jiit2013-14
Twitter sentiment-analysis Jiit2013-14Twitter sentiment-analysis Jiit2013-14
Twitter sentiment-analysis Jiit2013-14
 
Sentiment Analysis Using Twitter
Sentiment Analysis Using TwitterSentiment Analysis Using Twitter
Sentiment Analysis Using Twitter
 
Sentiment analysis - Our approach and use cases
Sentiment analysis - Our approach and use casesSentiment analysis - Our approach and use cases
Sentiment analysis - Our approach and use cases
 
Sentiment analysis of Twitter data using python
Sentiment analysis of Twitter data using pythonSentiment analysis of Twitter data using python
Sentiment analysis of Twitter data using python
 
Twitter sentiment analysis project report
Twitter sentiment analysis project reportTwitter sentiment analysis project report
Twitter sentiment analysis project report
 
Sentiment Analysis of Twitter Data
Sentiment Analysis of Twitter DataSentiment Analysis of Twitter Data
Sentiment Analysis of Twitter Data
 
Sentiment analysis using ml
Sentiment analysis using mlSentiment analysis using ml
Sentiment analysis using ml
 
Approaches to Sentiment Analysis
Approaches to Sentiment AnalysisApproaches to Sentiment Analysis
Approaches to Sentiment Analysis
 
Social Media Sentiment Analysis
Social Media Sentiment AnalysisSocial Media Sentiment Analysis
Social Media Sentiment Analysis
 
Sentiment tool Project presentaion
Sentiment tool Project presentaionSentiment tool Project presentaion
Sentiment tool Project presentaion
 
LSTM Based Sentiment Analysis
LSTM Based Sentiment AnalysisLSTM Based Sentiment Analysis
LSTM Based Sentiment Analysis
 
SENTIMENT ANALYSIS OF TWITTER DATA
SENTIMENT ANALYSIS OF TWITTER DATASENTIMENT ANALYSIS OF TWITTER DATA
SENTIMENT ANALYSIS OF TWITTER DATA
 
Sentiment Analysis
Sentiment AnalysisSentiment Analysis
Sentiment Analysis
 
Python report on twitter sentiment analysis
Python report on twitter sentiment analysisPython report on twitter sentiment analysis
Python report on twitter sentiment analysis
 
Sentiment analysis of tweets
Sentiment analysis of tweetsSentiment analysis of tweets
Sentiment analysis of tweets
 
Sentimental analysis
Sentimental analysisSentimental analysis
Sentimental analysis
 

Similar to Sentiment Analysis

Creating More Engaging Content For Social
Creating More Engaging Content For SocialCreating More Engaging Content For Social
Creating More Engaging Content For SocialEric T. Tung
 
Sentiment analysis on demonetisation
Sentiment analysis on demonetisationSentiment analysis on demonetisation
Sentiment analysis on demonetisationAbrarMohamed5
 
Tools to analyze your Twitter activity
Tools to analyze your Twitter activityTools to analyze your Twitter activity
Tools to analyze your Twitter activityKaushik Pal
 
Ecommerce School: Roger Lopez on Content Strategy Framework for Ecommerce Web...
Ecommerce School: Roger Lopez on Content Strategy Framework for Ecommerce Web...Ecommerce School: Roger Lopez on Content Strategy Framework for Ecommerce Web...
Ecommerce School: Roger Lopez on Content Strategy Framework for Ecommerce Web...Hypepotamus
 
Final Presentation
Final PresentationFinal Presentation
Final PresentationBryan Then
 
GSU - SEO & content strategy
GSU - SEO & content strategyGSU - SEO & content strategy
GSU - SEO & content strategyJake Aull
 
SharePoint Adoption Tactics - SPSPhilly
SharePoint Adoption Tactics - SPSPhillySharePoint Adoption Tactics - SPSPhilly
SharePoint Adoption Tactics - SPSPhillyGina Montgomery, V-TSP
 
Tech Tips & Tools for Career Practitioners
Tech Tips & Tools for Career PractitionersTech Tips & Tools for Career Practitioners
Tech Tips & Tools for Career PractitionersDeb Osborn
 
Social Media Algorithms 2020 (Facebook, Twitter, LinkedIn, Instagram, and You...
Social Media Algorithms 2020 (Facebook, Twitter, LinkedIn, Instagram, and You...Social Media Algorithms 2020 (Facebook, Twitter, LinkedIn, Instagram, and You...
Social Media Algorithms 2020 (Facebook, Twitter, LinkedIn, Instagram, and You...David Clemen
 
MLConf Seattle 2015 - ML@Quora
MLConf Seattle 2015 - ML@QuoraMLConf Seattle 2015 - ML@Quora
MLConf Seattle 2015 - ML@QuoraXavier Amatriain
 
Xavier Amatriain, VP of Engineering, Quora at MLconf SEA - 5/01/15
Xavier Amatriain, VP of Engineering, Quora at MLconf SEA - 5/01/15Xavier Amatriain, VP of Engineering, Quora at MLconf SEA - 5/01/15
Xavier Amatriain, VP of Engineering, Quora at MLconf SEA - 5/01/15MLconf
 
MangoTango - Twitter for Business with BritChamCam - 28-Oct_2014
MangoTango - Twitter for Business with BritChamCam - 28-Oct_2014MangoTango - Twitter for Business with BritChamCam - 28-Oct_2014
MangoTango - Twitter for Business with BritChamCam - 28-Oct_2014MangoTango
 
Machine Learning to Grow the World's Knowledge
Machine Learning to Grow  the World's KnowledgeMachine Learning to Grow  the World's Knowledge
Machine Learning to Grow the World's KnowledgeXavier Amatriain
 
User stories writing - Codemotion 2013
User stories writing   - Codemotion 2013User stories writing   - Codemotion 2013
User stories writing - Codemotion 2013Stefano Leli
 
User Stories Writing - Codemotion 2013
User Stories Writing - Codemotion 2013User Stories Writing - Codemotion 2013
User Stories Writing - Codemotion 2013Fabio Armani
 

Similar to Sentiment Analysis (20)

Report v1
Report v1Report v1
Report v1
 
Creating More Engaging Content For Social
Creating More Engaging Content For SocialCreating More Engaging Content For Social
Creating More Engaging Content For Social
 
Sentiment analysis on demonetisation
Sentiment analysis on demonetisationSentiment analysis on demonetisation
Sentiment analysis on demonetisation
 
Tools to analyze your Twitter activity
Tools to analyze your Twitter activityTools to analyze your Twitter activity
Tools to analyze your Twitter activity
 
Tools to Analyze Your Twitter Acvitity
Tools to Analyze Your Twitter AcvitityTools to Analyze Your Twitter Acvitity
Tools to Analyze Your Twitter Acvitity
 
Ecommerce School: Roger Lopez on Content Strategy Framework for Ecommerce Web...
Ecommerce School: Roger Lopez on Content Strategy Framework for Ecommerce Web...Ecommerce School: Roger Lopez on Content Strategy Framework for Ecommerce Web...
Ecommerce School: Roger Lopez on Content Strategy Framework for Ecommerce Web...
 
Final Presentation
Final PresentationFinal Presentation
Final Presentation
 
GSU - SEO & content strategy
GSU - SEO & content strategyGSU - SEO & content strategy
GSU - SEO & content strategy
 
Ranking Twitter Conversations
Ranking Twitter ConversationsRanking Twitter Conversations
Ranking Twitter Conversations
 
SharePoint Adoption Tactics - SPSPhilly
SharePoint Adoption Tactics - SPSPhillySharePoint Adoption Tactics - SPSPhilly
SharePoint Adoption Tactics - SPSPhilly
 
Tech Tips & Tools for Career Practitioners
Tech Tips & Tools for Career PractitionersTech Tips & Tools for Career Practitioners
Tech Tips & Tools for Career Practitioners
 
Resume (1)
Resume (1)Resume (1)
Resume (1)
 
mani
manimani
mani
 
Social Media Algorithms 2020 (Facebook, Twitter, LinkedIn, Instagram, and You...
Social Media Algorithms 2020 (Facebook, Twitter, LinkedIn, Instagram, and You...Social Media Algorithms 2020 (Facebook, Twitter, LinkedIn, Instagram, and You...
Social Media Algorithms 2020 (Facebook, Twitter, LinkedIn, Instagram, and You...
 
MLConf Seattle 2015 - ML@Quora
MLConf Seattle 2015 - ML@QuoraMLConf Seattle 2015 - ML@Quora
MLConf Seattle 2015 - ML@Quora
 
Xavier Amatriain, VP of Engineering, Quora at MLconf SEA - 5/01/15
Xavier Amatriain, VP of Engineering, Quora at MLconf SEA - 5/01/15Xavier Amatriain, VP of Engineering, Quora at MLconf SEA - 5/01/15
Xavier Amatriain, VP of Engineering, Quora at MLconf SEA - 5/01/15
 
MangoTango - Twitter for Business with BritChamCam - 28-Oct_2014
MangoTango - Twitter for Business with BritChamCam - 28-Oct_2014MangoTango - Twitter for Business with BritChamCam - 28-Oct_2014
MangoTango - Twitter for Business with BritChamCam - 28-Oct_2014
 
Machine Learning to Grow the World's Knowledge
Machine Learning to Grow  the World's KnowledgeMachine Learning to Grow  the World's Knowledge
Machine Learning to Grow the World's Knowledge
 
User stories writing - Codemotion 2013
User stories writing   - Codemotion 2013User stories writing   - Codemotion 2013
User stories writing - Codemotion 2013
 
User Stories Writing - Codemotion 2013
User Stories Writing - Codemotion 2013User Stories Writing - Codemotion 2013
User Stories Writing - Codemotion 2013
 

Recently uploaded

Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 

Recently uploaded (20)

Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 

Sentiment Analysis

  • 1. Sentiment Analysis for Twitter Priyanka Bajaj priyanka.bajaj@students.iiit.ac.in Kamal Gurala kamal.gurala@students.iiit.ac.in Faraz Alam faraz.alam@students.iiit.ac.in Ritesh Kumar Gupta ritesh.kumar.gupta@in.ibm.com Guided By : Satarupa Guha satarupaguha11@gmail.com
  • 2. Agenda 1.Introduction – Sentiment Analysis 2.About Twitter and Our Goal 3.Glossary 4.Challenges 5.Approach 6.Results and Conclusion 7.Tools and Technologies
  • 3. What is Sentiment Analysis? Mechanism to extract opinions, emotions and sentiments in text Enable us to track attitudes and feelings on the web based on blog posts, comments, reviews and tweets on different topics Enable to track products, brands and people and determine whether they are viewed positively or negatively on the web. acts: "The painting was more expensive than a Monet" pinions: "I honestly don't like Monet, Pollock is better”
  • 4. • An online social networking and micro blogging service • Enables users to send and read "tweets", which are text messages limited to 140 characters, hence unambiguous • 500 million tweets daily by 240+ million active users • Audience varies from common man to celebrities • Users discuss current affairs and share personal views Our goal: To determine whether the expressed opinion in the tweets is positive, negative or neutral. For tweets conveying both a positive and negative sentiment, choose the stronger sentiment About
  • 5. Natural Language Processing: The attempt to use programming to read and understand the meaning of text. Semantic Analysis: Use of Natural Language processing (NLP) to derive "sentiment," or subjective information from text. Artificial Intelligence: Using information provided by NLP and mathematics to determine whether something is negative or positive Glossary
  • 6. Challenges • Tweets are highly unstructured and also non-grammatical • Out of Vocabulary Words • Lexical Variation • Extensive usage of acronyms like asap, lol, afaik
  • 8. • Tweet Downloader – Download the tweets using Twitter API • Tokenisation – Twitter specific POS Tagger and tokenizer developed by ARK Social Media Search • Preprocessing – Replacing Emoticons by their polarity, assign scores – Remove URL, Target Mentions – Replace #text -> text, since hashtags may contribute to the sentiment – Replace Sequence of Repeated Characters eg. ‘cooooool’ by ‘cool’ and assign higher score – Twitter specific stop word removal – Acronym expansion System Details
  • 9. • Feature Extractor – Unigrams and Bigrams – Polarity Score of the Tweet (f1) – Count of Positive/Negative Words (f2,f3) – Maximum Positive/Negative Score for Words (f4,f5) – Count of Positive/Negative Emoticons and assign scores(contibutes to all f1,f2,f3,f4,f5) – Positive/Negative special POS Tags Polarity Score • Classifier and Prediction – Features extracted are fed into to SVM classifier – Model built used to predict sentiment of new tweets System Details Contd.
  • 10. Results and Conclusion A baseline model by taking the unigrams, and compare it with the bigrams and lexicon features model Sub-Task Baseline Model Feature Based Model Sentence Based 49.81% 57.85% Accuracy F1 Score (f-Measure) Sub-Task Baseline Model Feature Based Model Sentence Based 55.56 61.17 • We investigated two kinds of models: Baseline and Feature Based Models • For our feature-based approach, feature analysis reveals that the most important features are bigrams and those that combine the prior polarity of words and their parts-of-speech tags
  • 11. 1. Concepts of Data Mining and Information Retrieval 2. Python Language 3. Java, Eclipse 4. Support Vector Machine(SVM) Theory 5. LIBSVM package for accuracy and f-Measure 6. Twitter.inc API for training set 7. NLTK 8. Shell Script for integration Tools and Technology Used