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

tokenize_document: set text_pair if text is already provided #317

Merged
merged 5 commits into from
Aug 25, 2023

Conversation

ArneBinder
Copy link
Owner

@ArneBinder ArneBinder commented Aug 24, 2023

useful e.g. for question answering where we want to encode the question in the first sequence (text parameter) and the main text aka context in the second sequence (text_pair parameter)

Note: This also adds the tokenizer encoding as tokenizer_encoding to the metadata of the respective document.

@ArneBinder ArneBinder added the enhancement New feature or request label Aug 25, 2023
@ArneBinder ArneBinder changed the title set text_pair if text is already provided tokenize_document: set text_pair if text is already provided Aug 25, 2023
@ArneBinder ArneBinder merged commit e85e140 into main Aug 25, 2023
6 checks passed
@ArneBinder ArneBinder deleted the tokenize_with_text_pair branch August 25, 2023 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant