SlideShare a Scribd company logo
1 of 28
Download to read offline
NLP CLASSIFICATION
 

&
 

SENTIMENT ANALYSIS
YALIN YENE
R

October 04, 2020
Methodology
Results
Conclusions
Introduction
Future Work
Appendix
Introduction Methodology Results Conclusions Future Work Appendix
Business Need: Improving services and customers satisfy for Bacchanal Buffet.
Solution:
Using Yelp, Foursquare and Twitter data, Analyse Reviews,
Customer’s Sentiment and provide suggestions.
Objectives:
• NLP Supervised Classi
fi
cation on Yelp Dataset


• Sentiment Analysis on Yelp Dataset


• Scraping Foursquare Dataset and Building Sentiment Analysis


• Getting Tweets about business and Building Sentiment Analysis.


• Compare Results
3
Introduction Methodology Results Conclusions Future Work Appendix
4
5
Introduction Results Conclusions Future Work Appendix
• Web Scraping


• 409 reviews


• Json


• 209.393 business


• 1.968.703 users


• 8.021.122 reviews - 10.674
• Ni
fi
Get Twitter


Methodology
Tools
Data Acquire
Manipulation
Modelling NLP
Visualisation
Data Sources
6
Introduction Results Conclusions Future Work AppendixMethodology
Exploratory


Data Analysis
Data Acquire Modelling EvaluationText Processing
7
Introduction Methodology Results Conclusions Future Work Appendix
8
Introduction Methodology Results Conclusions Future Work Appendix
9
Introduction Methodology Results Conclusions Future Work Appendix
Adding Sentiment Features


1,2 —> Negative


3 —> Neutral


4,5 —> Positive
Removing Characters


numbers (1-9)


punctuation ()


new line (n)


Convert Lower Case
Detecting Language


Removing non English (42 reviews)
Text Processing
Applying Stemming & Lemmatisation
10
Introduction Methodology Results Conclusions Future Work Appendix
Split dataset into X (feature) and y (target)


Split dataset into training and test sets


Methods


Count Vectorizer, 10374 rows x 15082 features


Count Vectorizer, Ngram,10374 rows x 244175 features


TF-IDF


TF-IDF, Ngram


Classi
fi
er


LogisticRegression(),


KNeighborsClassi
fi
er(),


DecisionTreeClassi
fi
er(),


RandomForestClassi
fi
er(),


AdaBoostClassi
fi
er(),


GradientBoostingClassi
fi
er(),


MultinomialNB(),


BernoulliNB()


10
Modelling
11
Introduction Methodology Results Conclusions Future Work Appendix
11
12
Introduction Methodology Results Conclusions Future Work Appendix
12
Sentiment Analysis - Text Processing
Removing Characters


numbers (1-9)


punctuation ()


new line (n)


Convert Lower Case
Calculating Polarity, Subjectivity

TextBlob(text).sentiment
Calculating Pos, Neg, Neu, Compound


SentimentIntensityAnalyzer().polarity_scores()
13
Introduction Methodology Results Conclusions Future Work Appendix
13
WordCloud (1 Star)


1051 reviews
WordCloud (5 Star)


4226 reviews
14
Introduction Methodology Results Conclusions Future Work Appendix
14
WordCloud (Negative)


Mean: 2.03


1167 reviews
WordCloud (Positive)


Mean: 4.01


9167 reviews
15
Introduction Methodology Results Conclusions Future Work Appendix
15
Positive 2 words & 3 words Negative 2 words & 3 words
16
Introduction Methodology Results Conclusions Future Work Appendix
17
Introduction Methodology Results Conclusions Future Work Appendix
18
Introduction Methodology Results Conclusions Future Work Appendix
18
WordCloud (Positive)


262 reviews
WordCloud (Negative)


46 reviews
19
Introduction Methodology Results Conclusions Future Work Appendix
19
Positive 2 words & 3 words Negative 2 words & 3 words
20
Introduction Methodology Results Conclusions Future Work Appendix
21
Introduction Methodology Results Conclusions Future Work Appendix
22
Introduction Methodology Results Conclusions Future Work Appendix
46.08 %
34.97 %
18.95 %
23
Introduction Methodology Results Future Work AppendixConclusions
Yelp


Supervised Cls
Yelp


Sentiment
Foursquare
Sentiment.
Twitter


