>>> import nltk >>> from nltk.tree import * >>> tree2 = Tree.fromstring('(S (NP I) (VP (V enjoyed) (NP my cookie)))') >>> tree2.draw()
タグ: