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

BertProcessing add_prefix_space, trim_offsets #582

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

Conversation

shavit
Copy link

@shavit shavit commented Feb 10, 2024

Use config properties to trim space from tokens

https://github.com/xenova/transformers.js/blob/main/src/tokenizers.js#L1626

Use config properties to trim space from tokens
@xenova
Copy link
Owner

xenova commented Feb 10, 2024

Thanks for working on this! Do you maybe know of any model(s) and input for which these changes correct the current behaviour? The current set of supported models and unit tests do not have any issues with this.

@shavit
Copy link
Author

shavit commented Feb 10, 2024

No, I just saw that this is missing from RobertaProcessing.

@shavit shavit marked this pull request as ready for review February 17, 2024 12:28
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.

None yet

2 participants