Fixed inconsistency in several fast tokenizers#26561
Fixed inconsistency in several fast tokenizers#26561ArthurZucker merged 1 commit intohuggingface:mainfrom Towdo:fix_bert_tokenizer
Conversation
ArthurZucker
left a comment
There was a problem hiding this comment.
Thanks a lot for these changes! Let's add a small test in the test_tokenization_common 😉
I changed the test_build_inputs_with_special_tokens to test this edge case :) |
|
Thanks 😉 |
ArthurZucker
left a comment
There was a problem hiding this comment.
Very good thanks, I would just like 1 hard coded expected value, otherwise if both are broken we are not testing anything! Thanks for the fix
Can you give me some guidance on how to do this? |
|
Oups my bad on this one! |
Fixed case where behavior of BertTokenizer and BertTokenizerFast is different.
An empty list will be evaluated to
Falsebut not tois None.(I mistakenly closed my first merge request)
Fixes #26123
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
@ArthurZucker