parquet-converter commited on
Commit
730ff18
1 Parent(s): 06305e4

Update parquet files

Browse files
clean/partial-train.100/0000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b515f81324b3e3ba5fd4dfaa92c749edf5f4d2aca59bc6294749e1606b624ca2
3
+ size 506357762
clean/partial-train.100/0001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0508410f23883e065f29cb25de2a7915b2b73fd08d16b33daa7d1fe05a1bc1f2
3
+ size 495926163
clean/partial-train.100/0002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6646a517077e45062ac8e44567907b08d3f950ea071de866f8c73b10589c645
3
+ size 500327702
clean/partial-train.100/0003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b09e33b68b2042074ffc521f76111721989d18ce7f2f510316b8346a5bb2a7f6
3
+ size 502875817
clean/partial-train.100/0004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7715494314f8c21acf066de1fe54e7913c443a12b362c0667747f452526e2fca
3
+ size 498004966
clean/partial-train.100/0005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a77367af08b549b609daac56310eb3795ccf13334496623a52edc3baafe9fc0
3
+ size 487134747
clean/partial-train.100/0006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:489c2b5e8a559f01ba391b90ea2e9d79f684d314668b398e873c98cb49a82a7a
3
+ size 497492022
clean/partial-train.100/0007.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cfc7bfbe7742b3bec21053ae047005b80f9e1acebbd8fd4f45265a0fce4163d
3
+ size 486630609
clean/partial-train.100/0008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:529c126414fd3e50d1362ffd3f31b96f4f85fe7c15151600dbd23044f29595be
3
+ size 501168951
clean/partial-train.100/0009.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af3f6341512c48603572d56466e31f0f72b8ce429ebe6f8f6fd341e7dcfb8745
3
+ size 400587002
clean/partial-train.360/0000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85fa50d7044bedb54463f46f4043c9c05bf93707734ac00c7a969e59f333ebfe
3
+ size 503162838
clean/partial-train.360/0001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ecc9a562aa78768d8bfdc885646d4f211f9c8b8b7d8d34d742b29b81521020cb
3
+ size 499091512
clean/partial-train.360/0002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d37efb76050532bf1f34e8fab3b46f624a06d65bb1f69c36b935cae36f34fc9
3
+ size 489873399
clean/partial-train.360/0003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d42df2d99b65a5278b7696a66785672395979dda05a5c5002daab14dd73d74d
3
+ size 492099993
clean/partial-train.360/0004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33c109cd5494682040af945cf22c377cb12adbe8b21f226993d2b4c59d23afef
3
+ size 489786444
clean/partial-train.360/0005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbfc0ed8945d20f5ab2c5493c64f708b5034e63632484580d632c7c81aee2243
3
+ size 500037228
clean/partial-train.360/0006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:799ff7efa351a6bd9f930e8f831434d7743df6f5eccd6920d0d3bf2eeaa34f05
3
+ size 492712955
clean/partial-train.360/0007.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee12dbbf1771e48451ce9cd5d2ff8ff6bc266b39d83b8ae31971231bd5ca5550
3
+ size 488286852
clean/partial-train.360/0008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a0bfaa8f8f43dc91a34579032af24c04668a4b7a4738fe28f9cf49a28bc5542
3
+ size 494060413
clean/partial-train.360/0009.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8931f1103530165d878768441635cf8e4a26abf766991bf5bf26e8664a99849
3
+ size 419894445
librispeech_train_clean_only.py DELETED
@@ -1,161 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2021 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- # Lint as: python3
17
- """Librispeech automatic speech recognition dataset."""
18
-
19
-
20
- import os
21
-
22
- import datasets
23
- from datasets.tasks import AutomaticSpeechRecognition
24
-
25
-
26
- _CITATION = """\
27
- @inproceedings{panayotov2015librispeech,
28
- title={Librispeech: an ASR corpus based on public domain audio books},
29
- author={Panayotov, Vassil and Chen, Guoguo and Povey, Daniel and Khudanpur, Sanjeev},
30
- booktitle={Acoustics, Speech and Signal Processing (ICASSP), 2015 IEEE International Conference on},
31
- pages={5206--5210},
32
- year={2015},
33
- organization={IEEE}
34
- }
35
- """
36
-
37
- _DESCRIPTION = """\
38
- LibriSpeech is a corpus of approximately 1000 hours of read English speech with sampling rate of 16 kHz,
39
- prepared by Vassil Panayotov with the assistance of Daniel Povey. The data is derived from read
40
- audiobooks from the LibriVox project, and has been carefully segmented and aligned.87
41
- """
42
-
43
- _URL = "http://www.openslr.org/12"
44
- _DL_URL = "http://www.openslr.org/resources/12/"
45
-
46
-
47
- _DL_URLS = {
48
- "clean": {
49
- "train.100": _DL_URL + "train-clean-100.tar.gz",
50
- "train.360": _DL_URL + "train-clean-360.tar.gz",
51
- },
52
- "all": {
53
- "train.100": _DL_URL + "train-clean-100.tar.gz",
54
- "train.360": _DL_URL + "train-clean-360.tar.gz",
55
- },
56
- }
57
-
58
-
59
- class LibrispeechASRConfig(datasets.BuilderConfig):
60
- """BuilderConfig for LibriSpeechASR."""
61
-
62
- def __init__(self, **kwargs):
63
- """
64
- Args:
65
- data_dir: `string`, the path to the folder containing the files in the
66
- downloaded .tar
67
- citation: `string`, citation for the data set
68
- url: `string`, url for information about the data set
69
- **kwargs: keyword arguments forwarded to super.
70
- """
71
- super(LibrispeechASRConfig, self).__init__(version=datasets.Version("2.1.0", ""), **kwargs)
72
-
73
-
74
- class LibrispeechASR(datasets.GeneratorBasedBuilder):
75
- """Librispeech dataset."""
76
-
77
- DEFAULT_WRITER_BATCH_SIZE = 256
78
- DEFAULT_CONFIG_NAME = "all"
79
- BUILDER_CONFIGS = [LibrispeechASRConfig(name="clean", description="'Clean' speech.")]
80
-
81
- def _info(self):
82
- return datasets.DatasetInfo(
83
- description=_DESCRIPTION,
84
- features=datasets.Features(
85
- {
86
- "file": datasets.Value("string"),
87
- "audio": datasets.Audio(sampling_rate=16_000),
88
- "text": datasets.Value("string"),
89
- "speaker_id": datasets.Value("int64"),
90
- "chapter_id": datasets.Value("int64"),
91
- "id": datasets.Value("string"),
92
- }
93
- ),
94
- supervised_keys=("file", "text"),
95
- homepage=_URL,
96
- citation=_CITATION,
97
- task_templates=[AutomaticSpeechRecognition(audio_column="audio", transcription_column="text")],
98
- )
99
-
100
- def _split_generators(self, dl_manager):
101
- archive_path = dl_manager.download(_DL_URLS[self.config.name])
102
- # (Optional) In non-streaming mode, we can extract the archive locally to have actual local audio files:
103
- local_extracted_archive = dl_manager.extract(archive_path) if not dl_manager.is_streaming else {}
104
-
105
- if self.config.name == "clean" or self.config.name == "all":
106
- train_splits = [
107
- datasets.SplitGenerator(
108
- name="train.100",
109
- gen_kwargs={
110
- "local_extracted_archive": local_extracted_archive.get("train.100"),
111
- "files": dl_manager.iter_archive(archive_path["train.100"]),
112
- },
113
- ),
114
- datasets.SplitGenerator(
115
- name="train.360",
116
- gen_kwargs={
117
- "local_extracted_archive": local_extracted_archive.get("train.360"),
118
- "files": dl_manager.iter_archive(archive_path["train.360"]),
119
- },
120
- ),
121
- ]
122
-
123
- return train_splits
124
-
125
- def _generate_examples(self, files, local_extracted_archive):
126
- """Generate examples from a LibriSpeech archive_path."""
127
- key = 0
128
- audio_data = {}
129
- transcripts = []
130
- for path, f in files:
131
- if path.endswith(".flac"):
132
- id_ = path.split("/")[-1][: -len(".flac")]
133
- audio_data[id_] = f.read()
134
- elif path.endswith(".trans.txt"):
135
- for line in f:
136
- if line:
137
- line = line.decode("utf-8").strip()
138
- id_, transcript = line.split(" ", 1)
139
- audio_file = f"{id_}.flac"
140
- speaker_id, chapter_id = [int(el) for el in id_.split("-")[:2]]
141
- audio_file = (
142
- os.path.join(local_extracted_archive, audio_file)
143
- if local_extracted_archive
144
- else audio_file
145
- )
146
- transcripts.append(
147
- {
148
- "id": id_,
149
- "speaker_id": speaker_id,
150
- "chapter_id": chapter_id,
151
- "file": audio_file,
152
- "text": transcript,
153
- }
154
- )
155
- if audio_data and len(audio_data) == len(transcripts):
156
- for transcript in transcripts:
157
- audio = {"path": transcript["file"], "bytes": audio_data[transcript["id"]]}
158
- yield key, {"audio": audio, **transcript}
159
- key += 1
160
- audio_data = {}
161
- transcripts = []