我目前正在尝试用CoreNLP训练我自己的中国NER模型,但是当我执行训练命令时,我得到了一个FileNotFoundException。我已经看到了关于这个错误在CoreNLP 3.5.0中被修复的帖子,但是我使用的是4.1.0,并且它仍然在发生。Exception in thread "main" edu.stanford.nlp.io.RuntimeIOException: java.io.FileNotFoundException: \u\)
at edu.st
在我的项目里。我需要使用NER注释,所以我使用了NERDemo.java --当我创建一个新项目并且只有这段代码时,它工作得很好,但是当我将它添加到我的项目中时,我总是会出错。: java.io.FileNotFoundException: /u/nlp/data/pos_tags_are_useless/egw4-reut.512.clusters (No such file)
at edu.stanford.nlp.ie.NERFeatureF
for i in df['Text'].to_list():
for entity in doc.ents:美国和加拿大的比赛被推迟
然后,我只需要第一个位置(美国)在另一列,如df['Place']对应的索引文本,即0。df['Place']在DataFrame中是不可用的,这意味着它将在赋值时创建。我试过遵循
\u\nlp\data\pos_tags_are_useless\egw4-reut.512.clusters (系统找不到指定的路径)在edu.stanford.nlp.objectbank.ReaderIteratorFactory: java.io.FileNotFoundException: \u\nlp\data\pos_tags_are_useless\egw4-reut.512.clusters (The system:99)
at rgu.jclos.quilt.eca.approache
我在用斯坦福大学的NLP。我在我的maven项目中添加了它的依赖项。它过去工作得很好,但现在它显示了这个错误:(我甚至从git下载了类似的项目,以确定我是否做错了什么,但同样的消息也会显示出来。at edu.stanford.nlp.pipeline.StanfordCoreNLP.<init>(StanfordCoreNLP.java:127)
at edu.stanford.nlp.pipeline.StanfordCoreNLP.(MaxentTagge
这是我的问题
线程"main“中的xception : edu.stanford.nlp.trees.MemoryTreebank.processFile(MemoryTreebank.java:300) at edu.stanford.nlp.util.FilePathProcessor.processPath(FilePathProcessor.java:84) at edu.stanford.nlp.trees.MemoryTreebank.loadPath(MemoryTreebank.java:152) at edu.s