Skip to content

pratzy14/23001063-17-adn-hp-rtz-analisis_sentimen-platinum

Repository files navigation

About Sentiment Analysis


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

How to Run Sentiment Analysis


  1. Clone this repository, open command prompt
  2. Create a virtual environment with python version of 3.10.9

pip install virtualenv virtualenv -p python3.10.9 myenv

  1. Enter the virtual environment

myenv\Scripts\activate

  1. Install module needed by running this code

pip install -r requirements.txt --no-deps

  1. Go to path below

myenv\Lib\site-packages\keras\src\saving\legacy\saved_model\load_context.py

  1. Rewrite "register_load_context_function" to "register_call_context_function" (line 68)
  2. Run the app

python sentiment_analysis.py

  1. Open browser and go to link below

http://127.0.0.1:5000/docs/

Successful deployment will result below. alt text

Directory and File List


alt text

Analysis Report


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages