Skip to content

fix: issue with unk in unigram #227

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

Merged
merged 1 commit into from
Apr 28, 2025
Merged

fix: issue with unk in unigram #227

merged 1 commit into from
Apr 28, 2025

Conversation

stephantul
Copy link
Member

The unk token wasn't correctly set for unigram. This led to correct initialization, but would break if an unk was ever encountered. This is rare, which is why I didn't spot it before.

Copy link

codecov bot commented Apr 28, 2025

Codecov Report

Attention: Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
model2vec/distill/tokenizer.py 60.00% 2 Missing ⚠️
Files with missing lines Coverage Δ
model2vec/distill/tokenizer.py 56.66% <60.00%> (+1.34%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stephantul stephantul requested a review from Pringled April 28, 2025 10:28
@stephantul stephantul merged commit a6ca71a into main Apr 28, 2025
5 of 6 checks passed
@stephantul stephantul deleted the fix-unk-issue-unigram branch April 28, 2025 15:55
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