Update config
Browse files
ciral.py
CHANGED
@@ -152,7 +152,7 @@ class CIRAL(datasets.GeneratorBasedBuilder):
|
|
152 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
153 |
def _generate_examples(self, filepaths):
|
154 |
lang = self.config.name
|
155 |
-
corpus = datasets.load_dataset('ciral/ciral-corpus', lang)
|
156 |
docid2doc = {doc['docid']: doc['text'] for doc in corpus}
|
157 |
|
158 |
query_file, qrel_file, pools_file = (filepaths) if len(filepaths) == 3 else (filepaths[0], filepaths[1], None)
|
|
|
152 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
153 |
def _generate_examples(self, filepaths):
|
154 |
lang = self.config.name
|
155 |
+
corpus = datasets.load_dataset('ciral/ciral-corpus', lang)
|
156 |
docid2doc = {doc['docid']: doc['text'] for doc in corpus}
|
157 |
|
158 |
query_file, qrel_file, pools_file = (filepaths) if len(filepaths) == 3 else (filepaths[0], filepaths[1], None)
|