I 256: Applied Natural Language Processing |
Course Information
|
Assignment 2Due 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
Email your assignment to
Assignment 2:
Extras (not required but they are fun...and you'll get extra points): Exercise 23 Chapter 2 and/or Exercise 38 Chapter 5
|