使用斯坦福命名实体识别器时,如何包含多个分类器? [英] How do I include more than one classifiers when using Stanford named entity recogniser?

查看:129
本文介绍了使用斯坦福命名实体识别器时,如何包含多个分类器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行以下命令来启动ner服务器

I run following command to start ner server

java -mx1000m -cp stanford-ner.jar edu.stanford.nlp.ie.NERServer -loadClassifier ner-model.ser.gz -port 8081-outputFormat inlineXML

java -mx1000m -cp stanford-ner.jar edu.stanford.nlp.ie.NERServer -loadClassifier ner-model.ser.gz -port 8081 - outputFormat inlineXML

在这里,我使用了由我手动创建的分类器(ner-model.ser.gz).我想使用默认分类器english.muc.7class.distsim.crf.ser.gz(由他们给定)以及我创建的分类器

In here, I have used classifier(ner-model.ser.gz) manually created by me. I want to use default classifier english.muc.7class.distsim.crf.ser.gz(It is given by them) along with the one created by me

我尝试了以下命令:

java -mx1000m -cp stanford-ner.jar edu.stanford.nlp.ie.NERServer -loadClassifier classifiers/english.muc.7class.distsim.crf.ser.gz ner-model.ser.gz -port 8081- outputFormat inlineXML

java -mx1000m -cp stanford-ner.jar edu.stanford.nlp.ie.NERServer -loadClassifier classifiers/english.muc.7class.distsim.crf.ser.gz ner-model.ser.gz -port 8081 -outputFormat inlineXML

但是它没有用.由于我是新手,请提供帮助.

But it did not work. Please Help since i am new to this.

推荐答案

不幸的是,目前NERServer代码仅支持加载一个分类器,因此如果不编写代码,这里就没有解决方案.像Stanford CoreNLP一样,允许NERServer加载多个分类器并不是什么大的改变.知道Java的人可以做到这一点,或者我们可能会在将来的版本中做到这一点,但没有特别的时间表.

Unfortunately, at present the NERServer code only supports loading one classifier, so there is no solution here without writing code. It would not be a big change to allow NERServer to load multiple classifiers, as Stanford CoreNLP does. Someone who knows Java could do it, or we might do it in some future release, but no particular schedule for that.

这篇关于使用斯坦福命名实体识别器时,如何包含多个分类器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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