Skip to content
Discussion options

You must be logged in to vote

The double NER example project shows how to use two NER components at once and explains various details of that.

It doesn't cover training different NER components at once. That's not possible in a straightforward way, since entity annotations go in doc.ents there's no way to have some annotations for one NER component and some for a different one. (I guess you could use a custom component to juggle annotations but I'm not sure if that would cause other issues.)

You should be able to do this with the spancat if you use different span keys for the components. I am not sure if we have tried that before, but it shouldn't have issues.

Also note that sharing tok2vec between components is the d…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by balachander1964
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 feat / tok2vec Feature: Token-to-vector layer and pretraining
2 participants