Ling239e: Grammar Engineering

Homework Assignment for Week 1

Due: Tuesday, January 13 (by midnight)
Submit assignments electronically to both professors (rmkaplan@stanford.edu and thking@stanford.edu)


Turn in: 1. the final grammar you end up with
2. a list of 10 sentences that your augmented grammar can parse

XLE Walkthrough

EXERCISE 1: Basic Walkthrough

Do the XLE "walkthrough".

To find the walkthrough:

  1. Start xle.
    (either type:
              xle
    
    at the command line or start xle within emacs)
  2. Type:
            documentation
    
    at the prompt.
  3. A browser will be launched with the documentation.
  4. Choose: Walkthrough which should be the first choice.
  5. If you cannot get the documentation to launch properly from xle, it can be found in:
    /afs/ir.stanford.edu/data/linguistics/XLE/SunOS/doc/walkthrough.html

The walkthrough has two parts:

  1. where you type in a grammar yourself
  2. where you use an existing file. This file can be found in:
    /afs/ir.stanford.edu/class/linguist239e/assignments/week1/
    or
    /afs/ir.stanford.edu/data/linguistics/XLE/SunOS/doc/

You need to do both parts of the walkthrough.

EXERCISE 2: Augmenting your lexicon

You should augment this grammar by adding to the lexicon:

Turn in: This augmented grammar.

PART 2: Sentences

Create a list of 10 sentences that your augmented grammar can parse.

Turn in: This list of sentences.


If you have any questions, you can send us email (rmkaplan@stanford.edu and thking@stanford.edu), call us (Ron: 812-4348; Tracy: 812-4808), or talk to us during office hours.