Some NLP code I wrote