phrase-tree
Version:
Converts the penn tagged phrase structure from the stanford parser into a tree.
1 lines • 658 B
Plain Text
{"tag":"S","text":"","children":[{"tag":"NP","text":"","children":[{"tag":"DT","text":"The","children":[]},{"tag":"NNS","text":"elephants","children":[]}]},{"tag":"VP","text":"","children":[{"tag":"VBD","text":"went","children":[]},{"tag":"PP","text":"","children":[{"tag":"TO","text":"to","children":[]},{"tag":"NP","text":"","children":[{"tag":"DT","text":"the","children":[]},{"tag":"NN","text":"lake","children":[]}]}]},{"tag":"PP","text":"","children":[{"tag":"IN","text":"in","children":[]},{"tag":"NP","text":"","children":[{"tag":"DT","text":"the","children":[]},{"tag":"NN","text":"forest","children":[]}]}]}]},{"tag":".","text":".","children":[]}]}