mirror of
https://github.com/wtc86939209/WeChatMsg110.git
synced 2026-05-12 14:51:35 +08:00
9 lines
125 B
Python
9 lines
125 B
Python
from snownlp import SnowNLP
|
|
|
|
# 文本
|
|
text = u'🙄”'
|
|
# 分析
|
|
s = SnowNLP(text)
|
|
# 输出情绪为积极的概率
|
|
print(s)
|