Sentiment
Positive Rate 66.06 88.37 85.06 79.62
Negative Rate 18.93 11.25 14.94 16.28
Neutral Rate 15.01 0.39 - 4.1
24
Introduction Methodology Results Future Work AppendixConclusions
• Waiting Long Time


• Expensive


• Salty


• Rude Waiter


• Restroom


• Customer services


• Food Poisoning
25
Introduction Methodology Results Conclusions Future Work Appendix
THANK YOU
YALIN YENE
R

+44 7786 76155
9

yalinyener@gmail.com


https://github.com/yalinyener


https://medium.com/@yalinyener


https://www.linkedin.com/in/yalinyener
27
Introduction Methodology Results Conclusions Future Work Appendix
28
Introduction Methodology Results Conclusions Future Work Appendix
Data Scientist Data Engineer

More Related Content

Similar to Nlp Sentiment

Improving the performance and scalability in web based applications
Improving the performance and scalability in web based applicationsImproving the performance and scalability in web based applications
Improving the performance and scalability in web based applicationsIvo Stefanov
 
Planning your analytics journey - webinar slides
Planning your analytics journey  - webinar slidesPlanning your analytics journey  - webinar slides
Planning your analytics journey - webinar slidesSprout Labs
 
Using Net Promoter Score (NPS) to Increase Course Engagement
Using Net Promoter Score (NPS) to Increase Course EngagementUsing Net Promoter Score (NPS) to Increase Course Engagement
Using Net Promoter Score (NPS) to Increase Course EngagementLambda Solutions
 
Session 4 Everything You Should Know About PMP & CAPM Certifications
Session 4 Everything You Should Know About PMP & CAPM CertificationsSession 4 Everything You Should Know About PMP & CAPM Certifications
Session 4 Everything You Should Know About PMP & CAPM CertificationsSeshne Govender
 
Assignment 2 New Supervisor Training on Performance Evaluations.docx
Assignment 2 New Supervisor Training on Performance Evaluations.docxAssignment 2 New Supervisor Training on Performance Evaluations.docx
Assignment 2 New Supervisor Training on Performance Evaluations.docxbraycarissa250
 
Final Presentation V3
Final Presentation V3Final Presentation V3
Final Presentation V3weichen
 
Crafting a Compelling Data Science Resume
Crafting a Compelling Data Science ResumeCrafting a Compelling Data Science Resume
Crafting a Compelling Data Science ResumeArushi Prakash, Ph.D.
 
Assignment 3 Team Project Outline(Complete by Sunday, Nov. .docx
Assignment 3 Team Project Outline(Complete by Sunday, Nov. .docxAssignment 3 Team Project Outline(Complete by Sunday, Nov. .docx
Assignment 3 Team Project Outline(Complete by Sunday, Nov. .docxSusanaFurman449
 
User Centered Design for Projects
User Centered Design for ProjectsUser Centered Design for Projects
User Centered Design for ProjectsPeter Boersma
 
Growth Hacking at Philips Lighting
Growth Hacking at Philips LightingGrowth Hacking at Philips Lighting
Growth Hacking at Philips LightingKOOACH
 
Class_Summary_-_Outlook_2010_-_Part_2_Oct_13_2015
Class_Summary_-_Outlook_2010_-_Part_2_Oct_13_2015Class_Summary_-_Outlook_2010_-_Part_2_Oct_13_2015
Class_Summary_-_Outlook_2010_-_Part_2_Oct_13_2015Carrie E. Williams
 
Results and Recommendations FINAL
Results and Recommendations FINAL Results and Recommendations FINAL
Results and Recommendations FINAL Bethany Schutter
 
Hypothesis driven storyboarding
Hypothesis driven storyboardingHypothesis driven storyboarding
Hypothesis driven storyboardingRahul Sahai
 
BABOK Study Group - meeting 2
BABOK Study Group - meeting 2BABOK Study Group - meeting 2
BABOK Study Group - meeting 2Paweł Zubkiewicz
 
Designing useful evaluations - An online workshop for the Jisc AF programme_I...
Designing useful evaluations - An online workshop for the Jisc AF programme_I...Designing useful evaluations - An online workshop for the Jisc AF programme_I...
Designing useful evaluations - An online workshop for the Jisc AF programme_I...Rachel Harris
 
Benchmarking Mini-series Part #2: Conducting Quick, Cost-Effective UX Benchma...
Benchmarking Mini-series Part #2: Conducting Quick, Cost-Effective UX Benchma...Benchmarking Mini-series Part #2: Conducting Quick, Cost-Effective UX Benchma...
Benchmarking Mini-series Part #2: Conducting Quick, Cost-Effective UX Benchma...UserZoom
 
C5Think of a dependent variable within your work environme
C5Think of a dependent variable within your work environmeC5Think of a dependent variable within your work environme
C5Think of a dependent variable within your work environmeChereCoble417
 

Similar to Nlp Sentiment (20)

Improving the performance and scalability in web based applications
Improving the performance and scalability in web based applicationsImproving the performance and scalability in web based applications
Improving the performance and scalability in web based applications
 
Planning your analytics journey - webinar slides
Planning your analytics journey  - webinar slidesPlanning your analytics journey  - webinar slides
Planning your analytics journey - webinar slides
 
Using Net Promoter Score (NPS) to Increase Course Engagement
Using Net Promoter Score (NPS) to Increase Course EngagementUsing Net Promoter Score (NPS) to Increase Course Engagement
Using Net Promoter Score (NPS) to Increase Course Engagement
 
Session 4 Everything You Should Know About PMP & CAPM Certifications
Session 4 Everything You Should Know About PMP & CAPM CertificationsSession 4 Everything You Should Know About PMP & CAPM Certifications
Session 4 Everything You Should Know About PMP & CAPM Certifications
 
Assignment 2 New Supervisor Training on Performance Evaluations.docx
Assignment 2 New Supervisor Training on Performance Evaluations.docxAssignment 2 New Supervisor Training on Performance Evaluations.docx
Assignment 2 New Supervisor Training on Performance Evaluations.docx
 
Final Presentation V3
Final Presentation V3Final Presentation V3
Final Presentation V3
 
Crafting a Compelling Data Science Resume
Crafting a Compelling Data Science ResumeCrafting a Compelling Data Science Resume
Crafting a Compelling Data Science Resume
 
Assignment 3 Team Project Outline(Complete by Sunday, Nov. .docx
Assignment 3 Team Project Outline(Complete by Sunday, Nov. .docxAssignment 3 Team Project Outline(Complete by Sunday, Nov. .docx
Assignment 3 Team Project Outline(Complete by Sunday, Nov. .docx
 
Srividya. B resume
Srividya. B resumeSrividya. B resume
Srividya. B resume
 
User Centered Design for Projects
User Centered Design for ProjectsUser Centered Design for Projects
User Centered Design for Projects
 
Growth Hacking at Philips Lighting
Growth Hacking at Philips LightingGrowth Hacking at Philips Lighting
Growth Hacking at Philips Lighting
 
Class_Summary_-_Outlook_2010_-_Part_2_Oct_13_2015
Class_Summary_-_Outlook_2010_-_Part_2_Oct_13_2015Class_Summary_-_Outlook_2010_-_Part_2_Oct_13_2015
Class_Summary_-_Outlook_2010_-_Part_2_Oct_13_2015
 
CURRICULUM_Linked
CURRICULUM_LinkedCURRICULUM_Linked
CURRICULUM_Linked
 
Results and Recommendations FINAL
Results and Recommendations FINAL Results and Recommendations FINAL
Results and Recommendations FINAL
 
Hypothesis driven storyboarding
Hypothesis driven storyboardingHypothesis driven storyboarding
Hypothesis driven storyboarding
 
BABOK Study Group - meeting 2
BABOK Study Group - meeting 2BABOK Study Group - meeting 2
BABOK Study Group - meeting 2
 
Designing useful evaluations - An online workshop for the Jisc AF programme_I...
Designing useful evaluations - An online workshop for the Jisc AF programme_I...Designing useful evaluations - An online workshop for the Jisc AF programme_I...
Designing useful evaluations - An online workshop for the Jisc AF programme_I...
 
Benchmarking Mini-series Part #2: Conducting Quick, Cost-Effective UX Benchma...
Benchmarking Mini-series Part #2: Conducting Quick, Cost-Effective UX Benchma...Benchmarking Mini-series Part #2: Conducting Quick, Cost-Effective UX Benchma...
Benchmarking Mini-series Part #2: Conducting Quick, Cost-Effective UX Benchma...
 
C5Think of a dependent variable within your work environme
C5Think of a dependent variable within your work environmeC5Think of a dependent variable within your work environme
C5Think of a dependent variable within your work environme
 
RimpaKundu
RimpaKunduRimpaKundu
RimpaKundu
 

Recently uploaded

Exploring Criminology and Criminal Behaviour.pdf
Exploring Criminology and Criminal Behaviour.pdfExploring Criminology and Criminal Behaviour.pdf
Exploring Criminology and Criminal Behaviour.pdfrohankumarsinghrore1
 
COMPUTING ANTI-DERIVATIVES (Integration by SUBSTITUTION)
COMPUTING ANTI-DERIVATIVES(Integration by SUBSTITUTION)COMPUTING ANTI-DERIVATIVES(Integration by SUBSTITUTION)
COMPUTING ANTI-DERIVATIVES (Integration by SUBSTITUTION)AkefAfaneh2
 
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticsPulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticssakshisoni2385
 
GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)Areesha Ahmad
 
Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learninglevieagacer
 
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...Monika Rani
 
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort ServiceCall Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort Serviceshivanisharma5244
 
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...Scintica Instrumentation
 
Chemistry 5th semester paper 1st Notes.pdf
Chemistry 5th semester paper 1st Notes.pdfChemistry 5th semester paper 1st Notes.pdf
Chemistry 5th semester paper 1st Notes.pdfSumit Kumar yadav
 
Molecular markers- RFLP, RAPD, AFLP, SNP etc.
Molecular markers- RFLP, RAPD, AFLP, SNP etc.Molecular markers- RFLP, RAPD, AFLP, SNP etc.
Molecular markers- RFLP, RAPD, AFLP, SNP etc.Silpa
 
PSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptxPSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptxSuji236384
 
Velocity and Acceleration PowerPoint.ppt
Velocity and Acceleration PowerPoint.pptVelocity and Acceleration PowerPoint.ppt
Velocity and Acceleration PowerPoint.pptRakeshMohan42
 
biology HL practice questions IB BIOLOGY
biology HL practice questions IB BIOLOGYbiology HL practice questions IB BIOLOGY
biology HL practice questions IB BIOLOGY1301aanya
 
Stages in the normal growth curve
Stages in the normal growth curveStages in the normal growth curve
Stages in the normal growth curveAreesha Ahmad
 
module for grade 9 for distance learning
module for grade 9 for distance learningmodule for grade 9 for distance learning
module for grade 9 for distance learninglevieagacer
 
GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)Areesha Ahmad
 
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIACURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIADr. TATHAGAT KHOBRAGADE
 
GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)Areesha Ahmad
 

Recently uploaded (20)

Exploring Criminology and Criminal Behaviour.pdf
Exploring Criminology and Criminal Behaviour.pdfExploring Criminology and Criminal Behaviour.pdf
Exploring Criminology and Criminal Behaviour.pdf
 
COMPUTING ANTI-DERIVATIVES (Integration by SUBSTITUTION)
COMPUTING ANTI-DERIVATIVES(Integration by SUBSTITUTION)COMPUTING ANTI-DERIVATIVES(Integration by SUBSTITUTION)
COMPUTING ANTI-DERIVATIVES (Integration by SUBSTITUTION)
 
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticsPulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
 
GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)
 
Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learning
 
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
 
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort ServiceCall Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
 
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Chemistry 5th semester paper 1st Notes.pdf
Chemistry 5th semester paper 1st Notes.pdfChemistry 5th semester paper 1st Notes.pdf
Chemistry 5th semester paper 1st Notes.pdf
 
Molecular markers- RFLP, RAPD, AFLP, SNP etc.
Molecular markers- RFLP, RAPD, AFLP, SNP etc.Molecular markers- RFLP, RAPD, AFLP, SNP etc.
Molecular markers- RFLP, RAPD, AFLP, SNP etc.
 
PSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptxPSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptx
 
Velocity and Acceleration PowerPoint.ppt
Velocity and Acceleration PowerPoint.pptVelocity and Acceleration PowerPoint.ppt
Velocity and Acceleration PowerPoint.ppt
 
biology HL practice questions IB BIOLOGY
biology HL practice questions IB BIOLOGYbiology HL practice questions IB BIOLOGY
biology HL practice questions IB BIOLOGY
 
Stages in the normal growth curve
Stages in the normal growth curveStages in the normal growth curve
Stages in the normal growth curve
 
module for grade 9 for distance learning
module for grade 9 for distance learningmodule for grade 9 for distance learning
module for grade 9 for distance learning
 
Clean In Place(CIP).pptx .
Clean In Place(CIP).pptx                 .Clean In Place(CIP).pptx                 .
Clean In Place(CIP).pptx .
 
GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)
 
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIACURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
 
GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)
 

Nlp Sentiment