Code from a project in Speech & Natural Language Processing class.