pip install snownlp python from snownlp import SnowNLP python s = SnowNLP(text) sentiment = s.sentiments print(sentiment)