parquet-converter commited on
Commit
25d7bde
·
1 Parent(s): e948fc4

Update parquet files

Browse files
README.md DELETED
@@ -1,146 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - expert-generated
4
- language:
5
- - pl
6
- license:
7
- - mit
8
- multilinguality:
9
- - monolingual
10
- dataset_info:
11
- - config_name: config
12
- features:
13
- - name: audio_id
14
- dtype: string
15
- - name: audio
16
- dtype:
17
- audio:
18
- sampling_rate: 16000
19
- - name: text
20
- dtype: string
21
- duplicated_from: j-krzywdziak/test
22
- ---
23
-
24
-
25
- # Dataset Card for [Dataset Name]
26
-
27
- ## Table of Contents
28
- - [Table of Contents](#table-of-contents)
29
- - [Dataset Description](#dataset-description)
30
- - [Dataset Summary](#dataset-summary)
31
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
32
- - [Languages](#languages)
33
- - [Dataset Structure](#dataset-structure)
34
- - [Data Instances](#data-instances)
35
- - [Data Fields](#data-fields)
36
- - [Data Splits](#data-splits)
37
- - [Dataset Creation](#dataset-creation)
38
- - [Curation Rationale](#curation-rationale)
39
- - [Source Data](#source-data)
40
- - [Annotations](#annotations)
41
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
42
- - [Considerations for Using the Data](#considerations-for-using-the-data)
43
- - [Social Impact of Dataset](#social-impact-of-dataset)
44
- - [Discussion of Biases](#discussion-of-biases)
45
- - [Other Known Limitations](#other-known-limitations)
46
- - [Additional Information](#additional-information)
47
- - [Dataset Curators](#dataset-curators)
48
- - [Licensing Information](#licensing-information)
49
- - [Citation Information](#citation-information)
50
- - [Contributions](#contributions)
51
-
52
- ## Dataset Description
53
-
54
- - **Homepage:**
55
- - **Repository:**
56
- - **Paper:**
57
- - **Leaderboard:**
58
- - **Point of Contact:**
59
-
60
- ### Dataset Summary
61
-
62
- [More Information Needed]
63
-
64
- ### Supported Tasks and Leaderboards
65
-
66
- [More Information Needed]
67
-
68
- ### Languages
69
-
70
- [More Information Needed]
71
-
72
- ## Dataset Structure
73
-
74
- ### Data Instances
75
-
76
- [More Information Needed]
77
-
78
- ### Data Fields
79
-
80
- [More Information Needed]
81
-
82
- ### Data Splits
83
-
84
- [More Information Needed]
85
-
86
- ## Dataset Creation
87
-
88
- ### Curation Rationale
89
-
90
- [More Information Needed]
91
-
92
- ### Source Data
93
-
94
- #### Initial Data Collection and Normalization
95
-
96
- [More Information Needed]
97
-
98
- #### Who are the source language producers?
99
-
100
- [More Information Needed]
101
-
102
- ### Annotations
103
-
104
- #### Annotation process
105
-
106
- [More Information Needed]
107
-
108
- #### Who are the annotators?
109
-
110
- [More Information Needed]
111
-
112
- ### Personal and Sensitive Information
113
-
114
- [More Information Needed]
115
-
116
- ## Considerations for Using the Data
117
-
118
- ### Social Impact of Dataset
119
-
120
- [More Information Needed]
121
-
122
- ### Discussion of Biases
123
-
124
- [More Information Needed]
125
-
126
- ### Other Known Limitations
127
-
128
- [More Information Needed]
129
-
130
- ## Additional Information
131
-
132
- ### Dataset Curators
133
-
134
- [More Information Needed]
135
-
136
- ### Licensing Information
137
-
138
- [More Information Needed]
139
-
140
- ### Citation Information
141
-
142
- [More Information Needed]
143
-
144
- ### Contributions
145
-
146
- Thanks to [@github-username](https://github.com/<github-username>) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
test.zip → Test Dataset/test-user-test.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9c2f80675f1ddc98cc06bbb1b2eb5df896779b78daf921bb9ee193dc8db1ffb0
3
- size 48701
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:683d6fef157510ae30d8839b4093f153eeed99a8cd4b2732a75e89296036fd1d
3
+ size 64346
test-user.py DELETED
@@ -1,125 +0,0 @@
1
- # coding=utf-8
2
- # Lint as: python3
3
- """test set"""
4
-
5
-
6
- import csv
7
- import os
8
- import json
9
-
10
- import datasets
11
- from datasets.utils.py_utils import size_str
12
- from tqdm import tqdm
13
-
14
-
15
- _CITATION = """\
16
- @inproceedings{panayotov2015librispeech,
17
- title={Librispeech: an ASR corpus based on public domain audio books},
18
- author={Panayotov, Vassil and Chen, Guoguo and Povey, Daniel and Khudanpur, Sanjeev},
19
- booktitle={Acoustics, Speech and Signal Processing (ICASSP), 2015 IEEE International Conference on},
20
- pages={5206--5210},
21
- year={2015},
22
- organization={IEEE}
23
- }
24
- """
25
-
26
- _DESCRIPTION = """\
27
- Lorem ipsum
28
- """
29
-
30
-
31
- _BASE_URL = "https://huggingface.co/datasets/j-krzywdziak/test/tree/main"
32
- _DATA_URL = "https://huggingface.co/datasets/j-krzywdziak/test/resolve/main/test.zip"
33
- _PROMPTS_URLS = {"test": "https://huggingface.co/datasets/j-krzywdziak/test/raw/main/test.tsv"}
34
-
35
- logger = datasets.logging.get_logger(__name__)
36
-
37
- class TestConfig(datasets.BuilderConfig):
38
- """Lorem impsum."""
39
-
40
- def __init__(self, name, **kwargs):
41
- # self.language = kwargs.pop("language", None)
42
- # self.release_date = kwargs.pop("release_date", None)
43
- # self.num_clips = kwargs.pop("num_clips", None)
44
- # self.num_speakers = kwargs.pop("num_speakers", None)
45
- # self.validated_hr = kwargs.pop("validated_hr", None)
46
- # self.total_hr = kwargs.pop("total_hr", None)
47
- # self.size_bytes = kwargs.pop("size_bytes", None)
48
- # self.size_human = size_str(self.size_bytes)
49
- description = (
50
- f"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor "
51
- f"incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud "
52
- f"exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure "
53
- f"dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. "
54
- f"Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt "
55
- f"mollit anim id est laborum."
56
- )
57
- super(TestConfig, self).__init__(
58
- name=name,
59
- description=description,
60
- **kwargs,
61
- )
62
-
63
- class TestASR(datasets.GeneratorBasedBuilder):
64
- """Lorem ipsum."""
65
-
66
-
67
- BUILDER_CONFIGS = [
68
- TestConfig(
69
- name="Test Dataset",
70
- )
71
- ]
72
-
73
- def _info(self):
74
- return datasets.DatasetInfo(
75
- description=_DESCRIPTION,
76
- features=datasets.Features(
77
- {
78
- "audio_id": datasets.Value("string"),
79
- "audio": datasets.Audio(sampling_rate=16_000),
80
- "ngram": datasets.Value("string")
81
- }
82
- ),
83
- supervised_keys=None,
84
- homepage=_BASE_URL,
85
- citation=_CITATION
86
- )
87
-
88
- def _split_generators(self, dl_manager):
89
- audio_path = dl_manager.download(_DATA_URL)
90
- local_extracted_archive = dl_manager.extract(audio_path) if not dl_manager.is_streaming else None
91
- meta_path = dl_manager.download(_PROMPTS_URLS)
92
- return [datasets.SplitGenerator(
93
- name=datasets.Split.TEST,
94
- gen_kwargs={
95
- "meta_path": meta_path["test"],
96
- "audio_files": dl_manager.iter_archive(audio_path),
97
- "local_extracted_archive": local_extracted_archive,
98
- }
99
- )]
100
-
101
- def _generate_examples(self, meta_path, audio_files, local_extracted_archive):
102
- """Lorem ipsum."""
103
- data_fields = list(self._info().features.keys())
104
- metadata = {}
105
- with open(meta_path, encoding="utf-8") as f:
106
- next(f)
107
- for row in f:
108
- print(row)
109
- r = row.split("\t")
110
- print(r)
111
- audio_id = r[0]
112
- ngram = r[1]
113
- metadata[audio_id] = {"audio_id": audio_id,
114
- "ngram": ngram}
115
-
116
- id_ = 0
117
- for path, f in audio_files:
118
- print(path, f)
119
- _, audio_name = os.path.split(path)
120
- if audio_name in metadata:
121
- result = dict(metadata[audio_name])
122
- path = os.path.join('test', path)
123
- result["audio"] = {"path": path, "bytes":f.read()}
124
- yield id_, result
125
- id_ +=1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
test.tsv DELETED
@@ -1,4 +0,0 @@
1
- audio_id ngram
2
- common_voice_pl_20547774.wav poślemy
3
- common_voice_pl_20547775.wav poślemy po
4
- common_voice_pl_20547776.wav poślemy po was