Stanford CoreNLP遇到的问题
Exception in thread “main” java.lang.RuntimeException: edu.stanford.nlp.io.RuntimeIOException: Error while loading a tagger model (probably missing model file)
at edu.stanford.nlp.pipeline.AnnotatorFactories4.create(AnnotatorFactories.java:292)atedu.stanford.nlp.pipeline.AnnotatorPool.get(AnnotatorPool.java:85)atedu.stanford.nlp.pipeline.StanfordCoreNLP.construct(StanfordCoreNLP.java:375)atedu.stanford.nlp.pipeline.StanfordCoreNLP.(StanfordCoreNLP.java:139)atedu.stanford.nlp.pipeline.StanfordCoreNLP.(StanfordCoreNLP.java:135)atcorenlp.CoreNLP.main(CoreNLP.java:39)Causedby:edu.stanford.nlp.io.RuntimeIOException:Errorwhileloadingataggermodel(probablymissingmodelfile)atedu.stanford.nlp.tagger.maxent.MaxentTagger.readModelAndInit(MaxentTagger.java:770)atedu.stanford.nlp.tagger.maxent.MaxentTagger.(MaxentTagger.java:298)atedu.stanford.nlp.tagger.maxent.MaxentTagger.(MaxentTagger.java:263)atedu.stanford.nlp.pipeline.POSTaggerAnnotator.loadModel(POSTaggerAnnotator.java:97)atedu.stanford.nlp.pipeline.POSTaggerAnnotator.(POSTaggerAnnotator.java:77)atedu.stanford.nlp.pipeline.AnnotatorImplementations.posTagger(AnnotatorImplementations.java:59)atedu.stanford.nlp.pipeline.AnnotatorFactories4.create(AnnotatorFactories.java:292) at edu.stanford.nlp.pipeline.AnnotatorPool.get(AnnotatorPool.java:85) at edu.stanford.nlp.pipeline.StanfordCoreNLP.construct(StanfordCoreNLP.java:375) at edu.stanford.nlp.pipeline.StanfordCoreNLP.(StanfordCoreNLP.java:139) at edu.stanford.nlp.pipeline.StanfordCoreNLP.(StanfordCoreNLP.java:135) at corenlp.CoreNLP.main(CoreNLP.java:39) Caused by: edu.stanford.nlp.io.RuntimeIOException: Error while loading a tagger model (probably missing model file) at edu.stanford.nlp.tagger.maxent.MaxentTagger.readModelAndInit(MaxentTagger.java:770) at edu.stanford.nlp.tagger.maxent.MaxentTagger.(MaxentTagger.java:298) at edu.stanford.nlp.tagger.maxent.MaxentTagger.(MaxentTagger.java:263) at edu.stanford.nlp.pipeline.POSTaggerAnnotator.loadModel(POSTaggerAnnotator.java:97) at edu.stanford.nlp.pipeline.POSTaggerAnnotator.(POSTaggerAnnotator.java:77) at edu.stanford.nlp.pipeline.AnnotatorImplementations.posTagger(AnnotatorImplementations.java:59) at edu.stanford.nlp.pipeline.AnnotatorFactories4.create(AnnotatorFactories.java:290)
… 5 more
Caused by: java.io.IOException: Unable to open “edu/stanford/nlp/models/pos-tagger/english-left3words/english-left3words-distsim.tagger” as class path, filename or URL
at edu.stanford.nlp.io.IOUtils.getInputStreamFromURLOrClasspathOrFileSystem(IOUtils.java:485)
at edu.stanford.nlp.tagger.maxent.MaxentTagger.readModelAndInit(MaxentTagger.java:765)
… 11 more
解决方案
使用maven下载相关jar包,就可以了。
<dependency><groupId>edu.stanford.nlp</groupId><artifactId>stanford-corenlp</artifactId><version>3.2.0</version><scope>compile</scope>
</dependency>
Stanford CoreNLP遇到的问题相关推荐
- Ubuntu下安装Stanford CoreNLP
Stanford CoreNLP提供了一系列自然语言分析工具.它能够给出基本的词形,词性,不管是公司名还是人名等,格式化的日期,时间,量词,并且能够标记句子的结构,语法形式和字词依赖,指明那些名字指向 ...
- 使用Stanford CoreNLP进行句法分析实战
使用Stanford CoreNLP进行句法分析实战 目录 使用Stanford CoreNLP进行句法分析实战 Stanford CoreNLP 实战代码
- Stanford CoreNLP使用需要注意的一点
1.Stanford CoreNLP maven依赖,jdk依赖1.8 <dependency> <groupId>edu.stanford.nlp</groupId&g ...
- stanford corenlp的TokensRegex
最近做一些音乐类.读物类的自然语言理解,就调研使用了下Stanford corenlp,记录下来. 功能 Stanford Corenlp是一套自然语言分析工具集包括: POS(part of spe ...
- Stanford CoreNLP 3.6.0 中文指代消解模块调用失败的解决方案
Stanford CoreNLP 3.6.0 中文指代消解模块调用失败的解决方案 参考文章: (1)Stanford CoreNLP 3.6.0 中文指代消解模块调用失败的解决方案 (2)https: ...
- Stanford Corenlp中文分词自定义词典(扩展词典)
Stanford Corenlp是斯坦福大学的自然语言处理工具,其中中文分词是基于条件随机场CRF (Conditional Random Field) ,不是基于字典的直接匹配.最近调用Stanfo ...
- NLP工具——Stanford CoreNLP的python封装包 处理中文
文章目录 1.StanfordCoreNLP是什么? 2.StanfordNLP是什么? 3.StanfordNLP的使用 3.1 安装 3.2 运行 3.3 如何处理中文? 3.4 demo 4.第 ...
- Stanford CoreNLP超简单安装及简单使用,句法分析及依存句法分析
Stanford CoreNLP超简单安装及简单使用,句法分析及依存句法分析,使用jupyter notebook 今天我们来使用Stanford CoreNLP进行简单的句法分析,我使用的是jupy ...
- Stanford CoreNLP Stanza使用手册
1. 手动下载工具包:(参考https://github.com/stanfordnlp/stanza/issues/275) 默认英语工具包:https://nlp.stanford.edu/sof ...
最新文章
- VC/MFC Tips
- 优先级队列 c语言,使用最小堆使用优先级队列(c语言版本)
- Web安全-伪静态网页
- 红米Note 7 Pro彩排PPT露出:可降低90%入水量?
- 64位 iee754_IEEE754浮点表示法详解
- java socket client_java socket client
- 近24小时以太坊上的DEX交易量超过150亿美元
- think php getfield,thinkPHP数据查询常用方法总结【select,find,getField,query】
- 自动划分-------训练集+验证集+测试集(code,自己设置比例)
- php new mpdf,php – PDF不合并大于使用mPDF的PDF-1.5版本
- 何川L3管理课_模块3_追进展(执行)
- mysql 存储 海量图片_数据库中存储大量图片设计
- LOTO 示波器 两种电流探头的对比实测
- maven项目构建ssh工程(父工程与子模块的拆分与聚合)
- HDU 1241 Oil Deposits(石油储藏)
- Linux趣味小游戏,嘟嘟嘟,小火车来了
- Uncertainty Quantification of Sparse Travel Demand Prediction with Spatial-Temporal Graph Neural Net
- Python生成前缀+随机数
- 城市交通的5D模式 | 不同尺度下研究的城市交通
- eclipse多行注释 (eclipse开发工具)
热门文章
- 科普文:服务器上如何 Node 多版本共存 #31
- 使用Maven构建Java项目
- Jeecg-Boot异常处理'jeecg-boot.QRTZ_LOCKS' doesn't exist
- 容器编排技术 -- Kubernetes 组件
- Git教程--如何安装Git 如何高效地使用Git 合理使用Git分支
- 解决mysql导入数据量很大导致失败及查找my.ini 位置(my.ini)在哪
- MongoDB 安装与基本命令
- 【C语言】创建一个函数,利用该函数将字符串中的小写字母转换为大写字母
- C#LeetCode刷题之#680-验证回文字符串 Ⅱ​​​​​​​(Valid Palindrome II)
- 使用fiddler脚本修改x-frame-options