Accessing a parse tree

Clarendon jineu21 at hotmail.com
Fri Apr 17 11:30:28 CEST 2009


Dear John Machin

So sorry about the typo. It should be: "the program should *see* that
the designated *words* are..."

"a long way" has two parentheses to the left -- (VP (DT -- before it
hits a separate group -- VBD came). If there are three parenthesis,
for instance (NP, this will means that what follows "a long way" is a
modifier of "a long way", as illustrated below:

(VP (VBD came)
   (NP
     (NP (DT a) (JJ long) (NN way))
     (PP (IN in)

So I am trying to capture the grammatical relations following the
designated words.







More information about the Python-list mailing list