摘要: 从文件读取待分析文本。 news = open('gzccnews.txt','r',encoding = 'utf-8') 安装与使用jieba进行中文分词。 pip install jieba import jieba list(jieba.lcut(news)) 生成词频统计 排序 排除语法型 阅读全文
posted @ 2018-03-28 15:56 146-王星宇 阅读(67) 评论(0) 推荐(0) 编辑