SlideShare a Scribd company logo
Sentiment Analysis
By: Gunjan Srivastava
About
Sentiment analysis is one of the Natural
Processing techniques that extracts the
emotions from the raw set of data. It is
basically applied on the news data, social
media posts, customer reviews etc to
understand the emotions of the readers or the
customers and to understand how the users
are feeling about the posts they are reading.
With the increased competitions, the customer
feedback has become very important. With the
increased and larger users opinion, reviews
and feedback, automated techniques are
required to analyse them and to take actions
accordingly.
Techniques
● Lexical analysis
● Machine learning based analysis
● Hybrid/Combined analysis
Lexical Analysis
The input text is converted to tokens by the Tokenizer and then every new token encountered is then
matched for the lexicon in the dictionary. On finding the positive match, the score is added to the
total pool of score for the input text.
An accuracy of about 80% on single phrases can be achieved by the use of hand tagged lexicons
comprised of only adjectives, which are crucial for deciding the subjectivity of an evaluative text.
Machine Learning Based Analysis
Data
Collection
Pre
Processin
g
Training
Data
Classificat
ion
Plotting
Results
Methodologies
Web
Scraping
EDA
Word
Cloud
Train
Model
Sentiment
Analysis
LDA
Topic
Modelling
Libraries
● NLTK: Python module for NLP techniques
● Vader: NLTK library used for sentiment analysis
● Gensim: Used for topic-modelling
● Scikit-learn: Python machine learning library
Web Scraping
● Scraping Reviews from Bookings.com
● The hotel I have chosen is "Hotel
Hilton," San Francisco, CA.
● The scraped data includes:
● Basic information of the reviewer and
reviews
● Rating Score
● Reviewer Name
● Reviewer's Nationality
● Overall Review (contains both
positive & negative reviews)
● Reviewer Reviewed Times
● Review Date
● Review Tags like Trip type, such as
business trip, leisure trip
● Positive reviews
● Negative reviews
Web Scraping
The negative reviews are more compared positive reviews.
Histogram representation of hotel reviews. The reviews are more negative
compared to positive reviews.
Solution
Histogram showing the reviews based on the trip type, for example: couple
trip, solo trip, family, business, etc.
Positive Review Outcome
● From the above plot, we can conclude that most people are
probably satisfied with the location, very convenient,
comfortable and close to Union Square or Chinatown.
● Easy to find restaurants or pubs nearby, friendly and helpful
staff
● Clean room, comfortable bed, and good price, etc.
WordCloud for Positive Reviews.
Negative Review Outcome
● Words like “breakfast”, “room” and “staff” are mentioned quite often, which
indicates that maybe people were complaining about the staffs who were being
rude, small rooms, and coffee/ cereal/ muffin provided during breakfast.
● The air conditioning or the shower system may need improvements as we see
words like “hot”, “cold”, “air”, “condition”, “bathroom” and “shower” in the
WordCloud.
● The hotel may also need to solve issues related to soundproofing and parking.
WordCloud for Negative Reviews.
Sentiment Analysis Outcome
The green dots that lies on the vertical line are the “neutral” reviews
The red dots on the left are the “negative” reviews
The blue dots on the right are the “positive” reviews.
Bigger dots indicate more subjectivity.
Sentiment Analysis Outcome
Model Training
GradientBoostingClassifier
GradientBoostingClassifier build trees one at a time, where each new tree helps to correct errors
made by previously trained tree. After applying the classifier, the accuracy score found is 67%
which can vary in the range of 63% to 80% depending upon the combination of the selected
features.
RandomForestClassifier
Random forest consists of a large number of individual decision trees that operate as an
ensemble. Each individual tree in the random forest spits out a class prediction and the class with
the most votes becomes the model’s prediction.
Topic Modeling
LDA model to find each document topic distribution and the high probability of word in each topic.
Here, we want to specifically look at the negative reviews to find out what aspects should the hotel be
focusing on improving.
Steps to find the optimal LDA model:
Convert the reviews to document-term matrix
GridSearch and tune for the optimal LDA model
Output the optimal lda model and its parameters
Compare LDA Model Performance Scores
Topic Modeling
From the graph, we see that there is little impact to choose different learning decay.
5 topics would produce the best model.
Conclusion
● The train dataset used to train the model provides a good prediction for the hotel reviews whether they
are positive, negative, very positive or very negative.
● The accuracy of the prediction is around 70% which is considered good.
● From the Sentiment Analysis scatter plot, we see that positive reviews are slightly more than the
negatives.
● Hotel Hilton definitely needs to improve hotel guest satisfaction.
● The WordCloud reveals some problems for the hotel manager to look into, like their breakfast.
● The hotel manager should train staff well to provide friendlier and better services.
● The hotel may also need to work with issues related to soundproofing, air conditioning, shower system
and parking.
● The EDA section could give the hotel manager a general idea of the reviews as well as the rating
distribution.
● The pyLDAvis interactive visualization would help the hotel manager to further understand what most
popular topics within the negative reviews are and make improvements accordingly.
Thank You

