-
Notifications
You must be signed in to change notification settings - Fork 225
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
score
function failed with the new transformers
v4.0.0
#85
Comments
score
function failed with the new transformers
version score
function failed with the new transformers
v4.0.0
For those who will need to use the Just add Link to the comment from similar issue in |
This is resolved. Please use the code in our master branch for now. We will update the pypi package soon. |
What I did:
Try to get scores with
score
functionActual result:
Get the error:
'RobertaTokenizerFast' object has no attribute 'max_len'
Expected result:
score
function work as before and get resultsMore details:
bert_score
version:0.3.6
transformers
version:4.0.0
3.8
Context:
transformers
version: https://github.com/huggingface/transformers/releases/tag/v4.0.0max_len
attribute fromtransformers
package: Remove deprecated huggingface/transformers#8604Previous warning:
The
max_len
attribute has been deprecated and will be removed in a future version, usemodel_max_length
instead.The text was updated successfully, but these errors were encountered: