COG 376 Assignment One - NEW DUE DATE: March 27 by midnight



1) In either the book, "Natural Language Processing with Python", Chapter One,  or this website:


http://www.nltk.org/book/ch01.html


do  the following problems found at the end of the chapter: 4, 5, 8, 10, 15, 25, 27

Also, review the code in section 1.3, run the first example of code under the heading
"Frequency Distributions" with a text other than text1. Hand in the result.


2) In either the book, "Natural Language Processing with Python", Chapter Two,  or this website:


http://www.nltk.org/book/ch02.html

do the following problems found at the end of the chapter: 1, 2, 4, 9


Please note that the methods for solving problem one can be found in Chapter One - not exclusively in Chapter Two as the authors imply.

NOTE: BIG HINT FOR NUMBER FOUR ABOVE:


Use a function like the following for counting:

state_union.words('2000-Clinton.txt').count('men')



3) In either the book, "Natural Language Processing with Python", Chapter Three,  or this website:

http://www.nltk.org/book/ch03.html


do the following problem found at the end of the chapter: 6

NOTE: IF YOU RUN OUT OF TIME, YOU DON'T NEED TO "TEST" YOUR ANSWERS FOR THIS QUESTION.