Repository navigation
Extend tokens function with additional tokenizers - #79001
Merged
Merged
Conversation
Contributor
ahmadov
force-pushed
the
ahmadov/tokenizer-cn
branch
from
April 10, 2025 18:27
1c010d7 to
8ced483
Compare
ahmadov
force-pushed
the
ahmadov/tokenizer-cn
branch
2 times, most recently
from
April 16, 2025 15:20
5ec54d8 to
6d6a056
Compare
ahmadov
marked this pull request as ready for review
April 16, 2025 15:20
ahmadov
force-pushed
the
ahmadov/tokenizer-cn
branch
3 times, most recently
from
April 16, 2025 19:17
95bec71 to
f66cfd6
Compare
The Chinese tokenizer is supported via `cppjieba` [[1]]. [1]: https://github.com/yanyiwu/cppjieba
ahmadov
force-pushed
the
ahmadov/tokenizer-cn
branch
from
April 22, 2025 08:44
f66cfd6 to
cf5310a
Compare
rschu1ze
reviewed
May 5, 2025
tokenizeChinese function
ahmadov
force-pushed
the
ahmadov/tokenizer-cn
branch
from
May 7, 2025 11:04
6a842f8 to
d27ec6c
Compare
tokenizeChinese functiontokenize function
ahmadov
force-pushed
the
ahmadov/tokenizer-cn
branch
2 times, most recently
from
May 7, 2025 12:13
6d6f27c to
93d15fc
Compare
- includes style fix
ahmadov
force-pushed
the
ahmadov/tokenizer-cn
branch
3 times, most recently
from
May 9, 2025 18:17
88645f7 to
ce933a9
Compare
tokenize functiontokens function with additional tokenizers
ahmadov
force-pushed
the
ahmadov/tokenizer-cn
branch
from
May 9, 2025 18:49
ce933a9 to
7d0b70b
Compare
- avoid duplication for validating arguments - Make `tokenizer` a drop-in replacement of `tokens` - Add examples into documentation - Split functions into different C++ files for better maintaining - Deprecate `ngrams` function and document it
rschu1ze
reviewed
May 10, 2025
rschu1ze
reviewed
May 10, 2025
rschu1ze
reviewed
May 10, 2025
rschu1ze
reviewed
May 10, 2025
rschu1ze
reviewed
May 10, 2025
rschu1ze
reviewed
May 10, 2025
rschu1ze
reviewed
May 10, 2025
rschu1ze
reviewed
May 10, 2025
rschu1ze
reviewed
May 10, 2025
This comment was marked as resolved.
This comment was marked as resolved.
rschu1ze
approved these changes
May 13, 2025
Member
|
Stateless tests (msan, 3/4):
AST fuzzer (amd_debug): |
Contributor
|
Hi @ahmadov @rschu1ze — while reviewing this PR I found the following:
Happy to discuss — close anything that's wrong or already addressed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extend the existing
tokensfunction with multiple tokenizers support. The supported tokenizers aredefault,noop,ngram. Deprecated the existingngramsfunction in favor oftokensfunction with thengramtokenizer.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
The
tokensfunction was extended to accept an additional "tokenizer" argument plus further tokenizer-specific arguments.