Skip to content

Conversation

@stephantul
Copy link
Contributor

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.

@codecov
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

3 participants