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

Error with max_len property in moverscore_v2 #22

Open
winklerjustine opened this issue Jul 8, 2021 · 2 comments
Open

Error with max_len property in moverscore_v2 #22

winklerjustine opened this issue Jul 8, 2021 · 2 comments

Comments

@winklerjustine
Copy link

Hi everyone,

Using the code from moverscore_v2.py, I'm getting the following error:
AttributeError: 'DistilBertTokenizer' object has no attribute 'max_len'
It looks like the attribute has been renamed.

Thanks so much for this work!

@andyweizhao
Copy link
Collaborator

Hello @winklerjustine,

Yes, the attribute max_len was renamed to model_max_length from the transformers version 3.0.0 onwards. The code runs properly on my side (Transformers==3.1.0).

@xhluca
Copy link

xhluca commented Feb 24, 2022

you can get the updated version of this library by doing this:

pip install git+https://github.com/AIPHES/emnlp19-moverscore.git

This issue is likely caused by the pypi version being outdated.

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

3 participants