More Related Content

What's hot

Amazon sentimental analysis
Amazon sentimental analysisAmazon sentimental analysis
Amazon sentimental analysis
Akhila
 
Twitter sentiment analysis ppt
Twitter sentiment analysis pptTwitter sentiment analysis ppt
Twitter sentiment analysis ppt
AntaraBhattacharya12
 
Practical sentiment analysis
Practical sentiment analysisPractical sentiment analysis
Practical sentiment analysis
Diana Maynard
 
Approaches to Sentiment Analysis
Approaches to Sentiment AnalysisApproaches to Sentiment Analysis
Approaches to Sentiment Analysis
Nihar Suryawanshi
 
Opinion Mining or Sentiment Analysis
Opinion Mining or Sentiment AnalysisOpinion Mining or Sentiment Analysis
Opinion Mining or Sentiment Analysis
Rachna Raveendran
 
Introduction to Sentiment Analysis
Introduction to Sentiment AnalysisIntroduction to Sentiment Analysis
Introduction to Sentiment Analysis
Jaganadh Gopinadhan
 
New sentiment analysis of tweets using python by Ravi kumar
New sentiment analysis of tweets using python by Ravi kumarNew sentiment analysis of tweets using python by Ravi kumar
New sentiment analysis of tweets using python by Ravi kumar
Ravi Kumar
 
project sentiment analysis
project sentiment analysisproject sentiment analysis
project sentiment analysis
sneha penmetsa
 
SENTIMENT ANALYSIS-AN OBJECTIVE VIEW
SENTIMENT ANALYSIS-AN OBJECTIVE VIEWSENTIMENT ANALYSIS-AN OBJECTIVE VIEW
SENTIMENT ANALYSIS-AN OBJECTIVE VIEW
Journal For Research
 
Sentiment Analysis Using Twitter
Sentiment Analysis Using TwitterSentiment Analysis Using Twitter
Sentiment Analysis Using Twitter
piya chauhan
 
Amazon seniment
Amazon senimentAmazon seniment
Amazon seniment
Subhadeep Chakraborty
 
Sentiment Analysis using Twitter Data
Sentiment Analysis using Twitter DataSentiment Analysis using Twitter Data
Sentiment Analysis using Twitter Data
Hari Prasad
 
Sentiment analysis
Sentiment analysisSentiment analysis
Sentiment analysis
Amenda Joy
 
Amazon Product Review Sentiment Analysis with Machine Learning
Amazon Product Review Sentiment Analysis with Machine LearningAmazon Product Review Sentiment Analysis with Machine Learning
Amazon Product Review Sentiment Analysis with Machine Learning
ijtsrd
 
Text classification & sentiment analysis
Text classification & sentiment analysisText classification & sentiment analysis
Text classification & sentiment analysis
M. Atif Qureshi
 
Sentiment analysis
Sentiment analysisSentiment analysis
Sentiment analysis
Seher Can
 
Amazon Product Sentiment review
Amazon Product Sentiment reviewAmazon Product Sentiment review
Amazon Product Sentiment review
Lalit Jain
 
Sentiment analysis-by-nltk
Sentiment analysis-by-nltkSentiment analysis-by-nltk
Sentiment analysis-by-nltk
Wei-Ting Kuo
 
Sentiment Analysis Using Product Review
Sentiment Analysis Using Product ReviewSentiment Analysis Using Product Review
Sentiment Analysis Using Product Review
Abdullah Moin
 
