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

Fix barthez tokenizer #9562

Merged
merged 1 commit into from
Jan 13, 2021
Merged

Fix barthez tokenizer #9562

merged 1 commit into from
Jan 13, 2021

Conversation

LysandreJik
Copy link
Member

The barthez tokenizer should be put in the "no config tokenizer", as two tokenizers with the same configs can't be put together.

Running the following code works now:

from transformers import AutoTokenizer

barthez_tokenizer = AutoTokenizer.from_pretrained("moussaKam/barthez")

@LysandreJik LysandreJik merged commit 245cdb4 into master Jan 13, 2021
@LysandreJik LysandreJik deleted the fix-barthez-tokenizer branch January 13, 2021 11:24
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.

2 participants