Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update _impact_searcher.py to use renamed java functions. (#1619)
castorini/anserini@e475cc4 renames `document/documentByField` functions to `doc/doc_by_field`. This cl changes the function calls in _impact_searcher.py to match the new names to fix the following error: ```` File ".../lib/python3.10/site-packages/pyserini/search/lucene/_impact_searcher.py", line 248, in doc lucene_document = self.object.document(docid) AttributeError: 'io.anserini.search.SimpleImpactSearcher' object has no attribute 'document' ```
- Loading branch information