overlapping named-entity spans #4966
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. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your helpful reply. |
Beta Was this translation helpful? Give feedback.
-
Great, happy to hear that works for you! |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions