Repository navigation
overlapping named-entity spans #4966
Locked
miwieg
started this conversation in
New Features & Project Ideas
Replies: 3 comments
|
The current implementation of the NER module indeed prohibits overlapping entity spans, though this will likely be revisited in the near future. One option you have is to store the potentially overlapping spans in extension attributes. This should give your more flexibility. |
0 replies
|
Thank you very much for your helpful reply. |
0 replies
|
Great, happy to hear that works for you! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
For a project I am working on I need to extend the existing named-entity recognition.
I first tried to add new spans and add them to doc.ents. However, this only seems to work if the new entities do not overlap with spans of the original named-entity recognition.
For the application, I have in mind, there will definitely be overlapping spans. (So, it will not work if I remove the original named-entity recognition.)
Is there a work-around for my problem.
Which page or section is this issue related to?
https://spacy.io/usage/processing-pipelines#custom-components-simple
All reactions