Natural Language Processing of Wine Reviews

Ira Villar
Posted on Jun 29, 2020

If there's one thing that shares a wide variety of granular flavors with subtle intricacies and nuanced flavor notes, it's wine. Each person has their own taste and preference and with that, their own take and perception of various wines available all throughout the world. This field seemed like a principal playground and battlefield for natural language processing or NLP for short.

To start off, I found a data set with over 130,000 wine reviews from around the world. Other than the word clouds I created on Jupyter Notebook, I also created an interactive dashboard to find certain word clouds from various regions and locations. 

Wine Review Data Set

Tableau Dashboard

Github link

The first thing I did to the dataset was to isolate the descriptions and take out extra spaces as well as any punctuation. I then removed stop words such as 'if, the, and 'from' since they added no value to the word clouds I was about to make. The next steps included lemmatization and stemming. This is to get the root word needed to grasp the true intention of the reviews. An example could be 'feet' to mean 'foot'.

Here are just some examples of some word clouds I was able to create, separated by category or variety of wine. 

Pinot Noir

Chardonnay

and Cabernet Sauvignon

I also wanted to make an interactive tool that could be used to find various word clouds to get an idea of the wines per location and region.

To be able to properly load the data set into tableau I'd have to make a column for each of the words in the descriptions (yes, per row), and only then would I be able to pivot the information to create and outrageously larger data set. I think it was worth it in the end. 

A tableau dashboard that shows unique wordclouds per location, region, or even specific wine chosen. 

NLP looks a bit complicated at first but surprisingly if you follow the methodology, it all just makes sense. Hopefully this tool can assist others in choosing wine that they would enjoy. 

About Author

Ira Villar

Ira Villar

Ira is currently a Data Science Fellow at the NYC Data Science Academy. He has nearly a decade of experience in film directing and production. This gives him a unique insight and perspective when it comes to data...
View all posts by Ira Villar >

Leave a Comment

No comments found.

View Posts by Categories


Our Recent Popular Posts


View Posts by Tags

2019 airbnb Alex Baransky alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus API Application artist aws beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep Bundles California Cancer Research capstone Career Career Day citibike clustering Coding Course Demo Course Report D3.js data Data Analyst data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization Deep Learning Demo Day Discount dplyr employer networking feature engineering Finance Financial Data Science Flask gbm Get Hired ggplot2 googleVis Hadoop higgs boson Hiring hiring partner events Hiring Partners Industry Experts Instructor Blog Instructor Interview Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter lasso regression Lead Data Scienctist Lead Data Scientist leaflet linear regression Logistic Regression machine learning Maps matplotlib Medical Research Meet the team meetup Networking neural network Neural networks New Courses nlp NYC NYC Data Science nyc data science academy NYC Open Data NYCDSA NYCDSA Alumni Online Online Bootcamp Open Data painter pandas Part-time Portfolio Development prediction Prework Programming PwC python python machine learning python scrapy python web scraping python webscraping Python Workshop R R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn Selenium sentiment analysis Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau team TensorFlow Testimonial tf-idf Top Data Science Bootcamp twitter visualization web scraping Weekend Course What to expect word cloud word2vec XGBoost yelp