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

CROSS-ENCODER RANK ERROR #2953

Open
riyajatar37003 opened this issue Sep 23, 2024 · 1 comment
Open

CROSS-ENCODER RANK ERROR #2953

riyajatar37003 opened this issue Sep 23, 2024 · 1 comment

Comments

@riyajatar37003
Copy link

AttributeError: 'CrossEncoder' object has no attribute 'rank'

@tomaarsen
Copy link
Collaborator

Hello!

I suspect that your sentence-transformers version is too old. CrossEncoder.rank was introduced in Sentence Transformers v2.5.0, you can install a newer version with:

pip install -U sentence-transformers
  • Tom Aarsen

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