自然逻辑推理

Natural Logic Inference

我一直在尝试使用与 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'

我尝试在网上搜索 pp.tab.gz 文件,但找不到。然后我试图通过禁用亲和力来绕过:

Properties props = new Properties();
props.put("ignoreaffinity", true);
OpenIE ie = new OpenIE(props);

但后来我开始收到以下异常:

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

这个文件也有同样的问题...我在任何地方都找不到它。 非常感谢有关如何解决这些问题的任何帮助!感谢大家的先进!

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

http://nlp.stanford.edu/software/openie.shtml

我建议使用指向那里的 jars 而不是 Stanford CoreNLP 3.5.2 版本。