jieba分词、词性标注、停用词
读取text
#encoding=utf-8
file='test.txt'
fn=open(file,"r")
print fn.read()
fn.close()
jieba分词:
words = pseg.cut("他改变了中国")
for word, flag in words:
print("{0} {1}".format(word, flag))
自定义词典/去停用词
h...
转载
2019-04-22 22:04:39 ·
2549 阅读 ·
0 评论