The EntityMatcher component writes the entities it matches to the doc.ents using doc.set_ents, which does not allow for overlap and may thus raise an error. It would be nice to have some more options here, like removing the overlap (how?) or warning/informing the user of any errors.
The
EntityMatcher
component writes the entities it matches to thedoc.ents
usingdoc.set_ents
, which does not allow for overlap and may thus raise an error. It would be nice to have some more options here, like removing the overlap (how?) or warning/informing the user of any errors.Minimal example: