You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return Tree(node.orth_, [to_nltk_tree(child) for child in node.children])
else:
return node.orth_
text = 'The Conservatives\' planning reform explicitly gives rural development priority over conservation, even authorizing "off-plan" building where local people might object.'
seen = set() # keep track of covered words
doc = nlp(text)
[to_nltk_tree(sent.root).pretty_print() for sent in doc.sents]