2017-10-11 90 views

回答

1

的方式相同的是: -

属性道具=新属性(); props.setProperty(“annotators”,“tokenize,ssplit,pos,引理,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 
+0

此处介绍的更多选项:https://stanfordnlp.github.io/CoreNLP/openie.html – StanfordNLPHelp

+0

该选项如何通过CoreNLP API使用? – pHM

+0

当您构建管道时,您将使用一个Properties对象。在该Properties对象中设置“openie.triple.strict”。 – StanfordNLPHelp

相关问题