Giter VIP home page Giter VIP logo

sentiment-analysis-sagemaker-deployment's Introduction

Sentiment Analysis Model Deployment Using Amazon SageMaker

This is the first deployment project which is part of the MLE Nanodegree. The project is constructed using an RNN (Recurrent Neural Network) for the purpose of determining the sentiment of a movie review using the IMDB data set. The model is developed using Amazon's SageMaker service. A simple web app is also developed for user interaction. The web app provides the users with an interface to provide their reviews and getting instant feedback on their review being POSITIVE or NEGATIVE.


The application architecture looks like the diagram below:

Web-app-diagram
The diagram above gives an overview of how the various services work together. On the far right is the model which we train and is deployed using SageMaker. On the far left is the web app that collects a user's movie review, sends it off and expects a positive or negative sentiment in return.

In the middle is where some of the magic happens. We construct a AWS Lambda function, which you can think of as a straightforward Python function that can be executed whenever a specified event occurs. This function is granted permission to send and recieve data from a SageMaker endpoint.

Lastly, in order to execute the Lambda function a new endpoint is created using AWS API Gateway. This endpoint is a url that listens for data to be sent to it. Once it gets some data it will pass that data on to the Lambda function and then return whatever the Lambda function returns. Essentially it acts as an interface that lets the web app communicate with the Lambda function.

Please refer the SageMaker Project.ipynb for better understanding of model development and how to integrate these services.

Prerequisites

  1. AWS Account
  2. Experience with model development on AWS SageMaker
  3. Basic HTML, CSS and JS
  4. Familiarity with AWS services like S3, API Gateway and Lambda

Setup instructions

cd SageMaker
git clone https://github.com/rohanjn98/sentiment-analysis-sagemaker-deployment.git
exit

Web-App Demo

demo


The endpoint is currently inactive to avoid recurring charges. If you wish to use your own endpoint please update the same in index.html at mentioned tag, thanks.

sentiment-analysis-sagemaker-deployment's People

Contributors

rohanjn98 avatar

Stargazers

 avatar

Watchers

 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.