【发布时间】:2018-07-25 23:35:52
【问题描述】:
使用斯坦福信息提取我们有以下java代码
Properties props = new Properties();
props.put("annotators", "tokenize,ssplit,pos,lemma,ner,entitymentions,depparse,natlog,openie");
props.put("tokenize.options", "latexQuotes=false");
props.put("openie","triple.extract=false,triple.all_nominals=false")
pipeline = new StanfordCoreNLP(props);
我想设置一些可用的 OpenIE 标志(在道具或类似的东西中)here。例如,标志 -triple.strict=false 和 -triple.all_nominals=true。我采取的方法如上所示,是
props.put("openie","triple.extract=false,triple.all_nominals=false")
目前尚不清楚这是否正确或有效。假设这些出现在道具中,它们是如何设置在那里的?如果没有,我如何在代码中设置它们?
谢谢!
【问题讨论】:
标签: stanford-nlp information-extraction