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

Add support for Transformers and TikToken #4

Merged
merged 6 commits into from
Nov 6, 2024
Merged

Conversation

bhavnicksm
Copy link
Collaborator

This pull request includes significant updates to the chonkie library, focusing on enhancing tokenizer support and improving chunker initialization. The most important changes include adding support for multiple tokenizer backends, updating chunker classes to use a unified initialization method, and adding new tests for these changes.

Enhancements to tokenizer support:

  • src/chonkie/chunker/base.py: Added support for multiple tokenizer backends (transformers, tokenizers, tiktoken) and methods for encoding text and batches of text.
  • README.md: Updated the example to include importing and initializing different tokenizers.

Updates to chunker classes:

Additional changes:

@bhavnicksm bhavnicksm merged commit 6c48d37 into main Nov 6, 2024
1 check failed
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