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

deprecated reference tokenizer.max_len in glue.py (PR #10220) #10372

Closed
poedator opened this issue Feb 24, 2021 · 1 comment
Closed

deprecated reference tokenizer.max_len in glue.py (PR #10220) #10372

poedator opened this issue Feb 24, 2021 · 1 comment

Comments

@poedator
Copy link
Contributor

There is a deprecated reference to tokenizer.max_len with tokenizer.model_max_length - similar to issue 8739 and PR 8604.
See error example in Colab here. it causes AttributeError: 'BertTokenizer' object has no attribute 'max_len'
The error happens when glue_convert_examples_to_features() is called without max_length parameter specified. In that case line 119 with wrong reference gets called.

I submitted a simple PR #10220. It should be able to fix this issue.

@LysandreJik
Copy link
Member

Thanks for opening a PR which fixes the issue! I just merged it.

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

2 participants