Sentiment Analysis of Twitter Data
Sentiment Analysis of Twitter DataSentiment Analysis of Twitter Data
Sentiment Analysis of Twitter Data
Sumit Raj
 

What's hot (20)

Amazon sentimental analysis
Amazon sentimental analysisAmazon sentimental analysis
Amazon sentimental analysis
 
Twitter sentiment analysis ppt
Twitter sentiment analysis pptTwitter sentiment analysis ppt
Twitter sentiment analysis ppt
 
Practical sentiment analysis
Practical sentiment analysisPractical sentiment analysis
Practical sentiment analysis
 
Approaches to Sentiment Analysis
Approaches to Sentiment AnalysisApproaches to Sentiment Analysis
Approaches to Sentiment Analysis
 
Opinion Mining or Sentiment Analysis
Opinion Mining or Sentiment AnalysisOpinion Mining or Sentiment Analysis
Opinion Mining or Sentiment Analysis
 
Introduction to Sentiment Analysis
Introduction to Sentiment AnalysisIntroduction to Sentiment Analysis
Introduction to Sentiment Analysis
 
New sentiment analysis of tweets using python by Ravi kumar
New sentiment analysis of tweets using python by Ravi kumarNew sentiment analysis of tweets using python by Ravi kumar
New sentiment analysis of tweets using python by Ravi kumar
 
project sentiment analysis
project sentiment analysisproject sentiment analysis
project sentiment analysis
 
SENTIMENT ANALYSIS-AN OBJECTIVE VIEW
SENTIMENT ANALYSIS-AN OBJECTIVE VIEWSENTIMENT ANALYSIS-AN OBJECTIVE VIEW
SENTIMENT ANALYSIS-AN OBJECTIVE VIEW
 
Sentiment Analysis Using Twitter
Sentiment Analysis Using TwitterSentiment Analysis Using Twitter
Sentiment Analysis Using Twitter
 
Amazon seniment
Amazon senimentAmazon seniment
Amazon seniment
 
Sentiment Analysis using Twitter Data
Sentiment Analysis using Twitter DataSentiment Analysis using Twitter Data
Sentiment Analysis using Twitter Data
 
Sentiment analysis
Sentiment analysisSentiment analysis
Sentiment analysis
 
Amazon Product Review Sentiment Analysis with Machine Learning
Amazon Product Review Sentiment Analysis with Machine LearningAmazon Product Review Sentiment Analysis with Machine Learning
Amazon Product Review Sentiment Analysis with Machine Learning
 
Text classification & sentiment analysis
Text classification & sentiment analysisText classification & sentiment analysis
Text classification & sentiment analysis
 
Sentiment analysis
Sentiment analysisSentiment analysis
Sentiment analysis
 
Amazon Product Sentiment review
Amazon Product Sentiment reviewAmazon Product Sentiment review
Amazon Product Sentiment review
 
Sentiment analysis-by-nltk
Sentiment analysis-by-nltkSentiment analysis-by-nltk
Sentiment analysis-by-nltk
 
Sentiment Analysis Using Product Review
Sentiment Analysis Using Product ReviewSentiment Analysis Using Product Review
Sentiment Analysis Using Product Review
 
Sentiment Analysis of Twitter Data
Sentiment Analysis of Twitter DataSentiment Analysis of Twitter Data
Sentiment Analysis of Twitter Data
 

Similar to Sentiment analysis presentation

Yelp Product Challenge
Yelp Product ChallengeYelp Product Challenge
Yelp Product Challenge
Hisham Radwan
 
How Does Customer Feedback Sentiment Analysis Work in Search Marketing?
How Does Customer Feedback Sentiment Analysis Work in Search Marketing?How Does Customer Feedback Sentiment Analysis Work in Search Marketing?
How Does Customer Feedback Sentiment Analysis Work in Search Marketing?
Countants
 
IRJET- Opinion Targets and Opinion Words Extraction for Online Reviews wi...
IRJET-  	  Opinion Targets and Opinion Words Extraction for Online Reviews wi...IRJET-  	  Opinion Targets and Opinion Words Extraction for Online Reviews wi...
IRJET- Opinion Targets and Opinion Words Extraction for Online Reviews wi...
IRJET Journal
 
IRJET- Fake Review Detection using Opinion Mining
IRJET- Fake Review Detection using Opinion MiningIRJET- Fake Review Detection using Opinion Mining
IRJET- Fake Review Detection using Opinion Mining
IRJET Journal
 
IRJET- Survey of Classification of Business Reviews using Sentiment Analysis
IRJET- Survey of Classification of Business Reviews using Sentiment AnalysisIRJET- Survey of Classification of Business Reviews using Sentiment Analysis
IRJET- Survey of Classification of Business Reviews using Sentiment Analysis
IRJET Journal
 
Leila 2
Leila 2Leila 2
Leila 2
Leila 2Leila 2
Deep Dive - Consumer Sentiment Rating & Analysis White Paper
Deep Dive - Consumer Sentiment Rating & Analysis White PaperDeep Dive - Consumer Sentiment Rating & Analysis White Paper
Deep Dive - Consumer Sentiment Rating & Analysis White Paper
Jon LeMire
 
GA – Client Project General Guidelines Mgmt5074 Fanshaw.docx
GA – Client Project General Guidelines Mgmt5074  Fanshaw.docxGA – Client Project General Guidelines Mgmt5074  Fanshaw.docx
GA – Client Project General Guidelines Mgmt5074 Fanshaw.docx
hanneloremccaffery
 
How to Build Legendary Customer Relationships With Artificial Intelligence
How to Build Legendary Customer Relationships With Artificial IntelligenceHow to Build Legendary Customer Relationships With Artificial Intelligence
How to Build Legendary Customer Relationships With Artificial Intelligence
Christopher Mohritz
 
Customer_Analysis.docx
Customer_Analysis.docxCustomer_Analysis.docx
Customer_Analysis.docx
KevalKabariya
 
Lead Scoring Case Study
Lead Scoring Case StudyLead Scoring Case Study
Lead Scoring Case Study
LumbiniSardare
 
10 Things to Know about Net Promoter ScoresPRES
10 Things to Know about Net Promoter ScoresPRES10 Things to Know about Net Promoter ScoresPRES
10 Things to Know about Net Promoter ScoresPRES
Ed Smith
 
Customer review using sentiment analysis.pptx
Customer review using sentiment analysis.pptxCustomer review using sentiment analysis.pptx
Customer review using sentiment analysis.pptx
TarunKalkar
 
Sentiment Analysis of Product Reviews and Trustworthiness Evaluation using TRS
Sentiment Analysis of Product Reviews and Trustworthiness Evaluation using TRSSentiment Analysis of Product Reviews and Trustworthiness Evaluation using TRS
Sentiment Analysis of Product Reviews and Trustworthiness Evaluation using TRS
IRJET Journal
 
Sentiment Analysis of Product Reviews and Trustworthiness Evaluation using TRS
Sentiment Analysis of Product Reviews and Trustworthiness Evaluation using TRSSentiment Analysis of Product Reviews and Trustworthiness Evaluation using TRS
Sentiment Analysis of Product Reviews and Trustworthiness Evaluation using TRS
IRJET Journal
 
How to Get Five Star Rating in Reflection Paper Assignment
How to Get Five Star Rating in Reflection Paper AssignmentHow to Get Five Star Rating in Reflection Paper Assignment
How to Get Five Star Rating in Reflection Paper Assignment
Lesa Cote
 
Operational Risk Management: Standard Requirements
Operational Risk Management: Standard RequirementsOperational Risk Management: Standard Requirements
Operational Risk Management: Standard Requirements
Gerardus Blokdyk
 
Final presentation
Final presentationFinal presentation
Final presentation
Brandon Hill
 
Measuring the Quality of IT Support
Measuring the Quality of IT SupportMeasuring the Quality of IT Support
Measuring the Quality of IT Support
Dave O'Reardon
 

Similar to Sentiment analysis presentation (20)

Yelp Product Challenge
Yelp Product ChallengeYelp Product Challenge
Yelp Product Challenge
 
How Does Customer Feedback Sentiment Analysis Work in Search Marketing?
How Does Customer Feedback Sentiment Analysis Work in Search Marketing?How Does Customer Feedback Sentiment Analysis Work in Search Marketing?
How Does Customer Feedback Sentiment Analysis Work in Search Marketing?
 
