stanfordnlp / python-stanford-corenlp

Python interface to CoreNLP using a bidirectional server-client interface.
MIT License
516 stars 105 forks source link

Get leaves #36

Closed lcswillems closed 2 years ago

lcswillems commented 5 years ago

Hi, is it possible to get all the leaves of the parseTree as NLTK Corenlp allow to?

AngledLuffa commented 2 years ago

stanza now has a python constituency parser which is more accurate and would allow for rearranging the parse trees. You can also use stanza's corenlp client to get a tree object and manipulate that if you like.