Update ciral.py
Browse files
ciral.py
CHANGED
@@ -130,7 +130,7 @@ class CIRAL(datasets.GeneratorBasedBuilder):
|
|
130 |
def _generate_examples(self, filepaths):
|
131 |
lang = self.config.name
|
132 |
corpus = datasets.load_dataset('ciral/ciral-corpus', lang)['train']
|
133 |
-
docid2doc = {doc['docid']:
|
134 |
|
135 |
query_file, qrel_file = (filepaths) if len(filepaths) == 2 else (filepaths[0], None)
|
136 |
queries = load_queries(query_file)
|
|
|
130 |
def _generate_examples(self, filepaths):
|
131 |
lang = self.config.name
|
132 |
corpus = datasets.load_dataset('ciral/ciral-corpus', lang)['train']
|
133 |
+
docid2doc = {doc['docid']: doc['text'] for doc in corpus}
|
134 |
|
135 |
query_file, qrel_file = (filepaths) if len(filepaths) == 2 else (filepaths[0], None)
|
136 |
queries = load_queries(query_file)
|