(self, config)
| 168 | |
| 169 | class BM25Retriever(BaseRetriever): |
| 170 | def __init__(self, config): |
| 171 | self.qid2goldid = load_gold(config.trec_path) |
| 172 | self.searcher = LuceneSearcher(config.index_path) |
| 173 | self.searcher.set_bm25(config.bm25_k1, config.bm25_b) |
| 174 | |
| 175 | def _get_gold_rank(self, candidate_ids: List[List[str]], query_ids_batch: List[str]): |
| 176 | gold_ranks = [] |
nothing calls this directly
no test coverage detected