Markus28 commited on
Commit
a7d7486
1 Parent(s): ee75274

fixed syntax error

Browse files
Files changed (1) hide show
  1. spanish_passage_retrieval.py +1 -1
spanish_passage_retrieval.py CHANGED
@@ -110,7 +110,7 @@ class PRES(datasets.GeneratorBasedBuilder):
110
  topic = annotated_topic['number']
111
  for annotation in annotated_topic['annotations']:
112
  passage_id = f'doc_{annotation["docNo"]}_{annotation["start"]}_{annotation["end"]}'
113
- doc_id = f'doc_{annotation["docNo"]}
114
  corpus_sentences.append({'_id': passage_id, 'text': annotation['text']})
115
  for qid in topic_to_queries[topic]:
116
  qrels_s2s[qid].append(passage_id)
 
110
  topic = annotated_topic['number']
111
  for annotation in annotated_topic['annotations']:
112
  passage_id = f'doc_{annotation["docNo"]}_{annotation["start"]}_{annotation["end"]}'
113
+ doc_id = f'doc_{annotation["docNo"]}'
114
  corpus_sentences.append({'_id': passage_id, 'text': annotation['text']})
115
  for qid in topic_to_queries[topic]:
116
  qrels_s2s[qid].append(passage_id)