当前位置:网站首页>Named entity recognition in natural language processing: tanford core LP ner (1)
Named entity recognition in natural language processing: tanford core LP ner (1)
2020-11-06 01:28:00 【Elementary school students in IT field】
Reprint please indicate the source :https://blog.csdn.net/HHTNAN
brief introduction
CoreNLP The project is Stanford Developed a set of open source NLP System . Include tokenize, pos , parse And so on , And SpaCy similar .SpaCy Claims to be the fastest NLP System , And provide ready-made python Interface , But the disadvantage is that it does not support Chinese processing at present , CoreNLP The Chinese model is included , It can be directly used to process Chinese , but CoreNLP Use Java Development ,python It's a little bit cumbersome to call .
Stanford CoreNLP It is a powerful natural language processing tool , Many models are trained based on deep learning .
First attach a link to its official website :
https://stanfordnlp.github.io/CoreNLP/index.html
https://nlp.stanford.edu/nlp/javadoc/javanlp/
https://github.com/stanfordnlp/CoreNLP
install Installation
windows 10 Environmental Science
Installation dependency
1. First you need to configure JDK, install JDK 1.8 And above ..
2. Later on https://stanfordnlp.github.io/CoreNLP/history.html Download the corresponding jar package .
Decompress the package to get the directory , Then the language of jar Put the package in this directory .
3. download Stanford CoreNLP file :http://stanfordnlp.github.io/CoreNLP/download.html
4. Download the Chinese model jar package ( Be sure to download this file , Otherwise, it is handled in English by default ).
5. Next py install stanfordcorenlp
6. Unzip configuration
When the download is complete, the two files add up 1G+ When the download is complete, the two files add up 1G+
Take the decompressed Stanford CoreNLP Folder downloaded Stanford-chinese-corenlp-2018—models.jar Put it in the same directory ( Be careful : Be sure to be in the same directory , Otherwise, the execution will report an error )
7. stay Python Reference model in , Execute the following statement :
from stanfordcorenlp import StanfordCoreNLP
nlp=StanfordCoreNLP(r’D:\D:\stanford_nlp\stanford-corenlp-full-2018-10-05’,lang=‘zh’)
application
#encoding="utf-8"
from stanfordcorenlp import StanfordCoreNLP
import os
if os.path.exists('D:\\stanford_nlp\\stanford-corenlp-full-2018-10-05'):
print("corenlp exists")
else:
print("corenlp not exists")
nlp=StanfordCoreNLP('D:\\stanford_nlp\\stanford-corenlp-full-2018-10-05',lang='zh')
sentence = ' Wang Ming is a graduate student of Tsinghua University '
print(nlp.ner(sentence))
Output :
corenlp exists
[(‘ Wang Ming ’, ‘PERSON’), (‘ yes ’, ‘O’), (‘ tsinghua ’, ‘ORGANIZATION’), (‘ university ’, ‘ORGANIZATION’), (‘ Of ’, ‘O’), (‘ One ’, ‘NUMBER’), (‘ individual ’, ‘O’), (‘ Graduate student ’, ‘O’)]
3、 ... and 、 See part of speech tagging
Access in a browser :http://localhost:9000/

Reprint please indicate the source :https://blog.csdn.net/HHTNAN
版权声明
本文为[Elementary school students in IT field]所创,转载请带上原文链接,感谢
边栏推荐
- Face to face Manual Chapter 16: explanation and implementation of fair lock of code peasant association lock and reentrantlock
- NLP model Bert: from introduction to mastery (1)
- React design pattern: in depth understanding of react & Redux principle
- 教你轻松搞懂vue-codemirror的基本用法:主要实现代码编辑、验证提示、代码格式化
- PN8162 20W PD快充芯片,PD快充充电器方案
- 5.4 static resource mapping
- 零基础打造一款属于自己的网页搜索引擎
- Mongodb (from 0 to 1), 11 days mongodb primary to intermediate advanced secret
- ES6学习笔记(四):教你轻松搞懂ES6的新增语法
- Advanced Vue component pattern (3)
猜你喜欢
一篇文章教会你使用Python网络爬虫下载酷狗音乐
How long does it take you to work out an object-oriented programming interview question from Ali school?
带你学习ES5中新增的方法
Python Jieba segmentation (stuttering segmentation), extracting words, loading words, modifying word frequency, defining thesaurus
全球疫情加速互联网企业转型,区块链会是解药吗?
Brief introduction of TF flags
Python基础数据类型——tuple浅析
前端基础牢记的一些操作-Github仓库管理
Did you blog today?
What is the side effect free method? How to name it? - Mario
随机推荐
OPTIMIZER_ Trace details
至联云分享:IPFS/Filecoin值不值得投资?
有了这个神器,快速告别垃圾短信邮件
Calculation script for time series data
Multi classification of unbalanced text using AWS sagemaker blazingtext
IPFS/Filecoin合法性:保护个人隐私不被泄露
Construction of encoder decoder model with keras LSTM
Music generation through deep neural network
Common algorithm interview has been out! Machine learning algorithm interview - KDnuggets
Brief introduction and advantages and disadvantages of deepwalk model
助力金融科技创新发展,ATFX走在行业最前列
小程序入门到精通(二):了解小程序开发4个重要文件
How to customize sorting for pandas dataframe
Filecoin主网上线以来Filecoin矿机扇区密封到底是什么意思
Linked blocking Queue Analysis of blocking queue
I think it is necessary to write a general idempotent component
Just now, I popularized two unique skills of login to Xuemei
It's so embarrassing, fans broke ten thousand, used for a year!
Not long after graduation, he earned 20000 yuan from private work!
What to do if you are squeezed by old programmers? I don't want to quit