How to get confidence score for the predicted entities ?
I'm tryin to use GliNER with Presidio.
This is how I planned to do:
Take the results from gliner-spacy and pass it it apresidio anonymizer.
The Anonymizer requires the text and List[RecognizerResult] object.
I need to construct RecognizerResult object using four things (entity_name, entity_start, entity_end and entitiy_score), I already have three things but I don't have the score.
I like this idea. I'll work on this today. I don't think it will be too challenging. I imagine the predictions will be stored as a custom attribute, so ent._.score.
How to get confidence score for the predicted entities ?
I'm tryin to use GliNER with Presidio.
This is how I planned to do: