stanfordnlp / python-stanford-corenlp

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

Not possible to modify ParseTree #37

Closed lcswillems closed 2 years ago

lcswillems commented 5 years ago

Hi, I would like to modify the ParseTree leaves but I can't... I can't add an attribute to a leaf or change its value to a dictionnary. How could I do?

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.