Linguistics 270, Winter 2006
Introduction to Programming for Linguists

Homework 0
Working Stub, Test Script

The working stub shows an example of a completed Python library.  If you run it with the test script, all the tests will pass.  See the documentation at the top of the two files for more information.


Homework 1: Due 1/12

Homework 2: Due 1/21

Instructions

Stub, Test Script, Solution

Note that this is due Saturday the 21st, not Thursday the 19th. This is an exception; the other assignments will be due on Thursday.


Homework 3, Due 1/26

Instructions

Stub, Test Script, numfile.py stub, Solution

Here is a sample textfile in both uncompressed and gzipped form.  These are to assist you with problem 3 of the homework.  You don't have to turn them in.


Homework 4, Due 2/2

Homework 5, Due 2/9

Instructions

Stub, Test Script, Solution

Text of Ulysses, courtesy of Project Gutenberg.


Homework 6, Due 2/16

The deadline for homework 5 has been extended.   Hand in the problems described above for this homework.

Note there is a new test script and stub linked above.  The test script contains corrected N-gram counts, and the stub contains sample tokenization code.


Homework 7, Due 2/23

Homework 8, Due 3/13