Skip to content

Instantly share code, notes, and snippets.

@wfng92
Created June 18, 2019 04:45
Show Gist options
  • Select an option

  • Save wfng92/b479ee8f0eee2603c307632dcf1a2ed6 to your computer and use it in GitHub Desktop.

Select an option

Save wfng92/b479ee8f0eee2603c307632dcf1a2ed6 to your computer and use it in GitHub Desktop.
from snownlp import SnowNLP
s = SnowNLP(u'在茂密的大森林里,一只饥饿的老虎逮住了一只狐狸。老虎张开大嘴就要把狐狸吃掉。"慢着"!狐狸虽然很害怕但还是装出一副很神气的样子说,"你知道我是谁吗?我可是玉皇大帝派来管理百兽的兽王,你要是吃了我,玉皇大帝是决不会放过你的"。')
s.summary(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment