【发布时间】:2020-03-11 14:47:46
【问题描述】:
我一直在为我的自定义 Spacy 命名实体识别模型添加规则,使用新的 EntityRuler (https://spacy.io/usage/rule-based-matching#entityruler)。
我添加了 100 万个蛋白质名称,这需要几个小时才能运行,现在我意识到其中许多名称都是常用词(如“FOR”和“11”)。
我想从 EntityRuler 对象 (https://spacy.io/api/entityruler) 中删除一些模式。但我不知道该怎么做......
如何从我的 EntityRuler 对象中删除规则/模式? 无需卸载所有内容并加载应保留的内容。
【问题讨论】:
标签: python machine-learning nlp spacy named-entity-recognition