stanford python中文分词
来源:互联网 发布:保定云计算培训 编辑:程序博客网 时间:2024/05/16 17:55
总结,只有三步:
一
下载coreNLP
https://stanfordnlp.github.io/CoreNLP/download.html
二
下载
http://nlp.stanford.edu/software/stanford-chinese-corenlp-2016-10-31-models.jar
然后把这个jar文件复制到第一步解压后的文件夹中
三
python输入以下代码,路径改成上面的stanford-chinese-corenlp-2016-10-31-models.jar所在文件夹路径
from stanfordcorenlp import StanfordCoreNLPnlp = StanfordCoreNLP(r'/home/appleyuchi/PycharmProjects/csdn_blog/72993873StanfordCoreNLP进行中文分词/stanford-corenlp-full-2017-06-09', lang='zh')sentence = '清华大学位于北京。'print (nlp.word_tokenize(sentence))print (nlp.pos_tag(sentence))print (nlp.ner(sentence))print (nlp.parse(sentence))print (nlp.dependency_parse(sentence))
阅读全文
0 0
- stanford python中文分词
- Stanford 中文分词
- Stanford CoreNLP 进行中文分词
- stanford-segmenter中文分词基本使用
- python中文分词:结巴分词
- python中文分词
- python NLTK、中文分词
- python 中文分词
- python中文分词---jieba
- Python中文分词组件
- Python 中文分词
- 【Python学习】python中文分词
- python中文分词,使用结巴分词对python进行分词
- Python分词模块推荐:结巴中文分词
- Python分词模块推荐:结巴中文分词
- Python分词模块推荐:jieba中文分词
- python中文分词工具:结巴分词jieba
- Python分词模块推荐:jieba中文分词
- 怎样设置路由器端口映射(以TP-Link为例)?
- 探究Exported属性对startActivity的影响
- Vue 学习笔记1之安装
- Linux下安装php
- Kubernetes部署master节点
- stanford python中文分词
- 虚拟继承和菱形虚拟继承的剖析
- python shell命令行中import多层目录下的模块
- Anaconda python
- 使用Xposed去除微博国际版的启动广告
- 【模型 区分度】神秘的KS值和GINI系数
- 洛谷P1613 跑路(倍增+floyd)
- 24-#pragma once #pragma pack()
- HDOJ4911 归并排序求逆序数