Open n8stringham opened 4 years ago
My guess is that you have an older version of transformers installed that uses a different interface for that function. Here's the version info I used to run the code:
$ python3
>>> import transformers
>>> import torch
>>> import tensorboard
>>> transformers.__version__
'2.8.0'
>>> torch.__version__
'1.5.0'
>>> tensorboard.__version__
'2.2.1'
Yep, I just had an older version of transformers. Thanks!
I've copied over the transformers_tutorial.py file to my computer, but can't seem to get it to run. After commenting out the first
crash
on line 38 and running I get the following error message:Looks like it has to do with the parameters for the
tokenizer.encode_plus()
function, but I'm not sure how to fix this error.