Ling 571 - Deep Processing Techniques for NLP
Winter 2017
Homework #1: Due January 10, 2017: 11:45pm


Goals

Through this assignment you will:

Background

Please review the class slides and readings in the textbook on context-free grammars. Also, see Section 8.3 of the NLTK Book for examples of grammars and configuration of the included parsers. We'll get to the later parts of that chapter soon.

Parsing

Create a program to parse the test sentences based on the provided grammar and analyze the results. Specifically, your program should:

Programming

Create a program named hw1_parse.py to perform the parsing as described above invoked as:
hw1_parse.py <grammar_file> <test_sentence_file> <output_file>
where

Files

Please adhere to the naming conventions.

Test and Example Files

Submission files

Handing in your work

All homework should be handed in using the class CollectIt.