中文词频统计
摘要:下载一长篇中文文章。 从文件读取待分析文本。 news = open('gzccnews.txt','r',encoding = 'utf-8') 安装与使用jieba进行中文分词。 pip install jieba import jieba list(jieba.lcut(news)) 生成词频
阅读全文
posted @ 2018-03-28 14:08
posted @ 2018-03-28 14:08
posted @ 2018-03-21 08:39
posted @ 2018-03-07 15:37