fixed syntax error
Browse files
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)
|