-
Notifications
You must be signed in to change notification settings - Fork 239
Closed
Description
What I did:
Try to get scores with score function
Actual result:
Get the error: 'RobertaTokenizerFast' object has no attribute 'max_len'
Expected result:
score function work as before and get results
More details:
bert_scoreversion:0.3.6transformersversion:4.0.0- Python version:
3.8
Context:
- Release notes for the new
transformersversion: https://github.com/huggingface/transformers/releases/tag/v4.0.0 - PR with removing
max_lenattribute fromtransformerspackage: Remove deprecated huggingface/transformers#8604
Previous warning:
The max_len attribute has been deprecated and will be removed in a future version, use model_max_length instead.
Metadata
Metadata
Assignees
Labels
No labels