Skip to content

Commit

Permalink
hmm
Browse files Browse the repository at this point in the history
  • Loading branch information
Parry-Parry committed Nov 6, 2024
1 parent c7e4d0a commit f456eee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rankers/datasets/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self,
self.__post_init__()

def __post_init__(self):

assert self.corpus is not None, "Cannot instantiate a text-based dataset without a lookup"
for column in 'query_id', 'doc_id_a', 'doc_id_b':
if column not in self.training_dataset.columns: raise ValueError(f"Format not recognised, Column '{column}' not found in triples dataframe")
self.docs = pd.DataFrame(self.corpus.docs_iter()).set_index("doc_id")["text"].to_dict()
Expand Down

0 comments on commit f456eee

Please sign in to comment.