Perform sentiment analysis for movies and television reviews
89
This repository provides a prototype implementation of an end to end service that provide sentiment analysis on movie & TV show reviews. We have used a dataset from Amazon
To pull an image use the following
docker pull tomsriddle/sentiment-analysis:1.0
After pulling the image check that it is present using following
docker image ls
To run the image use following
docker run -p <host port>:8786 -v <host path>:/workspace/shared-data -e data-folder=/workspace/shared-data/ -e training-data-file=amazon_movie_reviews.csv "tomsriddle/sentiment-analysis:1.0"
Note: See the volume mapping - this is needed for the data-folder where things like transformed_reviews.csv is stored. Similarly see the use of the 2 environment variables

Following APIs exposed
This provides sentiments on an array of reviews sent
POST http://localhost:8788/get-sentiment
Request Body (all attributes are mandatory)
--------------------------------------------------------
{
"reviews": [
"The movie was awesome",
"I got bored",
"I hated it"
]
}
Response Body
--------------------------------------------------------
[
2,
1,
0
]

We have tried the following models
Content type
Image
Digest
sha256:2320547a3…
Size
5.9 GB
Last updated
over 2 years ago
docker pull tomsriddle/sentiment-analysis:1.0