Skip to content
Discussion options

You must be logged in to vote

I think that error is happening because you don't have a tok2vec - NER layers need vectorized features to work with, that can be provided by a tok2vec or a transformer.

Your model structure is a little different from what we usually see, so we don't have an exact example for it. What I would recommend you do is use the Quickstart to generate a pipeline with just one NER component and look at how it's structured, in particular the pipeline entry. If you can use that config (even with an in-code training loop) to train one of your NER models then you know your structure is OK and you can work on adding in your other NER models and entity rulers.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by polm
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 / pipeline Feature: Processing pipeline and components feat / matcher Feature: Token, phrase and dependency matcher v2 spaCy v2.x
2 participants