赞
踩
snownlp是一个中文的自然语言处理的Python库。调用方便,可自动进行分词和情感评分。直接调用SnowNLP对文章段落进行情感评分,可返回分数s.sentiments和分词结果s.words。
from snownlp import SnowNLP
from snownlp import sentiment
neg_female=open("neg_female.txt",'r',encoding='utf-8')
print(len(neg_female
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。