I 256: Applied Natural Language Processing

Course Information

Assignment 2

Due September 24 at 12:3o pm (before class)


Create a file named with the following convention:

LastNameFirstName_assignment2.py

This is the main file where all your code will reside.
We will evaluate each question/sub-question as:
 

>>> python LastNameFirstName_assignment2.py question1

>>> python LastNameFirstName_assignment2.py question1.1
 

(For the eventual non programming questions, create a string with your answer and print it)

Add logic to your code based on the command line argument (process your command line argument string ) and output accordingly. The command line arguments in python are accessed through sys.argv list .  You can also use getopt module.
 
Make sure you  include a this header information in the beginning of your code
 

#! /usr/bin/env python  

#author: ‘Your name'
#email = ‘your email address'
#python_version = ‘python version you are using'
 

For any questions, please email gvaswani@ischool.berkeley.edu 

Email your assignment to gvaswani@ischool.berkeley.edu and barbara.rosario@intel.com

 

 

Assignment 2:

  1. Exercise 4 Chapter 2 NLTK book.
  2. Exercise 16 Chapter 2
  3. Exercise 27 Chapter 2
  4. Exercise 28 Chapter 2
  5. Exercise 24 Chapter 5
  6. Exercise 29 Chapter 5

Extras (not required but they are  fun...and you'll get extra points):  

Exercise 23 Chapter 2  and/or Exercise 38 Chapter 5