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

Unexpected keyword argument 'max_len' #5

Open
demongolem-biz opened this issue Jan 6, 2022 · 0 comments
Open

Unexpected keyword argument 'max_len' #5

demongolem-biz opened this issue Jan 6, 2022 · 0 comments

Comments

@demongolem-biz
Copy link

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'

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

No branches or pull requests

1 participant