Closed bbgvalayev closed 1 year ago
The question is what to do in such a case.
v3 had a logic to find overlappings between matched builtin entities and trim entities. I reintroduced this feature in my PR https://github.com/axa-group/nlp.js/pull/1171/commits/264cb4bc5f94d92d1c9dc33fd76adfd41733f602 ... but these are two builtin entities that overlap.
Which one should win? ;-)
Closing due to inactivity. Please, re-open if you think the topic is still alive.
Is your feature request related to a problem? Please describe. Hi, I am using ner to highlight words in text. I found a use case where output entities overlap. So here is my code:
And here is output when you run it:
Describe the solution you'd like I would like a way to not have these overlappings since it makes things difficult when highlighting that entity in original text. May be there is a smarter way of doing this in the first place?
Describe alternatives you've considered NA
Additional context NA