Skip to content

Instantly share code, notes, and snippets.

@wfng92
Created June 18, 2019 04:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wfng92/8e337ccf37c16271e7e73822e79f455a to your computer and use it in GitHub Desktop.
Save wfng92/8e337ccf37c16271e7e73822e79f455a to your computer and use it in GitHub Desktop.
from snownlp import SnowNLP
s = SnowNLP(u'在茂密的大森林里,一只饥饿的老虎逮住了一只狐狸。老虎张开大嘴就要把狐狸吃掉。"慢着"!狐狸虽然很害怕但还是装出一副很神气的样子说,"你知道我是谁吗?我可是玉皇大帝派来管理百兽的兽王,你要是吃了我,玉皇大帝是决不会放过你的"。')
s.sentences
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment