GLiNER icon indicating copy to clipboard operation
GLiNER copied to clipboard

Order of labels impacts detection confidence scores

Open saibhamidipati opened this issue 5 months ago • 2 comments

I'm using the PII model using the following script:

model = GLiNER.from_pretrained("urchade/gliner_multi_pii-v1")
model.eval()
entities = model.predict_entities(text, labels)

for entity in entities:
    print(entity["text"], "=>", entity["label"], "=>", entity["score"] )

If my order of labels changes, I get a different score for the detected entities. Why is this happening?

saibhamidipati avatar Sep 19 '24 20:09 saibhamidipati