使用定制的NER模型的Stanford OpenIE [英] Stanford OpenIE using customized NER model

查看:209
本文介绍了使用定制的NER模型的Stanford OpenIE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用斯坦福大学的OpenIE(版本3.6.0)基于我在化学领域训练的NER模型提取关系三元组.但是,我无法让OpenIE根据我自己的NER模型提取关系三元组.看来OpenIE仅基于软件包中提供的默认NER模型提取关系三元组.

I am trying to use Stanford's OpenIE (version 3.6.0) to extract relation triples based on a NER model I trained in chemistry domain. However, I couldn't have OpenIE to extract relation triples based on my own NER model. It seems OpenIE extracts relation triples based only on the default NER models provided in the package.

以下是我训练和部署NER模型的步骤:

Below are what I've done to train and deploy my NER model:

  1. 根据 http://nlp.stanford.edu训练NER模型/software/crf-faq.html#a .
  2. 在CoreNLP服务器中部署NER模型,然后重新启动服务器.我在corenlpserver.sh中修改了props属性. props属性现在如下所示:

  1. Train the NER model based on http://nlp.stanford.edu/software/crf-faq.html#a.
  2. Deploy the NER model in CoreNLP server and then restart the server. I modified the props attribute in corenlpserver.sh. The props attribute now looks like below:

props="-Dner.model=$scriptdir/my_own_chemistry.ser.gz,edu/stanford/nlp/models/ner/english.all.3class.distsim.crf.ser.gz"

请在此处中查看NER + OpenIE结果示例.在此示例中,我希望OpenIE在通过NER模型重新识别的实体(例如Cl,Br和Windjana)上建立关系三元组,但事实并非如此. 是否有可能基于自训练的NER模型提取OpenIE的关系三元组?如果是这样,请您给我一些简短的说明吗?

Please take a look at an example NER + OpenIE results here. In this example, I expect that OpenIE builds the relation triples on the entities (such as Cl, Br, and Windjana) recoginized by my NER model, but it doesn't. Is it possible to have OpenIE extract relation triples based on a self-trained NER model? If so, would you please give me some breif instructions on how?

提前谢谢!

推荐答案

与OpenIE的作者联系,作者确认OpenIE或多或少完全忽略了NER.希望这可以帮助其他有相同问题的人.

Contacted the author of OpenIE, and the author confirmed that OpenIE more or less ignored NER altogether. Hope this can help others who have the same question.

这篇关于使用定制的NER模型的Stanford OpenIE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