Skip to content

ImportError: cannot import name 'pyutils' from 'pyserini.index' #1341

Answered by lintool
XY2323819551 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @XY2323819551 - the class in question has been refactored... try:

>>> from pyserini.index.lucene import IndexReader
>>> reader = IndexReader.from_prebuilt_index('robust04')
...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@XY2323819551
Comment options

Answer selected by lintool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1339 on November 11, 2022 11:21.