Sentiment Analysis is an API made using Flasgger. It predicts sentiment of inputted data.
It has four endpoints.
- inputRNN: user can input the text manually here, the system will predict using RNN
- inputLSTM: user can input the text manually here, the system will predict using LSTM
- uploadCSV_RNN: user can upload CSV file here, the system will predict using RNN
- uploadCSV_LSTM: user can upload CSV file here, the system will predict using LSTM
- Clone this repository, open command prompt
- Create a virtual environment with python version of 3.10.9
pip install virtualenv virtualenv -p python3.10.9 myenv
- Enter the virtual environment
myenv\Scripts\activate
- Install module needed by running this code
pip install -r requirements.txt --no-deps
- Go to path below
myenv\Lib\site-packages\keras\src\saving\legacy\saved_model\load_context.py
- Rewrite "register_load_context_function" to "register_call_context_function" (line 68)
- Run the app
python sentiment_analysis.py
- Open browser and go to link below
Successful deployment will result below.