#英文句子结构分析
import nltk
from nltk.corpus import treebank
t = treebank.parsed_sents('wsj_0001.mrg')[1]
t.draw()
#中文句子结构分析
import nltk
from nltk.corpus import sinica_treebank
sinica_treebank.words()
'''['一', '友情', '嘉珍', '和', '我', '住在', '同一條', '巷子', '我們', ...]'''
sinica_treebank.parsed_sents()[10].draw()