当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- html
- Network security engineer Demo: the original * * is to get your computer administrator rights! 【***】
- Skywalking series blog 1 - install stand-alone skywalking
- ES6学习笔记(二):教你玩转类的继承和类的对象
- Common algorithm interview has been out! Machine learning algorithm interview - KDnuggets
- Synchronous configuration from git to consult with git 2consul
- Interface pressure test: installation, use and instruction of siege pressure test
- [actual combat of flutter] pubspec.yaml Configuration file details
- 百万年薪,国内工作6年的前辈想和你分享这四点
- Wechat applet: prevent multiple click jump (function throttling)
猜你喜欢
随机推荐
教你轻松搞懂vue-codemirror的基本用法:主要实现代码编辑、验证提示、代码格式化
OPTIMIZER_ Trace details
git rebase的時候捅婁子了,怎麼辦?線上等……
Network security engineer Demo: the original * * is to get your computer administrator rights! 【***】
Face to face Manual Chapter 16: explanation and implementation of fair lock of code peasant association lock and reentrantlock
Summary of common algorithms of binary tree
2019年的一个小目标,成为csdn的博客专家,纪念一下
I think it is necessary to write a general idempotent component
6.1.1 handlermapping mapping processor (1) (in-depth analysis of SSM and project practice)
在大规模 Kubernetes 集群上实现高 SLO 的方法
NLP model Bert: from introduction to mastery (1)
Do not understand UML class diagram? Take a look at this edition of rural love class diagram, a learn!
Natural language processing - BM25 commonly used in search
Advanced Vue component pattern (3)
一篇文章带你了解SVG 渐变知识
vue任意关系组件通信与跨组件监听状态 vue-communication
如何玩转sortablejs-vuedraggable实现表单嵌套拖拽功能
How to use parameters in ES6
Network security engineer Demo: the original * * is to get your computer administrator rights! 【***】
ES6学习笔记(四):教你轻松搞懂ES6的新增语法
