python from snownlp import SnowNLP s = SnowNLP(text) words = s.words tags = s.tags pip install snownlp