-
Notifications
You must be signed in to change notification settings - Fork 699
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
Single Class Span Classification Support #982
Single Class Span Classification Support #982
Conversation
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
Updated related functions to add class_names optional arg and added related tests.
Added class_accuracy functions and plotting functions; modified doc string
- modified class_name and class_to_show behavior - added division by zero prevention; - addressed comments
…/cleanlab into span-classification
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #982 +/- ##
==========================================
- Coverage 96.48% 96.22% -0.26%
==========================================
Files 73 74 +1
Lines 5714 5803 +89
Branches 1020 1037 +17
==========================================
+ Hits 5513 5584 +71
- Misses 108 130 +22
+ Partials 93 89 -4 ☔ View full report in Codecov by Sentry. |
Co-authored-by: Aditya Thyagarajan <aditya1593@icloud.com>
Co-authored-by: Aditya Thyagarajan <aditya1593@icloud.com>
Co-authored-by: Aditya Thyagarajan <aditya1593@icloud.com>
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.
Thanks a lot for your contributions @Steven-Yiran
Thanks @aditya1503 @jwmueller for all the helpful guidance and modifications! |
Summary
This pull request aims to serve as the starting point to support span classification datasets proposed in #385. Currently, only single-class span classification is supported. One example of a single-class span classification task is Extractive Question Answering.
Example Usage
An example of using the
span_classification
module to find label issues in the extractive question-answering dataset SQuAD is provided in a separate repository here.