Skip to content

Feature/span classification - #2

Merged
jogonba2 merged 7 commits into
mainfrom
feature/span-classification
Oct 27, 2026
Merged

jogonba2 merged 7 commits into
mainfrom
feature/span-classification

Conversation

@jogonba2

@jogonba2 jogonba2 commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

This PR adds:

  • Support for span text classification. For training, token embeddings are computed and label tuning matches label descriptions to span embeddings (average token embeddings from their tokens) belonging to the provided labels.
  • Hard distillation of span labels from LLMs.
  • Support generating explanations (reasoning=True) before generating silver labels with teachers in hard distillation.
  • A bit more structure into the package to support additional modules within specific teachers/pipelines/encoders.
  • Get out examples from the src folder.
  • Extended the README to explain text span classification.
  • All tests passing and examples working.
  • Bump version to 1.7.2

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 85.03937% with 57 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.48%. Comparing base (4191cb9) to head (bd275d0).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/delt/teachers/utils.py 31.81% 15 Missing ⚠️
src/delt/pipelines/text/span/span.py 87.50% 10 Missing ⚠️
src/delt/teachers/text/text/jev/jev.py 47.05% 9 Missing ⚠️
src/delt/teachers/text/span/llm/llm.py 46.15% 7 Missing ⚠️
src/delt/common/prompting.py 25.00% 6 Missing ⚠️
src/delt/teachers/text/span/utils.py 50.00% 4 Missing ⚠️
src/delt/teachers/text/text/jev/utils.py 55.55% 4 Missing ⚠️
src/delt/teachers/text/span/base.py 87.50% 1 Missing ⚠️
tests/test_span_pipeline.py 98.43% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #2      +/-   ##
==========================================
+ Coverage   80.31%   82.48%   +2.16%     
==========================================
  Files          51       79      +28     
  Lines        1077     1370     +293     
==========================================
+ Hits          865     1130     +265     
- Misses        212      240      +28     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jogonba2
jogonba2 merged commit 30cb0f4 into main Oct 27, 2026
1 check passed
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.

2 participants