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

make biochatter to support tokens splitter #4

Merged
merged 8 commits into from
Jul 19, 2023
Merged

make biochatter to support tokens splitter #4

merged 8 commits into from
Jul 19, 2023

Conversation

fengsh27
Copy link
Collaborator

@fengsh27 fengsh27 commented Jul 12, 2023

Abstract

This submission added tokens splitter to DocumentEmbedder for issue #3. For detailed information, please refer to split by tokens documentation.

To enable token splitter feature, it is necessary to deactivate DocumentEmbedder.split_by_characters and better to pass model name to DocumentEmbedder.model_name,

Modules

To support HuggingFace tokenizer, this submission also introduced transformers package.

Tests

3 tests were added for the splitting functionality.

Copy link
Contributor

@slobentanzer slobentanzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, all functional!

@slobentanzer slobentanzer merged commit 55e4a99 into biocypher:main Jul 19, 2023
slobentanzer pushed a commit that referenced this pull request Jun 13, 2024
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