Skip to content

Commit

Permalink
fixing doc_store
Browse files Browse the repository at this point in the history
  • Loading branch information
Parry-Parry committed Nov 12, 2024
1 parent 464daaf commit e72b792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rankers/datasets/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from .corpus import Corpus

class LazyTextLoader:
def __init__(self, docstore : callable) -> None:
self.docstore = docstore
def __init__(self, corpus : Union[Corpus, irds.Dataset]) -> None:
self.docstore = corpus.docs_store()

def __getitem__(self, doc_id):
if type == list:
Expand Down

0 comments on commit e72b792

Please sign in to comment.