我通过以下链接训练了语料库。
https://www.sicara.ai/blog/2018-04-25-python-train-model-NTLK-stanford-ner-tagger
数据集是我训练过的一些健康博客(英语)的数据集。我成功地能够在我新的看不见的文本上运行这个模型。
问题:我面临的问题是我想在斯坦福 CoreNLP 中运行我的自定义英语 NER 模型以及默认英语模型。
期望的结果:我希望斯坦福默认模型在我自己的自定义模型 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
这里有更多信息:
关于python - 将自定义训练的 NER 模型与斯坦福 CoreNLP 中的现有默认模型集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58073494/