Skip to content

Conversation

abuelnasr0
Copy link
Contributor

@abuelnasr0 abuelnasr0 commented Apr 2, 2024

I opened this PR instead of #1447.
This PR:

  1. Adds special_tokens_in_strings Arg to byte_pair_tokenizer.
  2. solves the bug of tokenizing <s> and </s> to the same id.
  3. moves special tokens checking into the base class.

I also renamed unsplittable_tokens to special_tokens to be similar to other tokenizers. not sure if it's necessary.

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