[Tutor] extracting phrases and their memberships from syntax trees

Emad Nawfal (عماد نوفل) emadnawfal at gmail.com
Fri Feb 13 00:20:53 CET 2009


Dear Tutors,
I have syntax trees like the one below. I need to extract the membership
information like which adjective belongs to which noun phrase, and so on. In
short, I want to do something like this:
http://ilk.uvt.nl/team/sabine/chunklink/README.html
I already have the Perl script that does that, so I do not need a script. I
just want to be able to do this myself. My question is: what tools do I need
for this? Could you please give me pointers to where to start? I'll then try
to do it myself, and ask questions when I get stuck.
Thank you in anticipation
 with a syntax tree like this:

( (S
    (NP-SBJ-1
      (NP (NNP Rudolph) (NNP Agnew) )
      (, ,)
      (UCP
        (ADJP
          (NP (CD 55) (NNS years) )
          (JJ old) )
        (CC and)
        (NP
          (NP (JJ former) (NN chairman) )
          (PP (IN of)
            (NP (NNP Consolidated) (NNP Gold) (NNP Fields) (NNP PLC) ))))
      (, ,) )
    (VP (VBD was)
      (VP (VBN named)
        (S
          (NP-SBJ (-NONE- *-1) )
          (NP-PRD
            (NP (DT a) (JJ nonexecutive) (NN director) )
            (PP (IN of)
              (NP (DT this) (JJ British) (JJ industrial) (NN
conglomerate) ))))))
    (. .) ))



-- 
لا أعرف مظلوما تواطأ الناس علي هضمه ولا زهدوا في إنصافه كالحقيقة.....محمد
الغزالي
"No victim has ever been more repressed and alienated than the truth"

Emad Soliman Nawfal
Indiana University, Bloomington
--------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090212/813a8da2/attachment.htm>


More information about the Tutor mailing list