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

ImportError: cannot import name 'JLuceneSearcherResult' from 'pyserini.search' (/usr/local/lib/python3.10/dist-packages/pyserini/search/__init__.py) #332

Open
SamiKhan-cse19 opened this issue Feb 8, 2024 · 0 comments

Comments

@SamiKhan-cse19
Copy link

Error upon installation from git repo.

Installation:

git clone --recursive https://github.com/castorini/pygaggle.git
cd pygaggle/
pip install -r requirements.txt
pip install -e /content/pygaggle

Code:

from pygaggle.rerank.base import Query, Text
from pygaggle.rerank.transformer import MonoT5

reranker =  MonoT5()

Output:
image

I managed to run by install pyserini==0.23.0. It seems the requirements.txt does not list an upper bound for pyserini and the latest version 0.24.0 causes this problem. Please provide an upper bound or change the imports in the source code.

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

1 participant