Lynten / stanford-corenlp

Python wrapper for Stanford CoreNLP.
MIT License
919 stars 200 forks source link

Convert Dependency parser to tree #58

Open getamu opened 6 years ago

getamu commented 6 years ago

Hello! I can run the dependency parser using stanford core nlp using pycorenlp (python wrapper). However, the challenge is how to convert it to a tree. I want to process the tree (basically root to leaves path). Hence, it is important for me to convert it into tree. I can use nltk.tree library which will yield me a tree but the input is in bracketed parsed form which is missing. Kindly help!