Note that there separate sets of assignments for CS 451/651 and CS
431/631. Make sure you work on the correct asssignments!
CS 431/631 Assignments
Assignment 1: Counting in Python due 2:30pm January
25
For this assignment, you should continue to use Compute Canada's
Jupyter hub at https://uwaterloo.syzygy.ca/. Use
your WatIAM password.
This assignment requires you to implement a mechansism for
answering queries about some count-based statistics over
tokens in the text of Shakespeare's plays.
You will need to upload the following files to the Jupyter hub:
- Shakespeare.txt: the
complete text of Shakespeare's plays
- simple_tokenize.py:
a simple Python module for tokenizing text
- A1.ipynb: this is the starter
notebook for A1, in which you will do your assignment work.
The first two files should already have been uploaded to the hub
for
Assignment 0.
You can just re-use the copies that you already
uploaded. To get started working on the assignment, open the starter
notebook on the hub.
When you have finished, submit A1 using the same procedure you
used for A0:
- Download your A1.ipynb file from the Jupyter hub to your
computer.
- Change the name of your file from A1.ipynb
to A1-xxxxxxxx.ipynb, where xxxxxxxx is your UW
student ID number.
- Send your A1-xxxxxxxx.ipynb file as an e-mail attachment to
kmsalem@uwaterloo. Your
e-mail message must be sent before the assignment deadline, and must
have the subject line [cs431] A1-xxxxxxxx,
where xxxxxxxx is your UW student ID number.
Back to top