A LSTM
Recurrent Neural Network based Flask Web App that classifies the sentiment of Customer Textual Review as Positive or Negative.
To get the app working locally:
- Clone or download the repository locally.
- Within the Customer-Feedback-Sentiment-Analysis-using-LSTM directory, create a virtual Python environment with the Terminal command
python -m venv flaskapp
whereflaskapp
is the name of your environment. You can choose any name. - Activate the virtual environment with the command `
flaskapp\scripts\activate.bat
- 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) - 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
- Also, set the FLASK_ENV to
development
by running the following command (for windows)set FLASK_ENV=development
- And finally, run the command
python -m flask run
to start the app - 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.
You will need Python3 installed on your local machine.
The Twitter US Airline Sentiment Dataset was used to train and test the Neural Network Model.
- Python - Programming language
- Tensorflow - RNN Model
- Flask - Web Development Framework
- Pandas - Data Manipulation and Analysis
Feel free to give a star to this project if you like and support! Adios