Git Product home page Git Product logo

sentimentanalysiswebapp's Introduction

SageMaker Deployment Project

This project is building and deployment of a sentiment analysis of movie reviews. The reviews are classified as simply positive or negative.

The project is not very complicated, but the point of the project is to embedd the model in a Flask webapp and to deploy it on the AWS SageMaker server.

Project Breakdown

This project is divided into 3 parts.

  1. Train
  2. Serve
  3. Website

Website

Our website is a simple HTML page running on a python micro web framework. You can see the website here. In the last

of the html file, where the form method is POST, I replaced the "action" text "REPLACE WITH PUBLIC API URL" with my API endpoint. Since i dont have the project active anymore, I removed the Public API link and reverted the text back to "REPLACE WITH PUBLIC API URL"

Training

For the training part of the problem, I trained the given data using two files; model.py and train.py.

Model.py contains the code for LSTMClassifier model built using PyTorch.

Train.py contains the training code developed in the Jupyter notebook.

Serving

After the data was trained using train.py code, the model needs to serve the predicted values. This is performed by the predict.py file.

I would highly recommend to look at the files to see the comments and other code annotations, line-by-line. That would make much more sense rather than just reading about it here.

Disclaimer

It is website is available as an open source with MIT license. To reiterate, the code is provided AS-IS. I am not responsible for any loss/damage caused by the code to your hardware, software or business in any shape or form. This code is provided for educational purpose ONLY and must not be taken as a business proposal. Running this code on AWS will incurr charges.

sentimentanalysiswebapp's People

Contributors

syedmhjafri avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.