Skip to content

Fine tuning Vs. Training Spacy NER #9233

Discussion options

You must be logged in to vote

In most cases, if a component has a factory, it's being trained from scratch. If it has a source instead it's being loaded from a pipeline. This is a little confusing with Transformers, since even with a factory they load a pretrained Transformer model, but it's true for most other components.

[components.ner]
factory = "ner"
incorrect_spans_key = null
moves = null
update_with_oracle_cut_size = 100

You have a factory so the NER model is being trained from scratch here.

To resume training, change the contents of this block to source = "en_core_web_trf", and remove the other components.ner blocks.

However, note in general re-training models like this is tricky due to catastrophic forgettin…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@LeafmanZ
Comment options

Answer selected by svlandeg
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / ner Feature: Named Entity Recognizer
3 participants