We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Fast:
>>> from transformers import AutoTokenizer >>> t = AutoTokenizer.from_pretrained("google-bert/bert-base-uncased") >>> t.decode(t.encode("l'eure"), skip_special_tokens=True) "l ' eure"
Slow:
>>> t = AutoTokenizer.from_pretrained("google-bert/bert-base-uncased", use_fast=False) >>> t.decode(t.encode("l'eure"), skip_special_tokens=True) "l'eure"
I believe the "slow" interpretation to be the correct one. I tried to check the reference implementation but saw no decoding code.
Maybe related (thanks @xenova for the pointer): huggingface/transformers#31938 (defaults Bert to clean_up_tokenization_spaces=True)
clean_up_tokenization_spaces=True
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Fast:
Slow:
I believe the "slow" interpretation to be the correct one. I tried to check the reference implementation but saw no decoding code.
Maybe related (thanks @xenova for the pointer): huggingface/transformers#31938 (defaults Bert to
clean_up_tokenization_spaces=True
)The text was updated successfully, but these errors were encountered: