Skip to content

algakovic/element_coffee_review_analysis

Repository files navigation

Element Coffee Review Analysis

Semantic Analysis of Reviews and Word Cloud Imaging for Element Coffee

Header Image Element Coffee Latte Art, Image Source:

Executive Summary:¶

Element Coffee requested an analysis on the reviews for their brick and mortar coffee shop in Northfields London. Data was extracted using Google Cloud and the Google My Business API. NLP was used to classify the sentiment of reviews as either 'NEGATIVE' or 'POSITIVE'. with most (91.4%) reviews scoring a 5 Star Rating. A Word Cloud of the reviews was created to display the most important words and concepts that occur in the reviews.

Contents:

  1. Importing modules and libraries
  2. Accessing Data with Google Auth 2.0 Playground
  3. Save and Import Data to and from .csv file
  4. Data Cleaning
  5. Exploratory Data Analysis 1
  6. NLP Sentiment-Analysis with Transformers Library
    6.1 Pre-Processing for NLP
  7. Exploratory Data Analysis 2
  8. WordCloud Image Generation
    8.1 WordCloud for All Reviews

Key Files

  1. transformers_sentiment_analysis.ipynb: Jupyter Notebook file for review analysis
  2. recursive_review_data.csv: Data file containing review data from Element Coffee
  3. img: folder containing images generated by WordCloud

Methodology

  • Primary ETL was performed with the Google Cloud And Google My Business API.
  • Once obtained Data was cleaned and pre-processed for NLP semantic analysis using DistilBert.
  • Each review was assigned a positive or negative label and a score.
  • Word Clouds were generated for all reviews using WordCloud library.

Key Findings

  • Over 90% of Element Coffee's 104 reviews had a 5 star rating.

  • The model was able to label 74/78 reviews as 'POSITIVE with an average positive score of 0.999.

  • Two reviews were correctly labeled negative out of a total of four negative reviews. Two falsely labeled 'NEGATIVE' reviews were ambiguous and difficult for the model to interpret.

  • WordCloud suggests that 'lovely', 'friendly' 'staff' 'warm' 'atmosphere' are top words that occur in the reviews.

all_reviews_final Wordcloud generation of all reviews data

Conclusion

The Element Coffee business is doing well with their ratings. Particularly the atmosphere and friendlieness of the staff is highly revered. Customers use words that suggest a high degree of certainty about their review of the coffee shop.

Recommendations

Using these Data to inform the online store is paramount in the coming times of lockdown and COVID19. It is not certain that the brick and mortar store will remain open therefore feeding these results back into the online presence and website is the best way to proceed.