mirror of
https://github.com/LC044/WeChatMsg
synced 2024-11-09 09:31:18 +08:00
9 lines
125 B
Python
9 lines
125 B
Python
from snownlp import SnowNLP
|
|
|
|
# 文本
|
|
text = u'🙄”'
|
|
# 分析
|
|
s = SnowNLP(text)
|
|
# 输出情绪为积极的概率
|
|
print(s)
|