Skip to content

score function failed with the new transformers v4.0.0 #85

Closed
@kirzharov

Description

@kirzharov

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_score version: 0.3.6
  • transformers version: 4.0.0
  • Python version: 3.8

Context:

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions