Skip to content

A sentiment analysis system using RNN and LSTM. User can input manually from keyboard or input csv file. Currently only effective for bahasa Indonesia.

Notifications You must be signed in to change notification settings

ardinadnn/Sentiment-Analysis-using-RNN-and-LSTM

 
 

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

A sentiment analysis system using RNN and LSTM. User can input manually from keyboard or input csv file. Currently only effective for bahasa Indonesia.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%