index_reader.doc_contents(key) return None while index_reader.doc_raw(key) and index_reader.doc(key) can retrieve document #1743
Answered
by
lintool
zhiyuanpeng
asked this question in
Q&A
-
Hi there, After I build index on my documents with command:
I try to check the analyzed documents by:
anserini_doc and anserini_raw are not None, but anserini_indexed is None. It seems that the command I used to build the index doesn't keep the analyzed documents. I find the options for building index in this page do not have relevant options. How to keep the analyzed documents when building the index? Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
lintool
Dec 10, 2023
Replies: 1 comment 8 replies
-
Try: https://github.com/castorini/pyserini/blob/master/docs/usage-fetch.md |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you sure you've read the docs? https://github.com/castorini/pyserini/blob/master/docs/usage-indexreader.md#how-do-i-access-and-manipulate-term-vectors
Is this what you are looking for?