File size: 8,949 Bytes
d51a871
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
---
license: cc-by-4.0
task_categories:
- automatic-speech-recognition
language:
- ca
tags:
- central
size_categories:
- 10K<n<100K
---

# Dataset Card for ParlamentParla v3 - Speech Corpus of Catalan Parliamentary Sessions

A speech corpus composed of Catalan Parliamentary Sessions.The v3 and last version of the corpus includes both clean and other quality segments, divided into short segments (less than 30 seconds) and long segments (more than 30 seconds). The total dataset encompasses 1059h 48m 04s of speech, including 945h 51m 06s for the short segments and 113h 56m 58s for the long segments, with a total of 10.925.943 words. 


## Table of Contents
- [Dataset Details](#dataset-details)
  - [Dataset Description](#dataset-description)
  - [Dataset Sources](#dataset-sources)
  - [Uses](#uses)
- [Dataset Structure](#dataset-structure)
  - [Data Instances](#data-instances)
  - [Data Fields](#data-fields)
  - [Data Splits](#data-splits)
  - [Example Usage](#example-usage)
- [Dataset Creation](#dataset-creation)
  - [Curation Rationale](#curation-rationale)
  - [Source Data](#source-data)
  - [Data Collection and Processing](#data-collection-and-processing)
  - [Who are the Source Data Producers?](#source-data-producers)
  - [Annotations](#annotations)
  - [Personal and Sensitive Information](#personal-and-sensitive-information)
  - [Citation](#citation)
- [Considerations for Using the Data](#considerations-for-using-the-data)
  - [Social Impact of Dataset](#social-impact-of-dataset)
  - [Discussion of Biases](#discussion-of-biases)
  - [Other Known Limitations](#other-known-limitations)


### Dataset Details

### Dataset Description
This is the third version of the ParlamentParla speech corpus for Catalan: a collection of speech recordings with transcriptions intended for Automatic Speech Recognition (ASR) applications.
In recent years, data in Catalan language has increased considerably. With this release we develop the third version of the ParlamentParla speech corpus, which will be very valuable mainly for training and evaluating speech recognition systems.
We used the content of the Catalan Parlamentary sessions: the audio segments were extracted from recordings the Catalan Parliament ([Parlament de Catalunya](https://www.parlament.cat/)) plenary sessions. Taking advantage of the manual transcriptions, we created high quality audio segments in Catalan along with the aligned transcriptions.
The extensive time span covered by the sessions, from January 23, 2008, to October 24, 2023, provides a broad range of linguistic phenomena and topics, further enriching the corpus. With 317 sessions in total, the corpus is substantial and should provide ample data for various research and development purposes in speech recognition.
The final corpus has been extracted March 6, 2024.


- **Curated by:**  Language Technologies Unit at the Barcelona Supercomputing Center (langtech@bsc.es)
- **Funded by:** This work is funded by the Ministerio para la Transformación Digital y de la Función Pública - Funded by EU – NextGenerationEU within the framework of the [project ILENIA](https://proyectoilenia.es/) with reference 2022/TL22/00215337, 2022/TL22/00215336, 2022/TL22/00215335 y 2022/TL22/00215334
- **Shared by:** [More Information Needed]
- **Language(s) (NLP):** ca-ce
- **License:** [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/deed.es)


### Dataset Sources

- **Repository:**
- **Paper:** 

### Uses

The purpose of this dataset is mainly for training automatic speech recognition (ASR) models in Catalan.
The language is limited to the plenary sessions of the parlament used to create the corpus and may not be representative to all domains.


## Dataset Structure
### Data Instances
Each instance have the following structure: 
```python
DatasetDict({
    clean_train: Dataset({
        features: ['identifier','audio','segment_path','text'],
        num_rows: 164416
    })
```

Each data point is structured as:

- Audio ID
```python
>>data['clean_train_short'][0]['identifier']

2753976_90753a8d81888d998484_405.96_411.15999999999997
```

- Audio
```python
>>data['clean_train_short'][0]['audio']

{'path': '/Users/sarahsolito/.cache/huggingface/datasets/downloads/extracted/9f760c175adf0af8127242f9468e48120f7682b20cf5c5813bfe481a108524bf/parlament_parla_v3/corpus/speech/2753976/2753976_90753a8d81888d998484_405.96_411.15999999999997.wav', 'array': array([-1.07421875e-02, -1.33972168e-02, -1.62353516e-02, ...,
        1.64794922e-03,  3.05175781e-05, -4.02832031e-03]), 'sampling_rate': 16000}
```
- Relative Path
```python
>>data['clean_train_short'][0]['segment_path']

data/parlament_parla_v3/output_segment/2753976/2753976_90753a8d81888d998484_405.96_411.15999999999997.wav
```


- Transcription
```python
>>data['clean_train_short'][0]['text'])

idò jo em tragaré el salmó oh uh no hi pensava
```

### Data Fields

- "identifier" : (string) &rarr; the unique audio identificator
- "segment_path": (string) &rarr; the path to the audio
- "audio": datasets.Audio(sampling_rate=16000) &rarr; the decoded audio array, and the sampling rate.
- "text": (string) &rarr; clean version of the transcription

                
### Data Splits
The dataset consists of a train, dev and test splits. The stat details are as follows:


|    Subcorpus      | Duration  |
|------------------ |-----------|
| other_test_short  | 13:42:44  |
| other_dev_short   | 13:13:45  |
| other_train_short | 507:27:34 |
|*other total_short*| 534:24:03 |
| clean_test_short  | 10:44:19  |
| clean_dev_short   | 10:23:30  |
| clean_train_short | 390:19:12 |
|*clean total_short*| 411:27:03 |
|*Total*            | 945:51:06 |

|    Subcorpus      | Duration  |
|-------------------|-----------|
| other_test_long   |  01:41:29 |
| other_dev_long    |  01:51:30 |
| other_train_long  |  72:35:10 | 
|*other total_long* |  76:08:10 |
| clean_test_long   |  00:50:15 |
| clean_dev_long    |  00:46:44 |
| clean_train_long  |  36:11:46 | 
|*clean total_long* |  37:48:47 |
|*Total*            | 113:56:58 |

:04

### Example Usage


To load a specific split ,for example, the training split do:

```python
  from datasets import load_dataset
  data = load_dataset("projecte-aina/parlament_parla_v3_asr_a",split="clean_train_short")
```

## Dataset Creation

### Curation Rationale

The directory called "speech" contains all the speech files of the corpus. The files in the speech directory are divided into the "clean" and the "other" directories.

### Source Data

The content belongs to the Catalan Parliament and the data is 
released conforming their [terms of use](https://www.parlament.cat/pcat/serveis-parlament/avis-legal/).



### Data Collection and Processing

The dataset's transcriptions are released  in a clean version.
The clean versions have been normalized at an orthographic level in lower-case. 
The normalization process was performed removing punctuation marks and characters that are not present in the Catalan alphabet. 
Number expansion was also perfomed.

In order to obtain a corpus of the highest possible quality, we also apply automatic language detection processes to each segment to prevent code-switching, and evaluate the quality of the transcriptions to eliminate both low quality segments and those that are not in Catalan.


### Who are the source data producers?

The content belongs to the Catalan Parliament and the data is released conforming their [terms
of use](https://www.parlament.cat/pcat/serveis-parlament/avis-legal/).

### Annotations

The dataset doesn't contain any additional annotation.


### Personal and Sensitive Information

The dataset consists of Catalan parliamentary speeches and their transcription. The dataset contains no personal information except for speech, which is considered personal data.
Consequently, the speakers' voices in this corpus have been subjected to anonymization treatment in compliance with applicable regulations, such as the General Data Protection Regulation (GDPR) in the European Union. You agree to not attempt to determine the identity of speakers in this dataset.

### Citation
```
@misc{bscib32024,
      title={ParlamentParla v3 - Speech Corpus of Catalan Parliamentary Sessions}, 
      author={Baybars, Kulebi},
      publisher={Barcelona Supercomputing Center},
      year={2024},
      url={},
      }
```

## Considerations for Using the Data
### Social Impact of Dataset

ParlamentParla_v3 is a source of speech data that will be valuable in development of speech technologies for Catalan language and its varieties.

### Discussion of Biases

No specific bias mitigation strategies were applied to this dataset. Inherent biases may exist within the data.

### Other Known Limitations

Speakers, their gender and age are not identified and one or more speakers could be speaking in the same recording. For these reasons, we don't know the total number of speakers in the corpus and their gender/age.