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

Fix #35447 Tokenizer does not split text according to newly added input tokens #35455

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jiongjiongli
Copy link

Fix Bug

#35447 : Tokenizer does not split text according to newly added input tokens

Resolution

Method Trie.split: Add steps to ignore partial match that should be removed

@ArthurZucker and @itazap

@jiongjiongli jiongjiongli force-pushed the fix-tokenizer-text-split branch from bbb1626 to cf128ad Compare December 31, 2024 01:17
…newly added input tokens

The root reason is Trie.split method didn't ignore partial match that should be removed

Add test case to token split
@jiongjiongli jiongjiongli force-pushed the fix-tokenizer-text-split branch from cf128ad to fbd9036 Compare January 1, 2025 00:19
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.

1 participant