Git Product home page Git Product logo

yelp-review-rating-prediction's Introduction

Yelp Review Rating Prediction

Summary

The goal of this project was to predict reviews' star ratings on Yelp using the review text. We built the following models that perform text analysis on review data to predict the rating stars.

  1. Baseline Model: The most common rating, 3 stars, is the rating predicted by this model for all the reviews.
  2. Term Frequency Model: In this model we use frequency of word occurrence to predict the review rating.
  3. LDA + Sentiment Model: This model predicts rating using Latent Dirichlet Allocation (LDA) with an added sentiment layer by extracting topics and sentiment associated with the review from review text.
  4. NMF + Sentiment Model: In this model, we predict review rating using Non-negative Matrix Factorization (NMF) with an added sentiment layer by extracting topics and sentiment associated with the review from review text.

We achieved an accuracy of 61% in predicting review rating stars.

Code

Most files are IPython notebooks (.ipynb extension with JSON data).

The following modules are used in at least one example:

  • Python 2.7
  • NumPy
  • Pandas
  • Scipy
  • scikit-learn
  • nltk
  • seaborn
  • Matplotlib
  • Gensim
  • IPython 0.13+
  • cPickle

Team Members:

  • Rakesh Chada
  • Chetan Naik

yelp-review-rating-prediction's People

Contributors

rakeshchada avatar

Stargazers

 avatar Tiancheng Sheng avatar Milad Farzalizadeh avatar Ramesh Kumar Singh avatar Jessy avatar Kenneth Chung avatar  avatar

Watchers

 avatar Prafull Gaikwad avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.