Chenghao Yang
commited on
Commit
·
95a2fd1
1
Parent(s):
8654c90
fix version problem in loading scripts
Browse files- quality.py +3 -3
quality.py
CHANGED
@@ -4,7 +4,7 @@ import os
|
|
4 |
import datasets
|
5 |
from datasets import DatasetInfo
|
6 |
|
7 |
-
_URL = "
|
8 |
_QUALITY_CITATION = """
|
9 |
@inproceedings{pang-etal-2022-quality,
|
10 |
title = "{Q}u{ALITY}: Question Answering with Long Input Texts, Yes!",
|
@@ -45,7 +45,7 @@ class Quality(datasets.GeneratorBasedBuilder):
|
|
45 |
QualityConfig(
|
46 |
name=f"dpr-first-{x}%-maxlen-150",
|
47 |
features=['question', "context", "option"],
|
48 |
-
data_url=
|
49 |
citation=_QUALITY_CITATION,
|
50 |
description=f"Using DPR (NYU-version) to summarize first {x}% of the document within 150 max tokens"
|
51 |
) for x in range(0, 20)
|
@@ -54,7 +54,7 @@ class Quality(datasets.GeneratorBasedBuilder):
|
|
54 |
QualityConfig(
|
55 |
name=f"dpr-rest-{x}%-maxlen-{maxlen}",
|
56 |
features=['question', "context", "option", "output"],
|
57 |
-
data_url=
|
58 |
citation=_QUALITY_CITATION,
|
59 |
description=f"Using DPR (NYU-version) to summarize rest {x}% of the document within {maxlen} max tokens"
|
60 |
) for x in range(0, 20)
|
|
|
4 |
import datasets
|
5 |
from datasets import DatasetInfo
|
6 |
|
7 |
+
_URL = ""
|
8 |
_QUALITY_CITATION = """
|
9 |
@inproceedings{pang-etal-2022-quality,
|
10 |
title = "{Q}u{ALITY}: Question Answering with Long Input Texts, Yes!",
|
|
|
45 |
QualityConfig(
|
46 |
name=f"dpr-first-{x}%-maxlen-150",
|
47 |
features=['question', "context", "option"],
|
48 |
+
data_url=f"extractive_dpr_agent_first_20splits_maxlen150/agent_{x}.zip",
|
49 |
citation=_QUALITY_CITATION,
|
50 |
description=f"Using DPR (NYU-version) to summarize first {x}% of the document within 150 max tokens"
|
51 |
) for x in range(0, 20)
|
|
|
54 |
QualityConfig(
|
55 |
name=f"dpr-rest-{x}%-maxlen-{maxlen}",
|
56 |
features=['question', "context", "option", "output"],
|
57 |
+
data_url=f"extractive_dpr_agent_rest_20splits_maxlen{maxlen}/agent_{x}.zip",
|
58 |
citation=_QUALITY_CITATION,
|
59 |
description=f"Using DPR (NYU-version) to summarize rest {x}% of the document within {maxlen} max tokens"
|
60 |
) for x in range(0, 20)
|