Datasets:

Modalities:
Text
Formats:
json
Sub-tasks:
extractive-qa
Languages:
Catalan
ArXiv:
Libraries:
Datasets
pandas
License:
parquet-converter commited on
Commit
c3a7363
·
1 Parent(s): 0e042fc

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,30 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bin.* filter=lfs diff=lfs merge=lfs -text
5
- *.bz2 filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.model filter=lfs diff=lfs merge=lfs -text
12
- *.msgpack filter=lfs diff=lfs merge=lfs -text
13
- *.onnx filter=lfs diff=lfs merge=lfs -text
14
- *.ot filter=lfs diff=lfs merge=lfs -text
15
- *.parquet filter=lfs diff=lfs merge=lfs -text
16
- *.pb filter=lfs diff=lfs merge=lfs -text
17
- *.pt filter=lfs diff=lfs merge=lfs -text
18
- *.pth filter=lfs diff=lfs merge=lfs -text
19
- *.rar filter=lfs diff=lfs merge=lfs -text
20
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
- *.tar.* filter=lfs diff=lfs merge=lfs -text
22
- *.tflite filter=lfs diff=lfs merge=lfs -text
23
- *.tgz filter=lfs diff=lfs merge=lfs -text
24
- *.xz filter=lfs diff=lfs merge=lfs -text
25
- *.zip filter=lfs diff=lfs merge=lfs -text
26
- *.zstandard filter=lfs diff=lfs merge=lfs -text
27
- *tfevents* filter=lfs diff=lfs merge=lfs -text
28
- dev.json filter=lfs diff=lfs merge=lfs -text
29
- test.json filter=lfs diff=lfs merge=lfs -text
30
- train.json filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,203 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - expert-generated
4
- language_creators:
5
- - found
6
- language:
7
- - ca
8
- license:
9
- - cc-by-sa-4.0
10
- multilinguality:
11
- - monolingual
12
- pretty_name: VilaQuAD
13
- size_categories:
14
- - 1K<n<10K
15
- source_datasets:
16
- - original
17
- task_categories:
18
- - question-answering
19
- task_ids:
20
- - extractive-qa
21
- ---
22
-
23
- # Dataset Card for VilaQuAD
24
-
25
- ## Table of Contents
26
- - [Table of Contents](#table-of-contents)
27
- - [Dataset Description](#dataset-description)
28
- - [Dataset Summary](#dataset-summary)
29
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
30
- - [Languages](#languages)
31
- - [Dataset Structure](#dataset-structure)
32
- - [Data Instances](#data-instances)
33
- - [Data Fields](#data-fields)
34
- - [Data Splits](#data-splits)
35
- - [Dataset Creation](#dataset-creation)
36
- - [Curation Rationale](#curation-rationale)
37
- - [Source Data](#source-data)
38
- - [Annotations](#annotations)
39
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
40
- - [Considerations for Using the Data](#considerations-for-using-the-data)
41
- - [Social Impact of Dataset](#social-impact-of-dataset)
42
- - [Discussion of Biases](#discussion-of-biases)
43
- - [Other Known Limitations](#other-known-limitations)
44
- - [Additional Information](#additional-information)
45
- - [Dataset Curators](#dataset-curators)
46
- - [Licensing Information](#licensing-information)
47
- - [Citation Information](#citation-information)
48
- - [Contributions](#contributions)
49
-
50
- ## Dataset Description
51
-
52
- - **Homepage:** https://doi.org/10.5281/zenodo.4562337
53
- - **Paper:** [Are Multilingual Models the Best Choice for Moderately Under-resourced Languages? A Comprehensive Assessment for Catalan](https://arxiv.org/abs/2107.07903)
54
- - **Point of Contact:** [Carlos Rodríguez-Penagos](mailto:carlos.rodriguez1@bsc.es) and [Carme Armentano-Oller](mailto:carme.armentano@bsc.es)
55
-
56
- ### Dataset Summary
57
-
58
- VilaQuAD, An extractive QA dataset for Catalan, from [VilaWeb](https://www.vilaweb.cat/) newswire text.
59
-
60
- This dataset contains 2095 of Catalan language news articles along with 1 to 5 questions referring to each fragment (or context).
61
-
62
- VilaQuad articles are extracted from the daily [VilaWeb](https://www.vilaweb.cat/) and used under [CC-by-nc-sa-nd](https://creativecommons.org/licenses/by-nc-nd/3.0/deed.ca) licence.
63
-
64
- This dataset can be used to build extractive-QA and Language Models.
65
-
66
- ### Supported Tasks and Leaderboards
67
-
68
- Extractive-QA, Language Model.
69
-
70
- ### Languages
71
-
72
- The dataset is in Catalan (`ca-CA`).
73
-
74
- ## Dataset Structure
75
-
76
- ### Data Instances
77
-
78
- ```
79
- {
80
- 'id': 'P_556_C_556_Q1',
81
- 'title': "El Macba posa en qüestió l'eufòria amnèsica dels anys vuitanta a l'estat espanyol",
82
- 'context': "El Macba ha obert una nova exposició, 'Gelatina dura. Històries escamotejades dels 80', dedicada a revisar el discurs hegemònic que es va instaurar en aquella dècada a l'estat espanyol, concretament des del començament de la transició, el 1977, fins a la fita de Barcelona 92. És una mirada en clau espanyola, però també centralista, perquè més enllà dels esdeveniments ocorreguts a Catalunya i els artistes que els van combatre, pràcticament només s'hi mostren fets polítics i culturals generats des de Madrid. No es parla del País Basc, per exemple. Però, dit això, l'exposició revisa aquesta dècada de la història recent tot qüestionant un triomfalisme homogeneïtzador, que ja se sap que va arrasar una gran quantitat de sectors crítics i radicals de l'àmbit social, polític i cultural. Com diu la comissària, Teresa Grandas, de l'equip del Macba: 'El relat oficial dels anys vuitanta a l'estat espanyol va prioritzar la necessitat per damunt de la raó i va consolidar una mirada que privilegiava el futur abans que l'anàlisi del passat recent, obviant qualsevol consideració crítica respecte de la filiació amb el poder franquista.",
83
- 'question': 'Com es diu la nova exposició que ha obert el Macba?',
84
- 'answers': [
85
- {
86
- 'text': "'Gelatina dura. Històries escamotejades dels 80'",
87
- 'answer_start': 38
88
- }
89
- ]
90
- }
91
- ```
92
-
93
- ### Data Fields
94
-
95
- Follows [Rajpurkar, Pranav et al., (2016)](http://arxiv.org/abs/1606.05250) for SQuAD v1 datasets.
96
-
97
- - `id` (str): Unique ID assigned to the question.
98
- - `title` (str): Title of the VilaWeb article.
99
- - `context` (str): VilaWeb section text.
100
- - `question` (str): Question.
101
- - `answers` (list): List of answers to the question, each containing:
102
- - `text` (str): Span text answering to the question.
103
- - `answer_start` Starting offset of the span text answering to the question.
104
-
105
- ### Data Splits
106
-
107
- - train.json: 1295 contexts, 3882 questions
108
- - dev.json: 400 contexts, 1200 questions
109
- - test.json: 400 contexts, 1200 questions
110
-
111
- ## Dataset Creation
112
-
113
- ### Curation Rationale
114
-
115
- We created this dataset to contribute to the development of language models in Catalan, a low-resource language.
116
-
117
-
118
- ### Source Data
119
-
120
- - [VilaWeb site](https://www.vilaweb.cat/)
121
-
122
- #### Initial Data Collection and Normalization
123
-
124
- The source data are scraped articles from archives of Catalan newspaper website [Vilaweb](https://www.vilaweb.cat).
125
-
126
- From a the online edition of the newspaper [VilaWeb](https://www.vilaweb.cat), 2095 articles were randomnly selected. These headlines were also used to create a Textual Entailment dataset. For the extractive QA dataset, creation of between 1 and 5 questions for each news context was commissioned, following an adaptation of the guidelines from SQuAD 1.0 ([Rajpurkar, Pranav et al. (2016)](http://arxiv.org/abs/1606.05250)). In total, 6282 pairs of a question and an extracted fragment that contains the answer were created.
127
-
128
- For compatibility with similar datasets in other languages, we followed as close as possible existing curation guidelines. We also created [another QA dataset with wikipedia](https://huggingface.co/datasets/projecte-aina/viquiquad) to ensure thematic and stylistic variety.
129
-
130
- #### Who are the source language producers?
131
-
132
- Professional journalists from the Catalan newspaper [VilaWeb](https://www.vilaweb.cat/).
133
-
134
- ### Annotations
135
-
136
- #### Annotation process
137
-
138
- We comissioned the creation of 1 to 5 questions for each context, following an adaptation of the guidelines from SQuAD 1.0 ([Rajpurkar, Pranav et al. (2016)](http://arxiv.org/abs/1606.05250)).
139
-
140
- #### Who are the annotators?
141
-
142
- Annotation was commissioned to an specialized company that hired a team of native language speakers.
143
-
144
- ### Personal and Sensitive Information
145
-
146
- No personal or sensitive information included.
147
-
148
- ## Considerations for Using the Data
149
-
150
- ### Social Impact of Dataset
151
-
152
- We hope this dataset contributes to the development of language models in Catalan, a low-resource language.
153
-
154
- ### Discussion of Biases
155
-
156
- [N/A]
157
-
158
- ### Other Known Limitations
159
-
160
- [N/A]
161
-
162
- ## Additional Information
163
-
164
- ### Dataset Curators
165
-
166
- Text Mining Unit (TeMU) at the Barcelona Supercomputing Center (bsc-temu@bsc.es)
167
-
168
- This work was funded by the [Departament de la Vicepresidència i de Polítiques Digitals i Territori de la Generalitat de Catalunya](https://politiquesdigitals.gencat.cat/en/inici/index.html) within the framework of [Projecte AINA](https://politiquesdigitals.gencat.cat/ca/economia/catalonia-ai/aina/).
169
-
170
- ### Licensing Information
171
-
172
- This work is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">Attribution-ShareAlike 4.0 International License</a>.
173
-
174
- ### Citation Information
175
-
176
- ```
177
- @inproceedings{armengol-estape-etal-2021-multilingual,
178
- title = "Are Multilingual Models the Best Choice for Moderately Under-resourced Languages? {A} Comprehensive Assessment for {C}atalan",
179
- author = "Armengol-Estap{\'e}, Jordi and
180
- Carrino, Casimiro Pio and
181
- Rodriguez-Penagos, Carlos and
182
- de Gibert Bonet, Ona and
183
- Armentano-Oller, Carme and
184
- Gonzalez-Agirre, Aitor and
185
- Melero, Maite and
186
- Villegas, Marta",
187
- booktitle = "Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021",
188
- month = aug,
189
- year = "2021",
190
- address = "Online",
191
- publisher = "Association for Computational Linguistics",
192
- url = "https://aclanthology.org/2021.findings-acl.437",
193
- doi = "10.18653/v1/2021.findings-acl.437",
194
- pages = "4933--4946",
195
- }
196
- ```
197
-
198
- [DOI](https://doi.org/10.5281/zenodo.4562337)
199
-
200
-
201
- ### Contributions
202
-
203
- [N/A]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dev.json → default/vilaquad-test.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f196ea0d38ffd4613eb36d0a5dee1f4d0b2b79800336630a3ec7fb38b06b6a02
3
- size 724188
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03ba0c1b1a846b5614da76eb77b5de3ec31d6e767ffc4473604543a538b1ea69
3
+ size 394323
train.json → default/vilaquad-train.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ddf093095cd1915f1c81f0757d0d0ebee5ed3b93f660e62fa97558e0a34b4f4b
3
- size 2366427
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4195b4eb962c72a109ab759fdac4465277e4d161f041e190bf5d934306c5733
3
+ size 1244443
test.json → default/vilaquad-validation.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8fe8bbd3d7d9912f1d415e5c3f3132f9a0899c5355529bd91c79d19e1f72e712
3
- size 722732
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:701634ba3027029ed3b6b21d416c78d8524d85ab550cafbc367aaffdf0393db7
3
+ size 388910
vilaquad.py DELETED
@@ -1,105 +0,0 @@
1
- # Loading script for the VilaQuAD dataset.
2
-
3
- import json
4
-
5
- import datasets
6
-
7
- logger = datasets.logging.get_logger(__name__)
8
-
9
- _CITATION = """\
10
- Rodriguez-Penagos, Carlos Gerardo, & Armentano-Oller, Carme. (2021).
11
- VilaQuAD: an extractive QA dataset for catalan, from Vilaweb newswire text
12
- [Data set]. Zenodo. https://doi.org/10.5281/zenodo.4562337
13
- """
14
-
15
- _DESCRIPTION = """\
16
- This dataset contains 2095 of Catalan language news articles along with 1 to 5 questions referring to each fragment (or context).
17
-
18
- VilaQuad articles are extracted from the daily Vilaweb (www.vilaweb.cat) and used under CC-by-nc-sa-nd (https://creativecommons.org/licenses/by-nc-nd/3.0/deed.ca) licence.
19
-
20
- This dataset can be used to build extractive-QA and Language Models.
21
-
22
- Funded by the Generalitat de Catalunya, Departament de Polítiques Digitals i Administració Pública (AINA),
23
-
24
- MT4ALL and Plan de Impulso de las Tecnologías del Lenguaje (Plan TL).
25
- """
26
-
27
- _HOMEPAGE = "https://doi.org/10.5281/zenodo.4562337"
28
-
29
- _URL = "https://huggingface.co/datasets/projecte-aina/vilaquad/resolve/main/"
30
- _TRAINING_FILE = "train.json"
31
- _DEV_FILE = "dev.json"
32
- _TEST_FILE = "test.json"
33
-
34
-
35
- class VilaQuAD(datasets.GeneratorBasedBuilder):
36
- """VilaQuAD Dataset."""
37
-
38
- VERSION = datasets.Version("1.0.1")
39
-
40
- def _info(self):
41
-
42
- return datasets.DatasetInfo(
43
- description=_DESCRIPTION,
44
- features=datasets.Features(
45
- {
46
- "id": datasets.Value("string"),
47
- "title": datasets.Value("string"),
48
- "context": datasets.Value("string"),
49
- "question": datasets.Value("string"),
50
- "answers": [
51
- {
52
- "text": datasets.Value("string"),
53
- "answer_start": datasets.Value("int32"),
54
- }
55
- ],
56
- }
57
- ),
58
- # No default supervised_keys (as we have to pass both question
59
- # and context as input).
60
- supervised_keys=None,
61
- homepage=_HOMEPAGE,
62
- citation=_CITATION,
63
- )
64
-
65
- def _split_generators(self, dl_manager):
66
- """Returns SplitGenerators."""
67
- urls_to_download = {
68
- "train": f"{_URL}{_TRAINING_FILE}",
69
- "dev": f"{_URL}{_DEV_FILE}",
70
- "test": f"{_URL}{_TEST_FILE}",
71
- }
72
- downloaded_files = dl_manager.download(urls_to_download)
73
-
74
- return [
75
- datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
76
- datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
77
- datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files["test"]}),
78
- ]
79
-
80
- def _generate_examples(self, filepath):
81
- """This function returns the examples in the raw (text) form."""
82
- logger.info("generating examples from = %s", filepath)
83
- with open(filepath, encoding="utf-8") as f:
84
- vilaquad = json.load(f)
85
- for article in vilaquad["data"]:
86
- title = article.get("title", "").strip()
87
- for paragraph in article["paragraphs"]:
88
- context = paragraph["context"].strip()
89
- for qa in paragraph["qas"]:
90
- question = qa["question"].strip()
91
- id_ = qa["id"]
92
- # answer_starts = [answer["answer_start"] for answer in qa["answers"]]
93
- # answers = [answer["text"].strip() for answer in qa["answers"]]
94
- # Features currently used are "context", "question", and "answers".
95
- # Others are extracted here for the ease of future expansions.
96
- text = qa["answers"][0]["text"]
97
- answer_start = qa["answers"][0]["answer_start"]
98
-
99
- yield id_, {
100
- "title": title,
101
- "context": context,
102
- "question": question,
103
- "id": id_,
104
- "answers": [{"text": text, "answer_start": answer_start}],
105
- }