This may be a silly question, but how does one iterate through a parse tree as an output of an NLP parser (like Stanford NLP)? It\'s all nested brackets, which is neither an
Note that if you're interested in specific nodes in the tree, identified by regex-like rules, you can use this very, very hand class to extract all such nodes using a regex-like matcher: