ImportError: cannot import name 'pyutils' from 'pyserini.index' #1341
Answered
by
lintool
XY2323819551
asked this question in
Q&A
-
Hi, I want to convert internal docid to external docid, I find solution in #33. However, I met ImportError when I conducted "from pyserini.index import pyutils". So could you tell me why? Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
lintool
Nov 11, 2022
Replies: 1 comment 1 reply
-
Hi @XY2323819551 - the class in question has been refactored... try: >>> from pyserini.index.lucene import IndexReader
>>> reader = IndexReader.from_prebuilt_index('robust04')
... |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lintool
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @XY2323819551 - the class in question has been refactored... try: