capreolus.index.anserini
¶
Module Contents¶
Classes¶
Base class for Index modules. The purpose of an Index module is to represent an inverted index that can be queried with a |
Attributes¶
- class capreolus.index.anserini.AnseriniIndex(config=None, provide=None, share_dependency_objects=False, build=True)[source]¶
Bases:
capreolus.index.Index
Base class for Index modules. The purpose of an Index module is to represent an inverted index that can be queried with a
Searcher
module and used to obtain documents and collection statistics.- Modules should provide:
a
_create_index
method that creates an index on theCollection
dependencya
get_doc(docid)
and aget_docs(docid)
methoda
get_df(term)
method