tomaarsen / SpanMarkerNER

SpanMarker for Named Entity Recognition
https://tomaarsen.github.io/SpanMarkerNER/
Apache License 2.0
391 stars 27 forks source link

How to make this work for overlapping entities? #21

Closed seekingpeace closed 1 year ago

seekingpeace commented 1 year ago

Hi tom, i was wondering how could i make this work for overlapping spans for different entity types and how to extend this to relations extraction as well. Any help or direction would be super helpful.

tomaarsen commented 1 year ago

Hello!

I'm afraid that this project only works with "flat" NER, i.e. non-nested spans. The approach could be extended to support nested NER, but it would require some changes in both the preprocessing before training and predictions after training.

Expanding this to RE would likely be more work, and is also not on my agenda immediately - I can't really justify the time right now.

tomaarsen commented 1 year ago

I'll close this as it's been answered :)