stanfordcorenlp安装:win10+JDK1.8.0_144+Python3.7.3+stanford-corenlp-full-2016-10-31成功
调用Server,启动服务后调用速度能加快
cmd启动服务命令:cd E:\tools\stanford-corenlp-full-2016-10-31; java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000 -timeout 15000
from stanfordcorenlp import StanfordCoreNLP
nlp = StanfordCoreNLP('http://localhost', port=9000, lang='en')
sentence = "Kosgi Santosh sent an email to Stanford University. He didn't get a reply"
# sentence = "清华大学位于北京"
print('Named Entities:', nlp.ner(sentence))
识别英文名准确率比较高~
识别中文需要下载中文模型jar包