The Colab notebook contains the code for building a simple LSTM Recurrent Neural Network model that gives 87–88 percent accuracy on the IMDB Movie Review Sentiment Analysis Dataset. The repo also contains the code to deploy the movie review sentiment analysis app.
Live Deployment! You can try the app at https://webapp-fa67s6dqfq-uc.a.run.app/. The first couple of runs might have high latency due to cold start time on Google Cloud Run, but it should run fine after that.
The app reads in the user written movie review and provides a sentiment score between [-1,1], where -1 is very good and 1 is very good.
Follow the instructions below to run the app locally with Docker.
Once you have Docker installed, clone this repo
git clone https://github.com/sbhimire/nlp-sentiment-analysis.git
Navigate to the webapp directory of the repo.
cd semi-super/webapp
Now build the container image using the docker build
command. It will take few minutes.
docker build -t sentiment .
Start your container using the docker run command and specify the name of the image we just created:
docker run -dp 8080:8080 sentiment
After a few seconds, open your web browser to http://localhost:8080. You should see the app.