Movie Review Sentiment Analysis Nift Assignment

Date: October 01, 2021

A Nifty Assignment where students use Rotten Tomatoes movie reviews to build a predictor for positive/negative sentiment of text

This assignment uses movie reviews from the Rotten Tomatoes database to do some simple sentiment analysis. Students will write programs that use the review text and a manually labeled review score to automatically learn how negative or positive the connotations of a particular word are. This can then be used to predict the sentiment of new text with reasonably good results. For example, student programs will be able to read text like this:

The film was a breath of fresh air.

and predict that it is a positive review while predicting negative sentiment for text like this:

It made me want to poke out my eyeballs.

sentiment analysis demo

Original Assignment

The original version of this assignment appeared in the SIGCSE 2016 Nifty Assignments session, and all materials for Java and C++ can be found at that page.

Python Materials

Recently, I have been using the assignment spread out over three labs in an introductory Python course. Here’s those materials