You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Output changing with little change in input text #235
I made a very little change in the text , I added just "." at the end. There is change in the output.
Is this expected, is there something that could be done to avoid such changes in the output?
In the following example, the difference between text1 and text2 is one "." at the end.
from gliner import GLiNER
model = GLiNER.from_pretrained("urchade/gliner_large-v2.1")
labels = ["social security number","phone number","email","date","person"]
text1 = "I want to book an appointment with Dr. Sharma as soon as possible. Patient name is Lilly brand"
print(model.predict_entities(text1, labels, flat_ner=True,threshold=0.5,multi_label=False))
text2 = "I want to book an appointment with Dr. Sharma as soon as possible. Patient name is Lilly brand."
print(model.predict_entities(text2, labels, flat_ner=True,threshold=0.5,multi_label=False))
Activity