carlosdanielhernandezmena commited on
Commit
4470e9f
1 Parent(s): d8cdf29

Adding all the files for the first time including the README.

Browse files
README.md CHANGED
@@ -1,3 +1,203 @@
1
  ---
2
- license: cc-by-sa-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ annotations_creators:
3
+ - expert-generated
4
+ language:
5
+ - es
6
+ language_creators:
7
+ - other
8
+ license:
9
+ - cc-by-sa-4.0
10
+ multilinguality:
11
+ - monolingual
12
+ pretty_name: 'CIEMPIESS FEM CORPUS: Audio and Transcripts of Female Speakers in Spanish.'
13
+ size_categories:
14
+ - 10K<n<100K
15
+ source_datasets:
16
+ - original
17
+ tags:
18
+ - ciempiess
19
+ - spanish
20
+ - mexican spanish
21
+ - ciempiess project
22
+ - ciempiess-unam project
23
+ task_categories:
24
+ - automatic-speech-recognition
25
+ task_ids: []
26
  ---
27
+
28
+ # Dataset Card for ciempiess_fem
29
+ ## Table of Contents
30
+ - [Dataset Description](#dataset-description)
31
+ - [Dataset Summary](#dataset-summary)
32
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
33
+ - [Languages](#languages)
34
+ - [Dataset Structure](#dataset-structure)
35
+ - [Data Instances](#data-instances)
36
+ - [Data Fields](#data-fields)
37
+ - [Data Splits](#data-splits)
38
+ - [Dataset Creation](#dataset-creation)
39
+ - [Curation Rationale](#curation-rationale)
40
+ - [Source Data](#source-data)
41
+ - [Annotations](#annotations)
42
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
43
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
44
+ - [Social Impact of Dataset](#social-impact-of-dataset)
45
+ - [Discussion of Biases](#discussion-of-biases)
46
+ - [Other Known Limitations](#other-known-limitations)
47
+ - [Additional Information](#additional-information)
48
+ - [Dataset Curators](#dataset-curators)
49
+ - [Licensing Information](#licensing-information)
50
+ - [Citation Information](#citation-information)
51
+ - [Contributions](#contributions)
52
+
53
+ ## Dataset Description
54
+ - **Homepage:** [CIEMPIESS-UNAM Project](https://ciempiess.org/)
55
+ - **Repository:** [CIEMPIESS FEM at LDC](https://catalog.ldc.upenn.edu/LDC2019S07)
56
+ - **Point of Contact:** [Carlos Mena](mailto:carlos.mena@ciempiess.org)
57
+
58
+ ### Dataset Summary
59
+
60
+ Since the publication of the [CIEMPIESS Corpus (LDC2015S07)](https://catalog.ldc.upenn.edu/LDC2015S07) in 2015 we have noticed that there is a lack of female speakers in the sources where we traditionally take audio to create new CIEMPIESS datasets. That is why we decided to create a corpus that helps to balance future gender unbalanced datasets.
61
+
62
+ The CIEMPIESS FEM Corpus was created by recordings and human transcripts of 21 different women. 16 of these women are mexican. The other ones come from Latin American countries.
63
+
64
+ The CIEMPIESS FEM Corpus is considered a CIEMPIESS dataset because it only contains audio from the same source of the first CIEMPIESS Corpus and it is "FEM", obviously because it only contains recordings of female speakers. This corpus is part of the [CIEMPIESS Experimentation](https://catalog.ldc.upenn.edu/LDC2019S07), which is a set of three different datasets, specifically CIEMPIESS COMPLEMENTARY, CIEMPIESS FEM and CIEMPIESS TEST.
65
+
66
+ CIEMPIESS is the acronym for:
67
+
68
+ "Corpus de Investigación en Español de México del Posgrado de Ingeniería Eléctrica y Servicio Social".
69
+
70
+ ### Example Usage
71
+ The CIEMPIESS FEM contains only the train split:
72
+ ```python
73
+ from datasets import load_dataset
74
+ ciempiess_fem = load_dataset("ciempiess/ciempiess_fem")
75
+ ```
76
+ It is also valid to do:
77
+ ```python
78
+ from datasets import load_dataset
79
+ ciempiess_fem = load_dataset("ciempiess/ciempiess_fem",split="train")
80
+ ```
81
+
82
+ ### Supported Tasks
83
+ automatic-speech-recognition: The dataset can be used to test a model for Automatic Speech Recognition (ASR). The model is presented with an audio file and asked to transcribe the audio file to written text. The most common evaluation metric is the word error rate (WER).
84
+
85
+ ### Languages
86
+ The language of the corpus is Spanish with the accent of Central Mexico.
87
+
88
+ ## Dataset Structure
89
+
90
+ ### Data Instances
91
+ ```python
92
+ {
93
+ 'audio_id': 'CMPF_F_05_MEX_0387',
94
+ 'audio': {
95
+ 'path': '/home/carlos/.cache/HuggingFace/datasets/downloads/extracted/8a3e27631315b39636ac51affc04585335f9699f9635269c49f7938936aa60b8/train/mexican/F_05/CMPF_F_05_MEX_0387.flac',
96
+ 'array': array([0.0090332 , 0.0151062 , 0.01257324, ..., 0.01861572, 0.01797485,
97
+ 0.02017212], dtype=float32), 'sampling_rate': 16000
98
+ },
99
+ 'speaker_id': 'F_05',
100
+ 'gender': 'female',
101
+ 'duration': 4.979000091552734,
102
+ 'country': 'Mexico',
103
+ 'normalized_text': 'entre dos o más personas pero eh tienen que darse de manera'
104
+ }
105
+ ```
106
+
107
+ ### Data Fields
108
+ * `audio_id` (string) - id of audio segment
109
+ * `audio` (datasets.Audio) - a dictionary containing the path to the audio, the decoded audio array, and the sampling rate. In non-streaming mode (default), the path points to the locally extracted audio. In streaming mode, the path is the relative path of an audio inside its archive (as files are not downloaded and extracted locally).
110
+ * `speaker_id` (string) - id of speaker
111
+ * `gender` (string) - gender of speaker (male or female)
112
+ * `duration` (float32) - duration of the audio file in seconds.
113
+ * `country` (string) - accent of the speaker.
114
+ * `normalized_text` (string) - normalized audio segment transcription.
115
+
116
+ ### Data Splits
117
+
118
+ The corpus counts just with the train split which has a total of 8555 speech files from 53 female speakers and 34 male speakers with a total duration of 18 hours and 20 minutes.
119
+
120
+ ## Dataset Creation
121
+
122
+ ### Curation Rationale
123
+
124
+ The CIEMPIESS FEM (CF) Corpus has the following characteristics:
125
+
126
+ * The CF has a total of 6505 audio files of 21 different women. It has a total duration of 13 hours and 54 minutes.
127
+
128
+ * Every audio file in the CF has a duration between 5 and 10 seconds approximately.
129
+
130
+ * Data in CF is classified by speaker and also by country, so one can easily select audios from a particular set of speakers to do experiments.
131
+
132
+ * Audio files in the CF and the first CIEMPIESS are all of the same type. In both, speakers talk about legal and lawyer issues. They also talk about things related to the [UNAM University](https://www.unam.mx/) and the [Facultad de Derecho de la UNAM](https://www.derecho.unam.mx/).
133
+
134
+ * As in the first CIEMPIESS Corpus, transcriptions in the CF were made by humans.
135
+
136
+ * Speakers in the CF are not present in any other CIEMPIESS dataset.
137
+
138
+ * Audio files in the CF are distributed in a 16khz@16bit mono format.
139
+
140
+ ### Source Data
141
+
142
+ #### Initial Data Collection and Normalization
143
+
144
+ The CIEMPIESS FEM is a Radio Corpus designed to train acoustic models of automatic speech recognition and it is made out of recordings of spontaneous conversations in Spanish between a radio moderator and his guests. Most of the speech in these conversations has the accent of Central Mexico.
145
+
146
+ All the recordings that constitute the CIEMPIESS FEM come from [RADIO-IUS](https://www.derecho.unam.mx/cultura-juridica/radio.php), a radio station belonging to [UNAM](https://www.unam.mx/). Recordings were donated by Lic. Cesar Gabriel Alanis Merchand and Mtro. Ricardo Rojas Arevalo from the [Facultad de Derecho de la UNAM](https://www.derecho.unam.mx/) with the condition that they have to be used for academic and research purposes only.
147
+
148
+ ### Annotations
149
+
150
+ #### Annotation process
151
+
152
+ The annotation process is at follows:
153
+
154
+ * 1. A whole podcast is manually segmented keeping just the portions containing good quality speech.
155
+ * 2. A second pass os segmentation is performed; this time to separate speakers and put them in different folders.
156
+ * 3. The resulting speech files between 5 and 10 seconds are transcribed by students from different departments (computing, engineering, linguistics). Most of them are native speakers but not with a particular training as transcribers.
157
+
158
+ #### Who are the annotators?
159
+
160
+ The CIEMPIESS FEM Corpus was created by the social service program ["Desarrollo de Tecnologías del Habla"](http://profesores.fi-b.unam.mx/carlos_mena/servicio.html) of the ["Facultad de Ingeniería"](https://www.ingenieria.unam.mx/) (FI) in the ["Universidad Nacional Autónoma de México"](https://www.unam.mx/) (UNAM) between 2016 and 2018 by Carlos Daniel Hernández Mena, head of the program.
161
+
162
+ ### Personal and Sensitive Information
163
+
164
+ The dataset could contain names revealing the identity of some speakers; on the other side, the recordings come from publicly available podcasts, so, there is not a real intent of the participants to be anonymized. Anyway, you agree to not attempt to determine the identity of speakers in this dataset.
165
+
166
+ ## Considerations for Using the Data
167
+
168
+ ### Social Impact of Dataset
169
+
170
+ This dataset is valuable because it contains spontaneous speech.
171
+
172
+ ### Discussion of Biases
173
+
174
+ The dataset is not gender balanced. It is comprised of 6505 audio files of 21 different women and the vocabulary is limited to legal issues.
175
+
176
+ ### Other Known Limitations
177
+
178
+ "CIEMPIESS FEM CORPUS" by Carlos Daniel Hernández Mena is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)](https://creativecommons.org/licenses/by-sa/4.0/) License with the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
179
+
180
+ ### Dataset Curators
181
+
182
+ The dataset was collected by students belonging to the social service program ["Desarrollo de Tecnologías del Habla"](http://profesores.fi-b.unam.mx/carlos_mena/servicio.html). It was curated by [Carlos Daniel Hernández Mena](https://huggingface.co/carlosdanielhernandezmena) in 2018.
183
+
184
+ ### Licensing Information
185
+ [CC-BY-SA-4.0](https://creativecommons.org/licenses/by-sa/4.0/)
186
+
187
+ ### Citation Information
188
+ ```
189
+ @misc{carlosmenaciempiessfem2019,
190
+ title={CIEMPIESS FEM CORPUS: Audio and Transcripts of Female Speakers in Spanish.},
191
+ ldc_catalog_no={LDC2019S07},
192
+ DOI={https://doi.org/10.35111/xdx5-n815},
193
+ author={Hernandez Mena, Carlos Daniel},
194
+ journal={Linguistic Data Consortium, Philadelphia},
195
+ year={2019},
196
+ url={https://catalog.ldc.upenn.edu/LDC2019S07},
197
+ }
198
+ ```
199
+ ### Contributions
200
+
201
+ The authors want to thank to Alejandro V. Mena, Elena Vera and Angélica Gutiérrez for their support to the social service program: "Desarrollo de Tecnologías del Habla." We also thank to the social service students for all the hard work.
202
+
203
+
ciempiess_fem.py ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from collections import defaultdict
2
+ import os
3
+ import json
4
+ import csv
5
+
6
+ import datasets
7
+
8
+ _NAME="ciempiess_fem"
9
+ _VERSION="1.0.0"
10
+ _AUDIO_EXTENSIONS=".flac"
11
+
12
+ _DESCRIPTION = """
13
+ The CIEMPIESS FEM Corpus was created by recordings and human transcripts of 21 different women. 16 of these women are mexican. The other ones come from Latin American countries.
14
+ """
15
+
16
+ _CITATION = """
17
+ @misc{carlosmenaciempiessfem2019,
18
+ title={CIEMPIESS FEM CORPUS: Audio and Transcripts of Female Speakers in Spanish.},
19
+ ldc_catalog_no={LDC2019S07},
20
+ DOI={https://doi.org/10.35111/xdx5-n815},
21
+ author={Hernandez Mena, Carlos Daniel},
22
+ journal={Linguistic Data Consortium, Philadelphia},
23
+ year={2019},
24
+ url={https://catalog.ldc.upenn.edu/LDC2019S07},
25
+ }
26
+ """
27
+
28
+ _HOMEPAGE = "https://catalog.ldc.upenn.edu/LDC2019S07"
29
+
30
+ _LICENSE = "CC-BY-SA-4.0, See https://creativecommons.org/licenses/by-sa/4.0/"
31
+
32
+ _BASE_DATA_DIR = "corpus/"
33
+ _METADATA_TRAIN = os.path.join(_BASE_DATA_DIR,"files", "metadata_train.tsv")
34
+
35
+ _TARS_TRAIN = os.path.join(_BASE_DATA_DIR,"files", "tars_train.paths")
36
+
37
+ class CiempiessFemConfig(datasets.BuilderConfig):
38
+ """BuilderConfig for CIEMPIESS FEM Corpus"""
39
+
40
+ def __init__(self, name, **kwargs):
41
+ name=_NAME
42
+ super().__init__(name=name, **kwargs)
43
+
44
+ class CiempiessFem(datasets.GeneratorBasedBuilder):
45
+ """CIEMPIESS Fem Corpus"""
46
+
47
+ VERSION = datasets.Version(_VERSION)
48
+ BUILDER_CONFIGS = [
49
+ CiempiessFemConfig(
50
+ name=_NAME,
51
+ version=datasets.Version(_VERSION),
52
+ )
53
+ ]
54
+
55
+ def _info(self):
56
+ features = datasets.Features(
57
+ {
58
+ "audio_id": datasets.Value("string"),
59
+ "audio": datasets.Audio(sampling_rate=16000),
60
+ "speaker_id": datasets.Value("string"),
61
+ "gender": datasets.Value("string"),
62
+ "duration": datasets.Value("float32"),
63
+ "country": datasets.Value("string"),
64
+ "normalized_text": datasets.Value("string"),
65
+ }
66
+ )
67
+ return datasets.DatasetInfo(
68
+ description=_DESCRIPTION,
69
+ features=features,
70
+ homepage=_HOMEPAGE,
71
+ license=_LICENSE,
72
+ citation=_CITATION,
73
+ )
74
+
75
+ def _split_generators(self, dl_manager):
76
+
77
+ metadata_train=dl_manager.download_and_extract(_METADATA_TRAIN)
78
+
79
+ tars_train=dl_manager.download_and_extract(_TARS_TRAIN)
80
+
81
+ hash_tar_files=defaultdict(dict)
82
+
83
+ with open(tars_train,'r') as f:
84
+ hash_tar_files['train']=[path.replace('\n','') for path in f]
85
+
86
+ hash_meta_paths={"train":metadata_train}
87
+ audio_paths = dl_manager.download(hash_tar_files)
88
+
89
+ splits=["train"]
90
+ local_extracted_audio_paths = (
91
+ dl_manager.extract(audio_paths) if not dl_manager.is_streaming else
92
+ {
93
+ split:[None] * len(audio_paths[split]) for split in splits
94
+ }
95
+ )
96
+
97
+ return [
98
+ datasets.SplitGenerator(
99
+ name=datasets.Split.TRAIN,
100
+ gen_kwargs={
101
+ "audio_archives": [dl_manager.iter_archive(archive) for archive in audio_paths["train"]],
102
+ "local_extracted_archives_paths": local_extracted_audio_paths["train"],
103
+ "metadata_paths": hash_meta_paths["train"],
104
+ }
105
+ ),
106
+ ]
107
+
108
+ def _generate_examples(self, audio_archives, local_extracted_archives_paths, metadata_paths):
109
+
110
+ features = ["speaker_id","gender","duration","country","normalized_text"]
111
+
112
+ with open(metadata_paths) as f:
113
+ metadata = {x["audio_id"]: x for x in csv.DictReader(f, delimiter="\t")}
114
+
115
+ for audio_archive, local_extracted_archive_path in zip(audio_archives, local_extracted_archives_paths):
116
+ for audio_filename, audio_file in audio_archive:
117
+ audio_id = audio_filename.split(os.sep)[-1].split(_AUDIO_EXTENSIONS)[0]
118
+ path = os.path.join(local_extracted_archive_path, audio_filename) if local_extracted_archive_path else audio_filename
119
+
120
+ yield audio_id, {
121
+ "audio_id": audio_id,
122
+ **{feature: metadata[audio_id][feature] for feature in features},
123
+ "audio": {"path": path, "bytes": audio_file.read()},
124
+ }
corpus/files/metadata_train.tsv ADDED
The diff for this file is too large to render. See raw diff
 
corpus/files/tars_train.paths ADDED
@@ -0,0 +1 @@
 
 
1
+ corpus/speech/train.tar.gz
corpus/speech/train.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2777f2b901562bb763789ef1c0243def54cc360dbb95c1f94de2b6dd638d435f
3
+ size 958382502