crystina-z
commited on
Commit
•
2d7c1b6
1
Parent(s):
ee81d62
Update miracl.py
Browse files
miracl.py
CHANGED
@@ -137,7 +137,7 @@ class MIRACL(datasets.GeneratorBasedBuilder):
|
|
137 |
miracl_corpus = datasets.load_dataset('miracl/miracl-corpus', lang)['train']
|
138 |
docid2doc = {doc['docid']: (doc['title'], doc['text']) for doc in miracl_corpus}
|
139 |
|
140 |
-
topic_fn, qrel_fn = filepaths if len(filepaths) == 2 else filepaths[0], None
|
141 |
qid2topic = load_topic(topic_fn)
|
142 |
qrels = load_qrels(qrel_fn)
|
143 |
for qid in qid2topic:
|
|
|
137 |
miracl_corpus = datasets.load_dataset('miracl/miracl-corpus', lang)['train']
|
138 |
docid2doc = {doc['docid']: (doc['title'], doc['text']) for doc in miracl_corpus}
|
139 |
|
140 |
+
topic_fn, qrel_fn = (filepaths) if len(filepaths) == 2 else (filepaths[0], None)
|
141 |
qid2topic = load_topic(topic_fn)
|
142 |
qrels = load_qrels(qrel_fn)
|
143 |
for qid in qid2topic:
|