Datasets:

License:
Mofe commited on
Commit
c82f912
·
1 Parent(s): 2088dbb

Update ciral.py

Browse files
Files changed (1) hide show
  1. ciral.py +1 -1
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']: (doc['title'], 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)
 
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)