ALBEF
ALBEF copied to clipboard
TypeError: add_code_sample_docstrings() got an unexpected keyword argument "tokenizer_class"
Hello, when run this code, I found a problem in "xbert.py", TypeError: add_code_sample_docstrings() got an unexpected keyword argument "tokenizer_class", could you please tell me why?
可能是transformer版本太高,试试降低一下版本
It is most likely due to a transformer version mismatch
Solution for python 3.7:
pip install transformers==4.8.1
Solve it by updating the argument according to the following: hugging face transformer update
Replacing tokenizer_class
with processor_class
within models/xbert.py
works for me.