Skip to content

Commit b5f93f8

Browse files
committed
start to develop trec-tot-2025
1 parent d9b3049 commit b5f93f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ir_datasets/datasets/trec_tot_2025.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ def __init__(self, json_doc):
3535
def default_text(self):
3636
return self.title + " " + self.text
3737

38+
def _asdict(self):
39+
return {"docno": self.doc_id, "text": self.default_text()}
40+
3841
class JsonlWithOffsetsDocsStore(Docstore):
3942
def __init__(self, docs, offsets):
4043
self.__docs = docs

0 commit comments

Comments
 (0)