Code from an iPython notebook, based on:

http://nealcaren.web.unc.edu/an-introduction-to-text-analysis-with-python-part-3/

This notebook shows how to conduct sentiment analysis on a collection of passages (e.g. Tweets) using dictionaries of positive and negative words.