I have a sentnece tree like this:
[{'ROOT': ['S']}, {'S': ['VPS']}, {'VPS': ['N', 'VP']}, {'N': ['#']}, {'VP': ['PP', 'MV']}, {'PP': ['PREP_EZ', 'N']}, {'PREP_EZ': ['#']}, {'N': ['#']}, {'MV': ['N', 'V']}, {'N': ['#']}, {'V': ['#']}]
How I can print its corresponding tree without using nltk.tree? (for some reasons I cannot use the nltk library)
I expect something like this: The desired output
Ok let's see if this can help you: