Giter Site home page Giter Site logo

divyansh1195 / restaurant-reviews-sentiment-analysis Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 4.0 11.67 MB

End-to-end implementation and deployment of Machine Learning Restaurant Reviews Sentiment Analysis using python, flask, gunicorn, scikit-Learn, nltk, etc. on the Heroku web application platform.

Home Page: https://resrevsent.herokuapp.com/

License: GNU General Public License v3.0

Python 1.09% Jupyter Notebook 90.11% CSS 3.20% HTML 5.60%
jupyter-notebook python3 flask-application webapp sklearn heroku gunicorn-flask-webserver nltk-python sentiment-analysis classifier

restaurant-reviews-sentiment-analysis's Introduction

Restaurant-Reviews-Sentiment-Analysis

Kaggle Python 3.6 Scikit-LearnNLTK

This repository consists of files required for end to end implementation and deployment of Machine Learning NLP Restaurant Reviews Sentiment Analysis web application created with flask and deployed on the Heroku platform.

Table of Contents

App Link

If you want to view the deployed model, click on the following link:
https://resrevsent.herokuapp.com/

A glimpse of the web app:

GIF

GIF

• If you encounter this webapp as shown in the picture given below, it is occuring just because free dynos for this particular month provided by the Heroku platform have been completely used. You can access the webpage on 1st of the next month.

• Sorry for the inconvenience.

Heroku-Error

About the App

The Restaurant Reviews Sentiment Analysis is a Flask web application which classifies/detects sentiments of customers as positive or negative sentiments. In this ML-NLP model, restaurant reviews dataset from Kaggle (also available in UCI ML Library) was used to perform Sentiment Analysis using Stemming and Bag of Words model to classify reviews into two sentiments — Liked(1) and Disliked(0). Since, the data is fairly balanced, we are only concerned with accuracy_score. From various Classifiers, highest accuracy achieved was 81% with cross_val_score of 79.4%.

The code is written in Python 3.6.10 and it makes use of NLTK library for text processing.
If you don't have Python installed, you can find it here. If you are using a lower version of Python you can upgrade using the pip package, ensuring you have the latest version of pip. To install the required packages and libraries, run this command in the project directory after cloning the repository:

pip install -r requirements.txt

Deployement on Heroku

Login or signup in order to create virtual app. You can either connect your github profile or download ctl to manually to deploy this project.

The next step would be to follow the instruction given in the Heroku Documentation to deploy a web app.

Technologies Used

Bug / Feature Request

If you find a bug (the website couldn't handle the query and / or gave undesired results), kindly open an issue here by including your search query and the expected result

Please do ⭐ the repository, if it helped you in anyway.

restaurant-reviews-sentiment-analysis's People

Contributors

divyansh1195 avatar

Stargazers

 avatar  avatar

Watchers

 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.