cnsenti icon indicating copy to clipboard operation
cnsenti copied to clipboard

情感得分出现负数

Open qiqiJiang-st opened this issue 3 years ago • 2 comments

是否应该将以下代码的判断条件都加上等于0? if poscount3 < 0 and negcount3 > 0: neg_count += negcount3 - poscount3 pos_count = 0 elif negcount3 < 0 and poscount3 > 0: pos_count = poscount3 - negcount3 neg_count = 0 elif poscount3 < 0 and negcount3 < 0: neg_count = -poscount3 pos_count = -negcount3 else: pos_count = poscount3 neg_count = negcount3 image

qiqiJiang-st avatar Mar 11 '21 06:03 qiqiJiang-st

I have the same problems image

JackieMonster avatar Apr 20 '21 17:04 JackieMonster

cnsenti比较适合长文本的文本分析,对短文本情感不敏感也不准确,建议做短文本的时候尝试下其他的情感分析包

hiDaDeng avatar May 07 '21 11:05 hiDaDeng