摘要: #导入os包加载数据目录 import os path = r'G:\英雄时刻\258' #停词库 with open(r'G:\英雄时刻\stopsCN.txt', encoding='utf-8') as f: stopwords = f.read().split('\n') #对数据进行标准编码处理(encoding='utf-8') import codecs import... 阅读全文
posted @ 2018-12-20 18:24 无名之辈qaq 阅读(147) 评论(0) 推荐(0) 编辑