Skip to content

How to add "incorrect_spans" feature into pretrained spacy model #9088

Discussion options

You must be logged in to vote

Hi,

I'm afraid this process is not as smooth yet as we would like (and we definitely want to address this in the future).

If I understand your use-case correctly, you want to fine-tune an existing NER model. That means you don't want to use add_pipe, because that will create a blank model from scratch. Instead, you want to create a new pipeline with your required components by creating a config file that sources the relevant components:

[components.ner]
source = "en_core_web_lg"
component = "ner"

This will pull in the trained NER component from the other pipeline into your new pipeline.

Now, unfortunately the currently pretrained pipelines (e.g. `en_core_web_lg 3.1.0) have this setting …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Ashufet
Comment options

@ywsada
Comment options

@svlandeg
Comment options

@ywsada
Comment options

Answer selected by svlandeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
training Training and updating models feat / ner Feature: Named Entity Recognizer feat / config Feature: Training config
3 participants