stanfordnlp / python-stanford-corenlp

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

Get full leaf token in parseTree, not only text #35

Open lcswillems opened 5 years ago

lcswillems commented 5 years ago

Hi,

If I do annotation = client.annotate(text), annotation.sentence[0] will contain tokens and a parseTree, but the parseTree leaves are just plain text. No way to access the corresponding token.