CSE 675, Spring 2000

HW #7 Answers

1b. (see also /projects/rapaport/675/RTN/{grammar.3.7 | lexicon.3.7}
;;; The S network:

(s (jump s0 t))

(s0 (push np t (to s1)))

(s1 (cat v t (to s2)))

(s2 (pop 'success t)
    (push np t (to s2)))

;;; The NP network:

(np (jump np0 t))

(np0 (cat det t (to np1))
     (cat number t (to np1))
     (cat pro t (to np2)))

(np1 (cat adj t (to np1))
     (cat n t (to np2)))

(np2 (pop nil t))
2. (at least, here's my answer)
                                                                     
                                                         ^                ^
                                                      pop|                | pop
                                         push NP         |      push PP   |
                                ---------------------->(S/V/NP)--------->(S/PP)
    push NP         cat V      /                         ^                |   ^  
(S)--------->(S/NP)------->(S/V)          jump           |                |   |
                               \-------------------------|                \---/
                                                                         push PP


                                                 push PP
                                                 -------
                                                 |     |
                          cat N         push PP  |     v   pop
                         ------->(NP/N)--------->(NP/PP)------->
     cat Art            /
   /---------\         / cat Adj
(NP)          ->(NP/Art)--------->(NP/Adj)------->(NP/N2)------>
   \---------/         \           ^       cat N           pop
      jump              \         /
                         \-------/
                           jump



     cat Prep            push NP          pop
(PP)---------->(PP/Prep)--------->(PP/NP)----->



Copyright © 2000 by William J. Rapaport (rapaport@cse.buffalo.edu)
file: 675w/hw7.ans.16mr00.html