【情感分析模块】正面负面中性的判断标准更改

This commit is contained in:
戒酒的李白
2024-07-03 17:42:36 +08:00
parent f98d111c32
commit 261dfa46b1
+2 -2
View File
@@ -8,9 +8,9 @@ def getTableDataList(flag):
for article in articeList:
item = list(article)
value = ''
if SnowNLP(item[5]).sentiments > 0.5:
if SnowNLP(item[5]).sentiments > 0.6:
value = '正面'
elif SnowNLP(item[5]).sentiments < 0.5:
elif SnowNLP(item[5]).sentiments < 0.4:
value = '负面'
else:
value = '中性'