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
Hello,
I am trying to use the XLMRoberta model instead of BERT and I made the following changes to the bert_pretrained.py:
bert_pretrained.py
from transformers import XLMRobertaTokenizer from transformers import XLMRobertaModel, XLMRobertaConfig
However, I get the following error:
super().__init__(vocab=bert_tokenizer.vocab, AttributeError: 'XLMRobertaTokenizer' object has no attribute 'vocab'
Any guidance would be much appreciated!
The text was updated successfully, but these errors were encountered:
Hey @VasilisTz1 ,
Were you able to resolve this issue ?
Sorry, something went wrong.
Hello @ayushbits,
No, there are a couple of changes that should be done I guess.
No branches or pull requests
Hello,
I am trying to use the XLMRoberta model instead of BERT and I made the following changes to the
bert_pretrained.py
:However, I get the following error:
super().__init__(vocab=bert_tokenizer.vocab, AttributeError: 'XLMRobertaTokenizer' object has no attribute 'vocab'
Any guidance would be much appreciated!
The text was updated successfully, but these errors were encountered: