-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Enable label alignment for token classification datasets #4277
Conversation
The documentation is not available anymore as the PR was closed or merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two nits.
PS: It makes sense to also add support for the Sequence
type to class_encode_column
. I can work on that.
Co-authored-by: Mario Šaško <[email protected]>
Hmm, not sure why the Windows tests are failing with:
Edit: running the CI again fixed the problem 🙃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last nit and we can merge then
Co-authored-by: Mario Šaško <[email protected]>
Thanks, done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now. Thanks!
This PR extends the
Dataset.align_labels_with_mapping()
method to support alignment of label mappings between datasets and models for token classification (e.g. NER).Example of usage:
Context: we need this in AutoTrain to automatically align datasets / models during evaluation. cc @abhishekkrthakur