Update files from the datasets library (from 1.8.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.8.0
- README.md +22 -3
- dataset_infos.json +1 -1
- piaf.py +6 -0
README.md
CHANGED
@@ -1,4 +1,23 @@
|
|
1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
paperswithcode_id: null
|
3 |
---
|
4 |
|
@@ -91,9 +110,9 @@ The data fields are the same among all splits.
|
|
91 |
|
92 |
### Data Splits
|
93 |
|
94 |
-
|
|
95 |
-
|
96 |
-
|plain_text|
|
97 |
|
98 |
## Dataset Creation
|
99 |
|
|
|
1 |
---
|
2 |
+
annotations_creators:
|
3 |
+
- crowdsourced
|
4 |
+
language_creators:
|
5 |
+
- crowdsourced
|
6 |
+
languages:
|
7 |
+
- fr-FR
|
8 |
+
licenses:
|
9 |
+
- mit
|
10 |
+
multilinguality:
|
11 |
+
- monolingual
|
12 |
+
size_categories:
|
13 |
+
- 1K<n<10K
|
14 |
+
source_datasets:
|
15 |
+
- original
|
16 |
+
task_categories:
|
17 |
+
- question-answering
|
18 |
+
task_ids:
|
19 |
+
- extractive-qa
|
20 |
+
- open-domain-qa
|
21 |
paperswithcode_id: null
|
22 |
---
|
23 |
|
|
|
110 |
|
111 |
### Data Splits
|
112 |
|
113 |
+
| name | train |
|
114 |
+
| ---------- | ----: |
|
115 |
+
| plain_text | 3835 |
|
116 |
|
117 |
## Dataset Creation
|
118 |
|
dataset_infos.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"plain_text": {"description": "Piaf is a reading comprehension dataset. This version, published in February 2020, contains 3835 questions on French Wikipedia.\n", "citation": "@InProceedings{keraron-EtAl:2020:LREC,\n author = {Keraron, Rachel and Lancrenon, Guillaume and Bras, Mathilde and Allary, Fr\
|
|
|
1 |
+
{"plain_text": {"description": "Piaf is a reading comprehension dataset. This version, published in February 2020, contains 3835 questions on French Wikipedia.\n", "citation": "@InProceedings{keraron-EtAl:2020:LREC,\n author = {Keraron, Rachel and Lancrenon, Guillaume and Bras, Mathilde and Allary, Fr\u00e9d\u00e9ric and Moyse, Gilles and Scialom, Thomas and Soriano-Morales, Edmundo-Pavel and Staiano, Jacopo},\n title = {Project PIAF: Building a Native French Question-Answering Dataset},\n booktitle = {Proceedings of The 12th Language Resources and Evaluation Conference},\n month = {May},\n year = {2020},\n address = {Marseille, France},\n publisher = {European Language Resources Association},\n pages = {5483--5492},\n abstract = {Motivated by the lack of data for non-English languages, in particular for the evaluation of downstream tasks such as Question Answering, we present a participatory effort to collect a native French Question Answering Dataset. Furthermore, we describe and publicly release the annotation tool developed for our collection effort, along with the data obtained and preliminary baselines.},\n url = {https://www.aclweb.org/anthology/2020.lrec-1.673}\n}\n", "homepage": "https://piaf.etalab.studio", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}, "context": {"dtype": "string", "id": null, "_type": "Value"}, "question": {"dtype": "string", "id": null, "_type": "Value"}, "answers": {"feature": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "answer_start": {"dtype": "int32", "id": null, "_type": "Value"}}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "question-answering-extractive", "question_column": "question", "context_column": "context", "answers_column": "answers"}], "builder_name": "piaf", "config_name": "plain_text", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 3332905, "num_examples": 3835, "dataset_name": "piaf"}}, "download_checksums": {"https://github.com/etalab-ia/piaf-code/raw/master/piaf-v1.0.json": {"num_bytes": 1370384, "checksum": "008229ccefa0195d7e809d777d33149cab03433059c9477bdbadb4838a277cd2"}}, "download_size": 1370384, "post_processing_size": null, "dataset_size": 3332905, "size_in_bytes": 4703289}}
|
piaf.py
CHANGED
@@ -20,6 +20,7 @@
|
|
20 |
import json
|
21 |
|
22 |
import datasets
|
|
|
23 |
|
24 |
|
25 |
logger = datasets.logging.get_logger(__name__)
|
@@ -93,6 +94,11 @@ class Piaf(datasets.GeneratorBasedBuilder):
|
|
93 |
supervised_keys=None,
|
94 |
homepage="https://piaf.etalab.studio",
|
95 |
citation=_CITATION,
|
|
|
|
|
|
|
|
|
|
|
96 |
)
|
97 |
|
98 |
def _split_generators(self, dl_manager):
|
|
|
20 |
import json
|
21 |
|
22 |
import datasets
|
23 |
+
from datasets.tasks import QuestionAnsweringExtractive
|
24 |
|
25 |
|
26 |
logger = datasets.logging.get_logger(__name__)
|
|
|
94 |
supervised_keys=None,
|
95 |
homepage="https://piaf.etalab.studio",
|
96 |
citation=_CITATION,
|
97 |
+
task_templates=[
|
98 |
+
QuestionAnsweringExtractive(
|
99 |
+
question_column="question", context_column="context", answers_column="answers"
|
100 |
+
)
|
101 |
+
],
|
102 |
)
|
103 |
|
104 |
def _split_generators(self, dl_manager):
|