smallv0221
commited on
Commit
•
142e3e3
1
Parent(s):
9208677
Update dureader_robust.py
Browse files- dureader_robust.py +6 -2
dureader_robust.py
CHANGED
@@ -26,6 +26,12 @@ from datasets.tasks import QuestionAnsweringExtractive
|
|
26 |
|
27 |
logger = datasets.logging.get_logger(__name__)
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
_URL = "https://bj.bcebos.com/paddlenlp/datasets/dureader_robust-data.tar.gz"
|
31 |
|
@@ -43,7 +49,6 @@ class DureaderRobustConfig(datasets.BuilderConfig):
|
|
43 |
|
44 |
|
45 |
class DureaderRobust(datasets.GeneratorBasedBuilder):
|
46 |
-
|
47 |
BUILDER_CONFIGS = [
|
48 |
DureaderRobustConfig(
|
49 |
name="plain_text",
|
@@ -73,7 +78,6 @@ class DureaderRobust(datasets.GeneratorBasedBuilder):
|
|
73 |
# and context as input).
|
74 |
supervised_keys=None,
|
75 |
homepage="https://arxiv.org/abs/2004.11142",
|
76 |
-
citation=_CITATION,
|
77 |
task_templates=[
|
78 |
QuestionAnsweringExtractive(
|
79 |
question_column="question", context_column="context", answers_column="answers"
|
|
|
26 |
|
27 |
logger = datasets.logging.get_logger(__name__)
|
28 |
|
29 |
+
_DESCRIPTION = """\
|
30 |
+
DureaderRobust is a chinese reading comprehension \
|
31 |
+
dataset, designed to evaluate the MRC models from \
|
32 |
+
three aspects: over-sensitivity, over-stability \
|
33 |
+
and generalization.
|
34 |
+
"""
|
35 |
|
36 |
_URL = "https://bj.bcebos.com/paddlenlp/datasets/dureader_robust-data.tar.gz"
|
37 |
|
|
|
49 |
|
50 |
|
51 |
class DureaderRobust(datasets.GeneratorBasedBuilder):
|
|
|
52 |
BUILDER_CONFIGS = [
|
53 |
DureaderRobustConfig(
|
54 |
name="plain_text",
|
|
|
78 |
# and context as input).
|
79 |
supervised_keys=None,
|
80 |
homepage="https://arxiv.org/abs/2004.11142",
|
|
|
81 |
task_templates=[
|
82 |
QuestionAnsweringExtractive(
|
83 |
question_column="question", context_column="context", answers_column="answers"
|