Skip to content
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

Multi label models #67

Merged
merged 11 commits into from
Sep 18, 2024
Merged

Multi label models #67

merged 11 commits into from
Sep 18, 2024

Conversation

RichJackson
Copy link
Collaborator

reworked a bunch of logic to clean up TransformersModelForTokenClassificationNerStep ahead of multilabel token classification. Removed some dead code for obsolete concepts.

See commit comments for specific changes

@RichJackson RichJackson marked this pull request as ready for review September 11, 2024 12:17
Copy link
Collaborator

@paluchasz paluchasz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just some nits here and there

RichJackson and others added 11 commits September 18, 2024 09:42
Removed subspan logic as unused

removed SmartSpanFinder in place of MultilabelSpanFinder
…l classification models.

TokenizedWordProcessor added to constructor sig

removed labels, detect_subspans and threshold as are now obsolete/handled by TokenizedWordProcessor

HFDataset now takes keys_to_use arg to determine which tensors to return from BatchEncodings
@RichJackson RichJackson merged commit 3ab853d into main Sep 18, 2024
2 checks passed
@RichJackson RichJackson deleted the multi-label-models branch September 18, 2024 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants