Datasets:
julianrisch
commited on
Commit
•
dd60ab6
1
Parent(s):
f2b3bad
Update germanquad.py
Browse files- germanquad.py +4 -4
germanquad.py
CHANGED
@@ -10,7 +10,7 @@ import datasets
|
|
10 |
logger = datasets.logging.get_logger(__name__)
|
11 |
|
12 |
|
13 |
-
_CITATION = """
|
14 |
@misc{möller2021germanquad,
|
15 |
title={GermanQuAD and GermanDPR: Improving Non-English Question Answering and Passage Retrieval},
|
16 |
author={Timo Möller and Julian Risch and Malte Pietsch},
|
@@ -21,7 +21,7 @@ _CITATION = """\\\\
|
|
21 |
}
|
22 |
"""
|
23 |
|
24 |
-
_DESCRIPTION = """
|
25 |
In order to raise the bar for non-English QA, we are releasing a high-quality, human-labeled German QA dataset consisting of 13 722 questions, incl. a three-way annotated test set.
|
26 |
The creation of GermanQuAD is inspired by insights from existing datasets as well as our labeling experience from several industry projects. We combine the strengths of SQuAD, such as high out-of-domain performance, with self-sufficient questions that contain all relevant information for open-domain QA as in the NaturalQuestions dataset. Our training and test datasets do not overlap like other popular datasets and include complex questions that cannot be answered with a single entity or only a few words.
|
27 |
"""
|
@@ -93,8 +93,8 @@ class GermanDPR(datasets.GeneratorBasedBuilder):
|
|
93 |
downloaded_files = dl_manager.download_and_extract(_URL)
|
94 |
|
95 |
return [
|
96 |
-
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files+"/GermanQuAD_train.json"}),
|
97 |
-
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files+"/GermanQuAD_test.json"}),
|
98 |
]
|
99 |
|
100 |
def _generate_examples(self, filepath):
|
10 |
logger = datasets.logging.get_logger(__name__)
|
11 |
|
12 |
|
13 |
+
_CITATION = """\\\\\\\\
|
14 |
@misc{möller2021germanquad,
|
15 |
title={GermanQuAD and GermanDPR: Improving Non-English Question Answering and Passage Retrieval},
|
16 |
author={Timo Möller and Julian Risch and Malte Pietsch},
|
21 |
}
|
22 |
"""
|
23 |
|
24 |
+
_DESCRIPTION = """\\\\\\\\
|
25 |
In order to raise the bar for non-English QA, we are releasing a high-quality, human-labeled German QA dataset consisting of 13 722 questions, incl. a three-way annotated test set.
|
26 |
The creation of GermanQuAD is inspired by insights from existing datasets as well as our labeling experience from several industry projects. We combine the strengths of SQuAD, such as high out-of-domain performance, with self-sufficient questions that contain all relevant information for open-domain QA as in the NaturalQuestions dataset. Our training and test datasets do not overlap like other popular datasets and include complex questions that cannot be answered with a single entity or only a few words.
|
27 |
"""
|
93 |
downloaded_files = dl_manager.download_and_extract(_URL)
|
94 |
|
95 |
return [
|
96 |
+
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files+"/GermanQuAD/GermanQuAD_train.json"}),
|
97 |
+
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files+"/GermanQuAD/GermanQuAD_test.json"}),
|
98 |
]
|
99 |
|
100 |
def _generate_examples(self, filepath):
|