Nlp 自然逻辑推理

Nlp 自然逻辑推理,nlp,stanford-nlp,Nlp,Stanford Nlp,我一直在尝试使用Stanford CoreNLP 3.5.2打包的自然逻辑推理组件(Naturalli)来提取关系三元组……但是,在创建新的OpenIE实例时,我遇到以下异常: Could not load affinity model at edu/stanford/nlp/naturalli/: Could not find a part of the path '...\edu\stanford\nlp\naturalli\pp.tab.gz' Could not load clause

我一直在尝试使用Stanford CoreNLP 3.5.2打包的自然逻辑推理组件(Naturalli)来提取关系三元组……但是,在创建新的OpenIE实例时,我遇到以下异常:

Could not load affinity model at edu/stanford/nlp/naturalli/: Could not find a part of the path '...\edu\stanford\nlp\naturalli\pp.tab.gz'
Could not load clause splitter model at edu/stanford/nlp/naturalli/clauseSplitterModel.ser.gz: Unable to resolve "edu/stanford/nlp/naturalli/clauseSplitterModel.ser.gz" as either class path, filename or URL
我试图在网上搜索pp.tab.gz文件,但找不到它。然后,我尝试通过禁用关联来四处走动:

Properties props = new Properties();
props.put("ignoreaffinity", true);
OpenIE ie = new OpenIE(props);
但后来我发现了以下例外情况:

Could not load affinity model at edu/stanford/nlp/naturalli/: Could not find a part of the path '...\edu\stanford\nlp\naturalli\pp.tab.gz'
Could not load clause splitter model at edu/stanford/nlp/naturalli/clauseSplitterModel.ser.gz: Unable to resolve "edu/stanford/nlp/naturalli/clauseSplitterModel.ser.gz" as either class path, filename or URL
这个文件也有同样的问题…我在任何地方都找不到它。
非常感谢您对如何解决这些问题的任何帮助!感谢大家在先进的

这是最近发布的,这里有一些下载:


我建议使用指向那里的JAR,而不是斯坦福CoreNLP 3.5.2版本。

谢谢!!我到处都找不到他们!您还可以使用,以及当前模型文件:。我会在StanfordNLP主页上添加一个指向该项目的链接:)。谢谢!!我真的很感谢你的反馈!我真的很喜欢你的框架!!