Stanford CoreNLP OpenIE annotator

你离开我真会死。 提交于 2019-11-30 16:03:25

You should try this setting:

"openie.triple.strict":"true"

Looking through the code it appears at this time the confidence is not stored with the returned json, so you cannot get that from the CoreNLP server.

Since you bring this up I will push a change that will add those to the output json and let you know when that is live on the GitHub.

Thanks a lot, it is working now i added both: "openie.triple.strict":"true" and "openie.max_entailments_per_clause":"1" the code now is:

output = nlp.annotate(chunkz, properties={"annotators":"tokenize,ssplit,pos,depparse,natlog,openie",
                                "outputFormat": "json",
                                 "openie.triple.strict":"true",
                                 "openie.max_entailments_per_clause":"1"})
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!