CSE 675, Spring 2000

RTN PARSER

(Adapted from Allen, James (1987), Natural Language Understanding (Menlo Park, CA: Benjamin/Cummings), pp. 50ff.)

INPUT: sentence (= sequence of words), with positions marked.

DATA STRUCTURE: parse-state = (current_node * return_points_list)
(* = current word; return_points_list = where to pop back to)

* := first word of sentence;
repeat until * = nil (or no arc can be taken):




Copyright © 2000 by William J. Rapaport (rapaport@cse.buffalo.edu)
file: 675w/rtnparser.23fb00.html