中文词频统计
摘要:
下载一长篇中文文章。 从文件读取待分析文本。 news = open('gzccnews.txt','r',encoding = 'utf-8') 安装与使用jieba进行中文分词。 pip install jieba import jieba list(jieba.lcut(news)) 生成词频 阅读全文
posted @ 2018-03-28 20:37
176张宇健
阅读(116)
评论(0)
推荐(0)
浙公网安备 33010602011771号