赞
踩
- from stanfordcorenlp import StanfordCoreNLP
- import logging #查看运行日志
- nlp = StanfordCoreNLP(r"D:\Web_download\stanford-corenlp-full-2018-01-31\stanford-corenlp-full-2018-01-31", lang='zh',quiet=False,logging_level=logging.DEBUG)
- #后附 quiet=False,logging_level=logging.DEBUG #查看运行日志
-
- sentence = '今天也是美好的一天鸭!也要好好加油鸭!'
- print(nlp.word_tokenize(sentence))
- print(nlp.pos_tag(sentence))
- print(nlp.ner(sentence))
- print(nlp.parse(sentence))
- print(nlp.dependency_parse(sentence))
- nlp.close()
Release History - CoreNLP (stanfordnlp.github.io)https://stanfordnlp.github.io/CoreNLP/history.html
StanfordCoreNLP的简单使用 - 阿尔伯塔 - 博客园 (cnblogs.com)https://www.cnblogs.com/maoerbao/p/13019276.html
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。