Lab 8: Solutions

Authors: Luke Shrimpton
Sharon Goldwater
Date: 2014-11-01, 2015-11-10, 2016-11-08
Copyright: This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License: You may re-use, redistribute, or modify this work for non-commercial purposes provided you retain attribution to any previous author(s).

Examining the data files

Examining and running the code

Do Twitter users like Justin Bieber?

See lab8-sol.py for code. The PMI values for 'love' and 'hate' are 2.197 and -0.639 respectively, indicating that Twitter users like Justin Bieber. The trend holds up if you add other pos/neg words as well, though exact numbers will vary.

Husbands and wives