capreolus.index

Package Contents

Classes

Index()
AnseriniIndex()
capreolus.index.logger[source]
capreolus.index.MAX_THREADS[source]
class capreolus.index.Index[source]

Bases: profane.ModuleBase

module_type = index[source]
dependencies[source]
get_index_path(self)[source]
exists(self)[source]
create_index(self)[source]
get_doc(self, doc_id)[source]
get_docs(self, doc_ids)[source]
class capreolus.index.AnseriniIndex[source]

Bases: capreolus.index.Index

module_name = anserini[source]
config_spec[source]
get_docs(self, doc_ids)[source]
get_doc(self, docid)[source]
get_df(self, term)[source]
get_idf(self, term)[source]

BM25’s IDF with a floor of 0

open(self)[source]