Datasets:
Update zero_scrolls.py
Browse files- zero_scrolls.py +29 -18
zero_scrolls.py
CHANGED
@@ -7,13 +7,24 @@ import os
|
|
7 |
import datasets
|
8 |
|
9 |
_ZERO_SCROLLS_CITATION = """
|
10 |
-
@
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
}
|
18 |
Note that each ZeroSCROLLS task has its own citation. Please see the source to
|
19 |
get the correct citation for each one.
|
@@ -356,7 +367,7 @@ class QualityConfig(ZeroScrollsConfig):
|
|
356 |
|
357 |
|
358 |
class ZeroScrolls(datasets.GeneratorBasedBuilder):
|
359 |
-
"""The
|
360 |
|
361 |
features = list(FEATURE_TO_TYPE.keys())
|
362 |
features_with_multiple_inder_docs = features + ["inner_docs_start_indices"]
|
@@ -366,7 +377,7 @@ class ZeroScrolls(datasets.GeneratorBasedBuilder):
|
|
366 |
name="summ_screen_fd",
|
367 |
description=_SUMM_SCREEN_DESCRIPTION,
|
368 |
features=features,
|
369 |
-
data_url="https://
|
370 |
citation=_SUMM_SCREEN_CITATION,
|
371 |
url="https://github.com/mingdachen/SummScreen",
|
372 |
),
|
@@ -374,7 +385,7 @@ class ZeroScrolls(datasets.GeneratorBasedBuilder):
|
|
374 |
name="qasper",
|
375 |
description=_QASPER_DESCRIPTION,
|
376 |
features=features,
|
377 |
-
data_url="https://
|
378 |
citation=_QASPER_CITATION,
|
379 |
url="https://allenai.org/project/qasper",
|
380 |
),
|
@@ -382,7 +393,7 @@ class ZeroScrolls(datasets.GeneratorBasedBuilder):
|
|
382 |
name="qmsum",
|
383 |
description=_QMSUM_DESCRIPTION,
|
384 |
features=features,
|
385 |
-
data_url="https://
|
386 |
citation=_QMSUM_CITATION,
|
387 |
url="https://github.com/Yale-LILY/QMSum",
|
388 |
),
|
@@ -390,7 +401,7 @@ class ZeroScrolls(datasets.GeneratorBasedBuilder):
|
|
390 |
name="narrative_qa",
|
391 |
description=_NARRATIVE_QA_DESCRIPTION,
|
392 |
features=features,
|
393 |
-
data_url="https://
|
394 |
citation=_NARRATIVE_QA_CITATION,
|
395 |
url="https://deepmind.com/research/publications/narrativeqa-reading-comprehension-challenge",
|
396 |
),
|
@@ -398,7 +409,7 @@ class ZeroScrolls(datasets.GeneratorBasedBuilder):
|
|
398 |
name="gov_report",
|
399 |
description=_GOV_REPORT_DESCRIPTION,
|
400 |
features=features,
|
401 |
-
data_url="https://
|
402 |
citation=_GOV_REPORT_CITATION,
|
403 |
url="https://gov-report-data.github.io/",
|
404 |
),
|
@@ -406,7 +417,7 @@ class ZeroScrolls(datasets.GeneratorBasedBuilder):
|
|
406 |
name="quality",
|
407 |
description=_QUALITY_DESCRIPTION,
|
408 |
features=features,
|
409 |
-
data_url="https://
|
410 |
citation=_QUALITY_CITATION,
|
411 |
url="https://github.com/nyu-mll/quality",
|
412 |
),
|
@@ -414,7 +425,7 @@ class ZeroScrolls(datasets.GeneratorBasedBuilder):
|
|
414 |
name="squality",
|
415 |
description=_SQUALITY_DESCRIPTION,
|
416 |
features=features,
|
417 |
-
data_url="https://
|
418 |
citation=_SQUALITY_CITATION,
|
419 |
url="https://github.com/nyu-mll/SQuALITY",
|
420 |
),
|
@@ -422,7 +433,7 @@ class ZeroScrolls(datasets.GeneratorBasedBuilder):
|
|
422 |
name="musique",
|
423 |
description=_MUSIQUE_DESCRIPTION,
|
424 |
features=features_with_multiple_inder_docs,
|
425 |
-
data_url="https://
|
426 |
citation=_MUSIQUE_CITATION,
|
427 |
url="https://github.com/stonybrooknlp/musique",
|
428 |
),
|
@@ -430,7 +441,7 @@ class ZeroScrolls(datasets.GeneratorBasedBuilder):
|
|
430 |
name="space_digest",
|
431 |
description=_SPACE_DIGEST_DESCRIPTION,
|
432 |
features=features_with_multiple_inder_docs,
|
433 |
-
data_url="https://
|
434 |
citation=_SPACE_CITATION,
|
435 |
url="https://github.com/stangelid/qt",
|
436 |
),
|
@@ -438,7 +449,7 @@ class ZeroScrolls(datasets.GeneratorBasedBuilder):
|
|
438 |
name="book_sum_sort",
|
439 |
description=_BOOK_SUM_DESCRIPTION,
|
440 |
features=features_with_multiple_inder_docs,
|
441 |
-
data_url="https://
|
442 |
citation=_BOOK_SUM_CITATION,
|
443 |
url="https://github.com/salesforce/booksum",
|
444 |
),
|
|
|
7 |
import datasets
|
8 |
|
9 |
_ZERO_SCROLLS_CITATION = """
|
10 |
+
@inproceedings{shaham-etal-2023-zeroscrolls,
|
11 |
+
title = "{Z}ero{SCROLLS}: A Zero-Shot Benchmark for Long Text Understanding",
|
12 |
+
author = "Shaham, Uri and
|
13 |
+
Ivgi, Maor and
|
14 |
+
Efrat, Avia and
|
15 |
+
Berant, Jonathan and
|
16 |
+
Levy, Omer",
|
17 |
+
editor = "Bouamor, Houda and
|
18 |
+
Pino, Juan and
|
19 |
+
Bali, Kalika",
|
20 |
+
booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2023",
|
21 |
+
month = dec,
|
22 |
+
year = "2023",
|
23 |
+
address = "Singapore",
|
24 |
+
publisher = "Association for Computational Linguistics",
|
25 |
+
url = "https://aclanthology.org/2023.findings-emnlp.536",
|
26 |
+
doi = "10.18653/v1/2023.findings-emnlp.536",
|
27 |
+
pages = "7977--7989"
|
28 |
}
|
29 |
Note that each ZeroSCROLLS task has its own citation. Please see the source to
|
30 |
get the correct citation for each one.
|
|
|
367 |
|
368 |
|
369 |
class ZeroScrolls(datasets.GeneratorBasedBuilder):
|
370 |
+
"""The ZerpSCROLLS benchmark."""
|
371 |
|
372 |
features = list(FEATURE_TO_TYPE.keys())
|
373 |
features_with_multiple_inder_docs = features + ["inner_docs_start_indices"]
|
|
|
377 |
name="summ_screen_fd",
|
378 |
description=_SUMM_SCREEN_DESCRIPTION,
|
379 |
features=features,
|
380 |
+
data_url="https://huggingface.co/datasets/tau/zero_scrolls/resolve/main/summ_screen_fd.zip",
|
381 |
citation=_SUMM_SCREEN_CITATION,
|
382 |
url="https://github.com/mingdachen/SummScreen",
|
383 |
),
|
|
|
385 |
name="qasper",
|
386 |
description=_QASPER_DESCRIPTION,
|
387 |
features=features,
|
388 |
+
data_url="https://huggingface.co/datasets/tau/zero_scrolls/resolve/main/qasper.zip",
|
389 |
citation=_QASPER_CITATION,
|
390 |
url="https://allenai.org/project/qasper",
|
391 |
),
|
|
|
393 |
name="qmsum",
|
394 |
description=_QMSUM_DESCRIPTION,
|
395 |
features=features,
|
396 |
+
data_url="https://huggingface.co/datasets/tau/zero_scrolls/resolve/main/qmsum.zip",
|
397 |
citation=_QMSUM_CITATION,
|
398 |
url="https://github.com/Yale-LILY/QMSum",
|
399 |
),
|
|
|
401 |
name="narrative_qa",
|
402 |
description=_NARRATIVE_QA_DESCRIPTION,
|
403 |
features=features,
|
404 |
+
data_url="https://huggingface.co/datasets/tau/zero_scrolls/resolve/main/narrative_qa.zip",
|
405 |
citation=_NARRATIVE_QA_CITATION,
|
406 |
url="https://deepmind.com/research/publications/narrativeqa-reading-comprehension-challenge",
|
407 |
),
|
|
|
409 |
name="gov_report",
|
410 |
description=_GOV_REPORT_DESCRIPTION,
|
411 |
features=features,
|
412 |
+
data_url="https://huggingface.co/datasets/tau/zero_scrolls/resolve/main/gov_report.zip",
|
413 |
citation=_GOV_REPORT_CITATION,
|
414 |
url="https://gov-report-data.github.io/",
|
415 |
),
|
|
|
417 |
name="quality",
|
418 |
description=_QUALITY_DESCRIPTION,
|
419 |
features=features,
|
420 |
+
data_url="https://huggingface.co/datasets/tau/zero_scrolls/resolve/main/quality.zip",
|
421 |
citation=_QUALITY_CITATION,
|
422 |
url="https://github.com/nyu-mll/quality",
|
423 |
),
|
|
|
425 |
name="squality",
|
426 |
description=_SQUALITY_DESCRIPTION,
|
427 |
features=features,
|
428 |
+
data_url="https://huggingface.co/datasets/tau/zero_scrolls/resolve/main/squality.zip",
|
429 |
citation=_SQUALITY_CITATION,
|
430 |
url="https://github.com/nyu-mll/SQuALITY",
|
431 |
),
|
|
|
433 |
name="musique",
|
434 |
description=_MUSIQUE_DESCRIPTION,
|
435 |
features=features_with_multiple_inder_docs,
|
436 |
+
data_url="https://huggingface.co/datasets/tau/zero_scrolls/resolve/main/musique.zip",
|
437 |
citation=_MUSIQUE_CITATION,
|
438 |
url="https://github.com/stonybrooknlp/musique",
|
439 |
),
|
|
|
441 |
name="space_digest",
|
442 |
description=_SPACE_DIGEST_DESCRIPTION,
|
443 |
features=features_with_multiple_inder_docs,
|
444 |
+
data_url="https://huggingface.co/datasets/tau/zero_scrolls/resolve/main/space_digest.zip",
|
445 |
citation=_SPACE_CITATION,
|
446 |
url="https://github.com/stangelid/qt",
|
447 |
),
|
|
|
449 |
name="book_sum_sort",
|
450 |
description=_BOOK_SUM_DESCRIPTION,
|
451 |
features=features_with_multiple_inder_docs,
|
452 |
+
data_url="https://huggingface.co/datasets/tau/zero_scrolls/resolve/main/book_sum_sort.zip",
|
453 |
citation=_BOOK_SUM_CITATION,
|
454 |
url="https://github.com/salesforce/booksum",
|
455 |
),
|