当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 在大规模 Kubernetes 集群上实现高 SLO 的方法
- Python filtering sensitive word records
- Vue.js Mobile end left slide delete component
- ES6学习笔记(四):教你轻松搞懂ES6的新增语法
- Advanced Vue component pattern (3)
- html
- 助力金融科技创新发展,ATFX走在行业最前列
- 合约交易系统开发|智能合约交易平台搭建
- Skywalking series blog 5-apm-customize-enhance-plugin
- 6.2 handleradapter adapter processor (in-depth analysis of SSM and project practice)
猜你喜欢
Working principle of gradient descent algorithm in machine learning
What is the side effect free method? How to name it? - Mario
合约交易系统开发|智能合约交易平台搭建
Python download module to accelerate the implementation of recording
How to encapsulate distributed locks more elegantly
Did you blog today?
It's so embarrassing, fans broke ten thousand, used for a year!
EOS创始人BM: UE,UBI,URI有什么区别?
Pattern matching: The gestalt approach一种序列的文本相似度方法
用一个例子理解JS函数的底层处理机制
随机推荐
至联云分享:IPFS/Filecoin值不值得投资?
6.4 viewresolver view parser (in-depth analysis of SSM and project practice)
Analysis of etcd core mechanism
前端基础牢记的一些操作-Github仓库管理
axios学习笔记(二):轻松弄懂XHR的使用及如何封装简易axios
PHP应用对接Justswap专用开发包【JustSwap.PHP】
Vue.js Mobile end left slide delete component
Natural language processing - BM25 commonly used in search
What is the side effect free method? How to name it? - Mario
Windows 10 tensorflow (2) regression analysis of principles, deep learning framework (gradient descent method to solve regression parameters)
Summary of common algorithms of linked list
Solve the problem of database insert data garbled in PL / SQL developer
零基础打造一款属于自己的网页搜索引擎
TensorFlow中的Tensor是什么?
带你学习ES5中新增的方法
NLP model Bert: from introduction to mastery (1)
如何玩转sortablejs-vuedraggable实现表单嵌套拖拽功能
Python基础数据类型——tuple浅析
html
零基础打造一款属于自己的网页搜索引擎