I have the output of CYK Parsing as a nested list :
parser.parse('the dog saw the man with the telescope')
Out :
["S", ["NP", ["DT", "the"], ["NN", "dog"]], ["VP", ["Vt", "saw"], ["NP", ["NP", ["DT", "the"], ["NN", "man"]], ["PP", ["P", "with"], ["NP", ["DT", "the"], ["NN", "telescope"]]]]]]
Could someone please tell me how to convert this nested list into a Tree that can be easily interpreted ? Something like this :
How do I achieve this in Python or using any other external libraries ? Could someone please help me ?
