pytorch_pretrained_BERT icon indicating copy to clipboard operation
pytorch_pretrained_BERT copied to clipboard

Unexpected keyword argument 'max_len'

Open demongolem-biz opened this issue 3 years ago • 0 comments

When I call from_pretrained, the code runs into this error:

File "/home/gregory.werner/.local/lib/python3.6/site-packages/pytorch_pretrained_bert/tokenization.py", line 197, in from_pretrained tokenizer = cls(resolved_vocab_file, *inputs, **kwargs) TypeError: init() got an unexpected keyword argument 'max_len'

demongolem-biz avatar Jan 06 '22 20:01 demongolem-biz