Skip to content
Discussion options

You must be logged in to vote

Hi Alex! In order to assign a KB ID, you’ll need an entity linking module within your pipeline. You can use the EntityLinker component within spaCy, for more resources you can check out this video on Training a custom entity linking model or this talk about entity linking from spaCy IRL or this example project.

To add the Entity Linker component to your pipeline with Spancat, you’ll have to save the entities into the doc.ents property. While NER models save directly to doc.ents, Spancat automatically stores the output into doc.spans, but you should be able to copy the spans over to the doc.ents property if the spans are non-overlapping. You can then run the EntityLinker to link the spans …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by adrianeboyd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / nel Feature: Named Entity linking
2 participants