-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
During finetuning, classes_to_id
is not correct
#32
Comments
I am not sure to understand Is it for training or inference? |
Is entity types in the correct format? It should be a list of string Actually I do not suggest setting entity types during training for better generalization |
@urchade yes it is a list of strings |
I have the same issue when specifying The issue is here : When Line 62 in e15c22a
But when providing Line 113 in e15c22a
So a quick fix, when using Line 100 in e15c22a
And instead add :
|
GLiNER/gliner/model.py
Line 100 in e15c22a
This will error out on a
KeyError
because it is using numeric indices to look up keys that can be strings.This happens, when
entity_types
are provided to thecreate_dataloader
The text was updated successfully, but these errors were encountered: