当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- What problems can clean architecture solve? - jbogard
- vue-codemirror基本用法:实现搜索功能、代码折叠功能、获取编辑器值及时验证
- 这个项目可以让你在几分钟快速了解某个编程语言
- 从海外进军中国,Rancher要执容器云市场牛耳 | 爱分析调研
- IPFS/Filecoin合法性:保护个人隐私不被泄露
- Mac installation hanlp, and win installation and use
- Just now, I popularized two unique skills of login to Xuemei
- Network security engineer Demo: the original * * is to get your computer administrator rights! 【***】
- Subordination judgment in structured data
- ipfs正舵者Filecoin落地正当时 FIL币价格破千来了
猜你喜欢

vue任意关系组件通信与跨组件监听状态 vue-communication

The difference between Es5 class and ES6 class

零基础打造一款属于自己的网页搜索引擎

在大规模 Kubernetes 集群上实现高 SLO 的方法

至联云分享:IPFS/Filecoin值不值得投资?

If PPT is drawn like this, can the defense of work report be passed?

How to customize sorting for pandas dataframe

Three Python tips for reading, creating and running multiple files

What is the side effect free method? How to name it? - Mario

Thoughts on interview of Ali CCO project team
随机推荐
零基础打造一款属于自己的网页搜索引擎
IPFS/Filecoin合法性:保护个人隐私不被泄露
Python基础数据类型——tuple浅析
How to use Python 2.7 after installing anaconda3?
ES6学习笔记(四):教你轻松搞懂ES6的新增语法
CCR炒币机器人:“比特币”数字货币的大佬,你不得不了解的知识
小程序入门到精通(二):了解小程序开发4个重要文件
Discussion on the technical scheme of text de duplication (1)
[C / C + + 1] clion configuration and running C language
5.4 static resource mapping
比特币一度突破14000美元,即将面临美国大选考验
Construction of encoder decoder model with keras LSTM
Recommendation system based on deep learning
Advanced Vue component pattern (3)
Let the front-end siege division develop independently from the back-end: Mock.js
What is the difference between data scientists and machine learning engineers? - kdnuggets
Python crawler actual combat details: crawling home of pictures
Three Python tips for reading, creating and running multiple files
6.6.1 localeresolver internationalization parser (1) (in-depth analysis of SSM and project practice)
一篇文章带你了解CSS3图片边框