Python—基于情感词典的情感分析
*源代码出处链接已经找不到了,侵权请联系删除。*from collections import defaultdictimport osimport reimport jiebaimport codecsimport pandas as pddef seg_word(sentence): """使用jieba对文档分词""" seg_list = jieba.cut(sentence) seg_result = []