sklearn实战-乳腺癌细胞数据挖掘(博客主亲自录制视频教程)
https://study.163.com/course/introduction.htm?courseId=1005269003&utm_campaign=commission&utm_source=cp-400000000398149&utm_medium=share
#英文句子结构分析
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()