Wine: A Battlefield for Natural Language Processing

Posted on Jun 29, 2020
The skills I demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

wine

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

wine

Chardonnay

wine

and Cabernet Sauvignon

wine

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 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

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans 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 boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis 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 seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI