/sentiment-analysis-yelp-dataset

Technical report of our presentation Yelp: “Startup Survival Kit”. All necessary R files are attached along with a brief explanation in this file. NYU Business Analytics 2016 Course

MIT LicenseMIT

sentiment-analysis-yelp-dataset

NYU Tandon School of Engineering Business Analytics. Technical report named “Startup Survival Kit”, where we analyze thousands of Yelp reviews to find correlations between sentiment, restaurant score, and bad reviews. Our objective is to find what are some of the drivers and bottlenecks for success for small new restaurants. All necessary R files are attached along with a brief explanation in this file.

alt text alt text

Data handling

We handled the data from Yelp through different steps:

Data Access

The files are readily available here https://www.yelp.com/dataset_challenge/dataset

Data Conversion

We transformed the files from Yelp using the “json_to_csv_converter.py” which can be found at https://github.com/Yelp/dataset-examples:  

Data Consolidation and Reduction

Yelp_Data_Handling.r (Attached)

Linear Regression

Yelp_Data_LinearRegression.r (Attached)

The model was generated in R and then we cross checked with Rattle. The decision tree was not able to arrive at a solution in rStudio and Rattle was used instead.

Text Analysis

Data Preparation

We used a Python script by Ryo Kita to parse the yelp dataset for easier analysis in R.

Data Analysis

Yelp_Data_Text_Analysis.r (Attached)

Data Visualization

All charts were plotted again using Tableau, R and Raw.

Web Visualization

The web visualization was done with Shiny. We start the server with the function RunApp()

a. ui.R (Attached)
b. server.R (Attached)