IRJET- Opinion Targets and Opinion Words Extraction for Online Reviews wi...
IRJET-  	  Opinion Targets and Opinion Words Extraction for Online Reviews wi...IRJET-  	  Opinion Targets and Opinion Words Extraction for Online Reviews wi...
IRJET- Opinion Targets and Opinion Words Extraction for Online Reviews wi...
 
IRJET- Fake Review Detection using Opinion Mining
IRJET- Fake Review Detection using Opinion MiningIRJET- Fake Review Detection using Opinion Mining
IRJET- Fake Review Detection using Opinion Mining
 
IRJET- Survey of Classification of Business Reviews using Sentiment Analysis
IRJET- Survey of Classification of Business Reviews using Sentiment AnalysisIRJET- Survey of Classification of Business Reviews using Sentiment Analysis
IRJET- Survey of Classification of Business Reviews using Sentiment Analysis
 
Leila 2
Leila 2Leila 2
Leila 2
 
Leila 2
Leila 2Leila 2
Leila 2
 
Deep Dive - Consumer Sentiment Rating & Analysis White Paper
Deep Dive - Consumer Sentiment Rating & Analysis White PaperDeep Dive - Consumer Sentiment Rating & Analysis White Paper
Deep Dive - Consumer Sentiment Rating & Analysis White Paper
 
GA – Client Project General Guidelines Mgmt5074 Fanshaw.docx
GA – Client Project General Guidelines Mgmt5074  Fanshaw.docxGA – Client Project General Guidelines Mgmt5074  Fanshaw.docx
GA – Client Project General Guidelines Mgmt5074 Fanshaw.docx
 
How to Build Legendary Customer Relationships With Artificial Intelligence
How to Build Legendary Customer Relationships With Artificial IntelligenceHow to Build Legendary Customer Relationships With Artificial Intelligence
How to Build Legendary Customer Relationships With Artificial Intelligence
 
Customer_Analysis.docx
Customer_Analysis.docxCustomer_Analysis.docx
Customer_Analysis.docx
 
Lead Scoring Case Study
Lead Scoring Case StudyLead Scoring Case Study
Lead Scoring Case Study
 
10 Things to Know about Net Promoter ScoresPRES
10 Things to Know about Net Promoter ScoresPRES10 Things to Know about Net Promoter ScoresPRES
10 Things to Know about Net Promoter ScoresPRES
 
Customer review using sentiment analysis.pptx
Customer review using sentiment analysis.pptxCustomer review using sentiment analysis.pptx
Customer review using sentiment analysis.pptx
 
Sentiment Analysis of Product Reviews and Trustworthiness Evaluation using TRS
Sentiment Analysis of Product Reviews and Trustworthiness Evaluation using TRSSentiment Analysis of Product Reviews and Trustworthiness Evaluation using TRS
Sentiment Analysis of Product Reviews and Trustworthiness Evaluation using TRS
 
Sentiment Analysis of Product Reviews and Trustworthiness Evaluation using TRS
Sentiment Analysis of Product Reviews and Trustworthiness Evaluation using TRSSentiment Analysis of Product Reviews and Trustworthiness Evaluation using TRS
Sentiment Analysis of Product Reviews and Trustworthiness Evaluation using TRS
 
How to Get Five Star Rating in Reflection Paper Assignment
How to Get Five Star Rating in Reflection Paper AssignmentHow to Get Five Star Rating in Reflection Paper Assignment
How to Get Five Star Rating in Reflection Paper Assignment
 
Operational Risk Management: Standard Requirements
Operational Risk Management: Standard RequirementsOperational Risk Management: Standard Requirements
Operational Risk Management: Standard Requirements
 
Final presentation
Final presentationFinal presentation
Final presentation
 
Measuring the Quality of IT Support
Measuring the Quality of IT SupportMeasuring the Quality of IT Support
Measuring the Quality of IT Support
 

Recently uploaded

What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 

Recently uploaded (20)

What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 

Sentiment analysis presentation

  • 2. About Sentiment analysis is one of the Natural Processing techniques that extracts the emotions from the raw set of data. It is basically applied on the news data, social media posts, customer reviews etc to understand the emotions of the readers or the customers and to understand how the users are feeling about the posts they are reading. With the increased competitions, the customer feedback has become very important. With the increased and larger users opinion, reviews and feedback, automated techniques are required to analyse them and to take actions accordingly.
  • 3. Techniques ● Lexical analysis ● Machine learning based analysis ● Hybrid/Combined analysis
  • 4. Lexical Analysis The input text is converted to tokens by the Tokenizer and then every new token encountered is then matched for the lexicon in the dictionary. On finding the positive match, the score is added to the total pool of score for the input text. An accuracy of about 80% on single phrases can be achieved by the use of hand tagged lexicons comprised of only adjectives, which are crucial for deciding the subjectivity of an evaluative text.
  • 5. Machine Learning Based Analysis Data Collection Pre Processin g Training Data Classificat ion Plotting Results
  • 7. Libraries ● NLTK: Python module for NLP techniques ● Vader: NLTK library used for sentiment analysis ● Gensim: Used for topic-modelling ● Scikit-learn: Python machine learning library
  • 8. Web Scraping ● Scraping Reviews from Bookings.com ● The hotel I have chosen is "Hotel Hilton," San Francisco, CA. ● The scraped data includes: ● Basic information of the reviewer and reviews ● Rating Score ● Reviewer Name ● Reviewer's Nationality ● Overall Review (contains both positive & negative reviews) ● Reviewer Reviewed Times ● Review Date ● Review Tags like Trip type, such as business trip, leisure trip ● Positive reviews ● Negative reviews
  • 10. The negative reviews are more compared positive reviews.
  • 11. Histogram representation of hotel reviews. The reviews are more negative compared to positive reviews. Solution
  • 12. Histogram showing the reviews based on the trip type, for example: couple trip, solo trip, family, business, etc.
  • 13. Positive Review Outcome ● From the above plot, we can conclude that most people are probably satisfied with the location, very convenient, comfortable and close to Union Square or Chinatown. ● Easy to find restaurants or pubs nearby, friendly and helpful staff ● Clean room, comfortable bed, and good price, etc.
  • 15. Negative Review Outcome ● Words like “breakfast”, “room” and “staff” are mentioned quite often, which indicates that maybe people were complaining about the staffs who were being rude, small rooms, and coffee/ cereal/ muffin provided during breakfast. ● The air conditioning or the shower system may need improvements as we see words like “hot”, “cold”, “air”, “condition”, “bathroom” and “shower” in the WordCloud. ● The hotel may also need to solve issues related to soundproofing and parking.
  • 17. Sentiment Analysis Outcome The green dots that lies on the vertical line are the “neutral” reviews The red dots on the left are the “negative” reviews The blue dots on the right are the “positive” reviews. Bigger dots indicate more subjectivity.
  • 19. Model Training GradientBoostingClassifier GradientBoostingClassifier build trees one at a time, where each new tree helps to correct errors made by previously trained tree. After applying the classifier, the accuracy score found is 67% which can vary in the range of 63% to 80% depending upon the combination of the selected features. RandomForestClassifier Random forest consists of a large number of individual decision trees that operate as an ensemble. Each individual tree in the random forest spits out a class prediction and the class with the most votes becomes the model’s prediction.
  • 20. Topic Modeling LDA model to find each document topic distribution and the high probability of word in each topic. Here, we want to specifically look at the negative reviews to find out what aspects should the hotel be focusing on improving. Steps to find the optimal LDA model: Convert the reviews to document-term matrix GridSearch and tune for the optimal LDA model Output the optimal lda model and its parameters Compare LDA Model Performance Scores
  • 21. Topic Modeling From the graph, we see that there is little impact to choose different learning decay. 5 topics would produce the best model.
  • 22. Conclusion ● The train dataset used to train the model provides a good prediction for the hotel reviews whether they are positive, negative, very positive or very negative. ● The accuracy of the prediction is around 70% which is considered good. ● From the Sentiment Analysis scatter plot, we see that positive reviews are slightly more than the negatives. ● Hotel Hilton definitely needs to improve hotel guest satisfaction. ● The WordCloud reveals some problems for the hotel manager to look into, like their breakfast. ● The hotel manager should train staff well to provide friendlier and better services. ● The hotel may also need to work with issues related to soundproofing, air conditioning, shower system and parking. ● The EDA section could give the hotel manager a general idea of the reviews as well as the rating distribution. ● The pyLDAvis interactive visualization would help the hotel manager to further understand what most popular topics within the negative reviews are and make improvements accordingly.