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

Escape special tokens #26468

Closed
imoneoi opened this issue Sep 28, 2023 · 2 comments
Closed

Escape special tokens #26468

imoneoi opened this issue Sep 28, 2023 · 2 comments

Comments

@imoneoi
Copy link

imoneoi commented Sep 28, 2023

Feature request

Can we introduce escape special tokens functionality in Tokenizer and TokenizerFast to ignore special tokens (treat them as plain text)?

Motivation

tiktoken has an allowed special token option. This enables the processing of arbitrary user input, which may accidentally include special tokens.

Your contribution

Nothing yet

@ArthurZucker
Copy link
Collaborator

This is already supported by split_special_tokens and is a duplicate of the issue in tokenizers.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

@github-actions github-actions bot closed this as completed Nov 6, 2023
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

No branches or pull requests

2 participants