将自定义训练的 NER 模型与 Stanford CoreNLP 中的现有默认模型集成

Integrate custom trained NER model with existing default model in Stanford CoreNLP

我按照下面link训练了语料库。

https://www.sicara.ai/blog/2018-04-25-python-train-model-NTLK-stanford-ner-tagger

数据集是我训练过的一些健康博客(英文)。我成功地 运行 这个模型在我新的看不见的文本上。

问题:我面临的问题是我想 运行 我的自定义英语 NER 模型以及 Stanford CoreNLP 中的默认英语模型。

预期结果:我希望斯坦福默认模型在我自己的自定义模型 NER 模型之后以顺序方式 运行 来处理我自己的模型遗漏的英语实体。

 ner.model = /path/to/custom-model.ser.gz,edu/stanford/nlp/models/ner/english.all.3class.distsim.crf.ser.gz,edu/stanford/nlp/models/ner/english.muc.7class.distsim.crf.ser.gz,edu/stanford/nlp/models/ner/english.conll.4class.distsim.crf.ser.gz

这里有更多信息:

https://stanfordnlp.github.io/CoreNLP/api.html

https://stanfordnlp.github.io/CoreNLP/cmdline.html