Skip to content

Build and deploy a sentiment analysis model to production. Webapp will take user input and show the predicted sentiment. Final Project for BANA 8090 - Python

Notifications You must be signed in to change notification settings

anriknas/sentiment-app

Repository files navigation

Sentiment Analysis App

Demo

About this app

This is a sentiment analysis model, deployed to a dash webapp.
Users can input the text in the text box and get the sentiment of the text classified.

  • Sentiments: Negative, Neutral, Positive

  • Tags: Very Negative, Negative, Neutral, Positive, Very Positive

How to run this app

(The following instructions apply to Posix/bash. Windows users should check here.)

First, clone this repository and open a terminal inside the root folder.

Create and activate a new virtual environment (recommended) by running the following:

python3 -m venv myvenv
source myvenv/bin/activate

Install the requirements:

pip install -r requirements.txt

Run the app:

python app.py

Open a browser at http://127.0.0.1:8050

Resources

The dataset is available at the Stanford NLP website
Model trained on Google Colab here: https://colab.research.google.com/drive/1R8C37FCryBpRRmRn_k5Jn0DSHAULLRAi
The model's saved weights and json is available in the model folder.


About

Build and deploy a sentiment analysis model to production. Webapp will take user input and show the predicted sentiment. Final Project for BANA 8090 - Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •