Skip to content

A Python Flask Based Web App to classify customer reviews sentiments using LSTM RNN

Notifications You must be signed in to change notification settings

yousaf530/Customer-Feedback-Sentiment-Analysis-using-LSTM

Repository files navigation

Customer Feedback Sentiment Analysis

A LSTM Recurrent Neural Network based Flask Web App that classifies the sentiment of Customer Textual Review as Positive or Negative.

Getting Started

To get the app working locally:

  1. Clone or download the repository locally.
  2. Within the Customer-Feedback-Sentiment-Analysis-using-LSTM directory, create a virtual Python environment with the Terminal command python -m venv flaskapp where flaskapp is the name of your environment. You can choose any name.
  3. Activate the virtual environment with the command `
    flaskapp\scripts\activate.bat
  4. Then run the command pip install -r requirements.txt (In case of error in Windows at this point, you need to set the LongPathsEnabled Registry value to 1. See here)
  5. Next, set the FLASK_APP variable to app.py and FLASK_ENV to development by running the following command (for windows)
     set FLASK_APP=app.py
  6. Also, set the FLASK_ENV to development by running the following command (for windows)
    set FLASK_ENV=development
  7. And finally, run the command python -m flask run to start the app
  8. The terminal will output the local web address and port where the app is running. As an example, this might be http://127.0.0.1:5000/. Now, open a web browser and go to that web address.

Prerequisites

You will need Python3 installed on your local machine.

Data Set

The Twitter US Airline Sentiment Dataset was used to train and test the Neural Network Model.

Built With

Interface Sample

image

Feel free to give a star to this project if you like and support! Adios

About

A Python Flask Based Web App to classify customer reviews sentiments using LSTM RNN

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published