-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
A AttributeError exception is raised when trying to access dataset.queries_dict()
Affected dataset(s)
I have tried with "disks45/nocr/trec-robust-2004" and "msmarco-passage-v2/trec-dl-2022"
To Reproduce
import ir_datasets
dataset = ir_datasets.load("msmarco-passage-v2/trec-dl-2022")
dataset.queries_dict()
Expected behavior
It should return a dict with the queries
Additional context
I have taken a look at the code and think the problem is formats/base.py, line 188. It should be x.queries_iter() instead of x.iter_queries()
ir_datasets/ir_datasets/formats/base.py
Line 188 in 52fc33c
BaseQueries.EXTENSIONS['queries_dict'] = lambda x: {q.query_id: q for q in x.iter_queries()} |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working