项目作者: Faisal-AlDhuwayhi

项目描述 :
Deploying a sentiment analysis model using Amazon Web Services (AWS)
高级语言: HTML
项目地址: git://github.com/Faisal-AlDhuwayhi/Deploying-a-Sentiment-Analysis-Model.git


Deploying a Sentiment Analysis Model

In this project, our goal will be to have a simple web page that a user can use to enter a movie review. The web page will then send the review off to our deployed model (Recurrent Neural Network), which will predict the sentiment of the entered review. All that mainly with Amazon Web Services (AWS) and Pytorch.

Project Outline

Recall the general outline for SageMaker projects using a notebook instance, which is comprised of the following:

  1. Download or otherwise retrieve the data.
  2. Process / Prepare the data.
  3. Upload the processed data to S3.
  4. Train a chosen model.
  5. Test the trained model (typically using a batch transform job).
  6. Deploy the trained model.
  7. Use the deployed model.

For this project, you will be following the steps in the general outline with some modifications.

Instructions

This project requires Python 3.x version. And in order to complete this project, you need to install the following libraries:

You will also need to have software installed to run and execute an iPython Notebook.

I recommend installing Anaconda, a pre-packaged Python distribution that contains all of the necessary libraries and software for this project.

Also, we will be using the IMDb dataset.

Code

Template code is provided in the SageMaker Project.ipynb file.

Run

In a terminal or command window, navigate to the top-level project directory Deploying-a-Sentiment-Analysis-Model/ (that contains this README) and run one of the following commands:

  1. ipython notebook "SageMaker Project.ipynb"

or

  1. jupyter notebook "SageMaker Project.ipynb"

This will open the iPython Notebook software in your browser.