parquet-converter commited on
Commit
01a9fe9
1 Parent(s): 5225ee1

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,27 +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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
clean/zeroth_korean-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5584b240fb787a9737c890b186fdee40bf829277b4f1e70c0cafa41f96ccf487
3
+ size 59832135
clean/zeroth_korean-train-00000-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6bbe001c57686a591c65959bf5b3a965440f44861c33d51189584fc84a9775d3
3
+ size 620417181
clean/zeroth_korean-train-00001-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2b5d323de80012124415900668bf9daab8de0490fe096f74cc863a55c5ccf4b
3
+ size 505099460
clean/zeroth_korean-train-00002-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4020f3569ca43a098f355b8636dee1b21a979acc908ba4f6540587eb0e056bd1
3
+ size 509475081
clean/zeroth_korean-train-00003-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c716eeb2ef6d8338ca5321ca0ae35bd9487204b3f9ebde53a547577c7d2a3871
3
+ size 499346114
clean/zeroth_korean-train-00004-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:289ed070fea7ca639cf0d26150397b53d999bc7919acd5f3bb6a259a9e1d95e7
3
+ size 527755754
clean/zeroth_korean-train-00005-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a888d05e9d23f24be19a8e7fe86672201ce43528d6d71d53e9260798d7cc32f
3
+ size 154148728
zeroth_korean.py DELETED
@@ -1,112 +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
- from __future__ import absolute_import, division, print_function
20
-
21
- import glob
22
- import os
23
-
24
- import datasets
25
-
26
-
27
- _CITATION = """\
28
-
29
- """
30
-
31
- _DESCRIPTION = """\
32
- This is Zeroth-Korean corpus,
33
- licensed under Attribution 4.0 International (CC BY 4.0)
34
- The data set contains transcriebed audio data for Korean. There are 51.6 hours transcribed Korean audio for training data (22,263 utterances, 105 people, 3000 sentences) and 1.2 hours transcribed Korean audio for testing data (457 utterances, 10 people). This corpus also contains pre-trained/designed language model, lexicon and morpheme-based segmenter(morfessor).
35
- Zeroth project introduces free Korean speech corpus and aims to make Korean speech recognition more broadly accessible to everyone.
36
- This project was developed in collaboration between Lucas Jo(@Atlas Guide Inc.) and Wonkyum Lee(@Gridspace Inc.).
37
-
38
- Contact: Lucas Jo(lucasjo@goodatlas.com), Wonkyum Lee(wonkyum@gridspace.com)
39
- """
40
-
41
- _URL = "http://www.openslr.org/40"
42
- _DL_URL = "https://www.openslr.org/resources/40/zeroth_korean.tar.gz"
43
-
44
-
45
- class ZerothKoreanASRConfig(datasets.BuilderConfig):
46
-
47
-
48
- def __init__(self, **kwargs):
49
- """
50
- Args:
51
- data_dir: `string`, the path to the folder containing the files in the
52
- downloaded .tar
53
- citation: `string`, citation for the data set
54
- url: `string`, url for information about the data set
55
- **kwargs: keyword arguments forwarded to super.
56
- """
57
- super(ZerothKoreanASRConfig, self).__init__(version=datasets.Version("1.0.1", ""), **kwargs)
58
-
59
-
60
- class ZerothKoreanASR(datasets.GeneratorBasedBuilder):
61
- """Librispeech dataset."""
62
-
63
- BUILDER_CONFIGS = [
64
- ZerothKoreanASRConfig(name="clean", description="'Clean' speech.")
65
- ]
66
-
67
- def _info(self):
68
- return datasets.DatasetInfo(
69
- description=_DESCRIPTION,
70
- features=datasets.Features(
71
- {
72
- "file": datasets.Value("string"),
73
- "audio": datasets.features.Audio(sampling_rate=16_000),
74
- "text": datasets.Value("string"),
75
- "speaker_id": datasets.Value("int64"),
76
- "chapter_id": datasets.Value("int64"),
77
- "id": datasets.Value("string"),
78
- }
79
- ),
80
- supervised_keys=("speech", "text"),
81
- homepage=_URL,
82
- citation=_CITATION,
83
- )
84
-
85
- def _split_generators(self, dl_manager):
86
- archive_path = dl_manager.download_and_extract(_DL_URL)
87
- #print(archive_path)
88
- return [
89
- datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"archive_path": archive_path, "split_name": f"train_data_01"}),
90
- datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"archive_path": archive_path, "split_name": f"test_data_01"}),
91
- ]
92
-
93
- def _generate_examples(self, archive_path, split_name):
94
-
95
- transcripts_glob = os.path.join(archive_path, split_name, "*/*/*.txt")
96
- for transcript_file in glob.glob(transcripts_glob):
97
- path = os.path.dirname(transcript_file)
98
- with open(os.path.join(path, transcript_file)) as f:
99
- for line in f:
100
- line = line.strip()
101
- key, transcript = line.split(" ", 1)
102
- audio_file = f"{key}.flac"
103
- speaker_id, chapter_id = [int(el) for el in key.split("_")[:2]]
104
- example = {
105
- "id": key,
106
- "speaker_id": speaker_id,
107
- "chapter_id": chapter_id,
108
- "file": os.path.join(path, audio_file),
109
- "audio": os.path.join(path, audio_file),
110
- "text": transcript,
111
- }
112
- yield key, example