S -> NP VP NP -> PN NP -> (DET) ADJ* N NP -> NP CONJ NP VP -> VP PP VP -> IV VP -> TV NP VP -> LV ADJ VP -> CV that S IV -> IV CONJ IV PP -> P NP PN -> Toad IV -> pushed IV -> pulled P -> on DET -> the N -> rake CONJ -> and
<network/node, sentence-left, waiting-nodes, parse>
<S/0, sentence, (), ((S))> (S/0 is the
first node in the S network).
node
is a final node of network, sentence-left
and waiting-nodes are empty) or the queue is empty
(only way to terminate if exhaustive)
node,
sentence-left matches
the category, return a new state.
jump, return a
new state (without consuming any words).
node is a final node in network
and waiting-nodes is not empty, return a new state (pop).
PARSE SENTENCE STACK
((s)) TRTLIAP ()
((np) (s)) TRTLIAP (S/2)
(((pn toad) np) (s)) RTLIAP (S/2)
(((np (pn toad)) s)) RTLIAP ()
((vp) ((np (pn toad)) s)) RTLIAP (S/3)
(((tv raked) vp) ((np ...))) TLIAP (S/3)
((np) ((tv raked) vp) TLIAP (VP/5 S/3)
((np (pn toad)) s))
... (VP/5 S/3)
(((np (det the) (n leaves)) (tv raked) vp) IAP (S/3)
((np (pn toad)) s))
... (VP/5 S/3)
((vp (tv raked) (np (det the) (n leaves)) (S/3)
(pp (p into) (np (det a) (n pile))))
((np (pn toad)) s))
((s (np (pn toad)) ()
(vp (tv raked) (np (det the) (n leaves))
(pp (p into) (np (det a) (n pile))))))
Last modified: Thu Oct 2 09:53:23 EST
Comments:
gasser@cs.indiana.edu