We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried to follow the tutorial at https://github.com/castorini/pyserini/blob/master/docs/usage-search.md, but when I run the statement
hits[0].raw,
the system prompts AttributeError: 'io.anserini.search.ScoredDoc' object has no attribute 'raw'.
AttributeError: 'io.anserini.search.ScoredDoc' object has no attribute 'raw'
I am using the index msmarco-v1-passage, which should have included the raw text. Does anyone know the reason?
The text was updated successfully, but these errors were encountered:
Hi @nactran - see #1762 (comment) - although the documentation does need to be updated.
If you can send a PR to fix, that'd be greatly appreciated.
Sorry, something went wrong.
try this ,it can work
hits[0].lucene_document.get('raw')
No branches or pull requests
I tried to follow the tutorial at https://github.com/castorini/pyserini/blob/master/docs/usage-search.md, but when I run the statement
the system prompts
AttributeError: 'io.anserini.search.ScoredDoc' object has no attribute 'raw'
.I am using the index msmarco-v1-passage, which should have included the raw text. Does anyone know the reason?
The text was updated successfully, but these errors were encountered: