如何在StanfordNLP解析器中使用openie.triple.strict选项?

问题描述 投票:1回答:2

我是NLP的新手,想要一个例子来帮助我理解如何在StanfordNLP解析器的openie属性下使用openie.triple.strict选项。

stanford-nlp information-extraction
2个回答
1
投票

同样的道路是: -

属性props = new Properties(); props.setProperty(“annotators”,“tokenize,ssplit,pos,lemma,ner,parse,提,coref,natlog,openie”);

props.setProperty(“openie.resolve_coref”,“false”); // default = true

感谢Gabor Angeli提示!


-1
投票

这是一个示例命令,您可以将该选项设置为true或false。默认值为true。

java -Xmx10g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner,depparse,mention,natlog,openie -file sample-sentence.txt -outputFormat text -openie.triple.strict false
© www.soinside.com 2019 - 2024. All rights reserved.