erikbozik commited on
Commit
7ca2dea
·
verified ·
1 Parent(s): 10acc0f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +146 -149
README.md CHANGED
@@ -1,149 +1,146 @@
1
- ---
2
- dataset_info:
3
- features:
4
- - name: id
5
- dtype: int64
6
- - name: start_time
7
- dtype: float32
8
- - name: end_time
9
- dtype: float32
10
- - name: session_num
11
- dtype: int64
12
- - name: snapshot
13
- dtype: date32
14
- - name: segment_number
15
- dtype: int64
16
- - name: text
17
- dtype: string
18
- - name: duration
19
- dtype: float32
20
- - name: audio
21
- dtype:
22
- path: string
23
- array: audio
24
- sampling_rate: int32
25
- splits:
26
- - name: train
27
- num_examples: 402966
28
- configs:
29
- - config_name: default
30
- data_files:
31
- - split: train
32
- path: data/train-*
33
- task_categories:
34
- - automatic-speech-recognition
35
- language:
36
- - sk
37
- tags:
38
- - speech
39
- - asr
40
- - slovak
41
- - parliament
42
- - legal
43
- - politics
44
- - whisper
45
- pretty_name: Slovak Parliamentary ASR Corpus
46
- size_categories:
47
- - 1M<n<10M
48
- ---
49
-
50
- # Slovak Parliamentary ASR Corpus
51
-
52
- This dataset contains **aligned and segmented Slovak speech–text pairs** sourced from official plenary session recordings of the **Slovak National Council** (Národná rada Slovenskej republiky).
53
- It was prepared by collecting raw audio from [MediaPortál NR SR](https://tv.nrsr.sk) and matching it with official full-text transcripts from the [Joint Czech and Slovak Digital Parliamentary Library](https://www.nrsr.sk/dl/).
54
- A custom alignment and filtering pipeline segmented the recordings into **short clips (≤30 seconds)** with their corresponding transcriptions, producing a **2,806-hour ASR-ready dataset**.
55
-
56
- ## 📌 Dataset Summary
57
-
58
- - **Total duration**: 2,806 hours
59
- - **Number of segments**: 402,966
60
- - **Average segment length**: ~25.1 seconds
61
- - **Domain**: formal Slovak parliamentary speech
62
- - **Use cases**: ASR model fine-tuning, speech research
63
-
64
- ## 📁 Data Structure
65
-
66
- Each dataset entry has the following fields:
67
-
68
- ```json
69
- {
70
- "id": 101036,
71
- "start_time": 2949.985,
72
- "end_time": 2974.976,
73
- "session_num": 19,
74
- "snapshot": "2024-09-13",
75
- "segment_number": 108,
76
- "text": "všetkých členov výboru, ktorí neprišli na zasadnutie výboru, lebo sa rozhodli, že ho budú ignorovať, ako to urobili viackrát poslanci koalície, keď chceli znefunkčniť výbor? Potom asi tých by sme mali odvolať pri takomto postupe, lebo ja som riadne zasadnutie urobila, no ale koaliční poslanci sa rozhodli na niektorých nebyť, lebo sa im nechcelo. A potom tie ostatné dva body, no to je smiešne! Ďalší, tretí bod, že verejne spochybňujem a tým sa propagujem. No, prosím",
77
- "duration": 24.99,
78
- "audio": {
79
- "path": "19_2024-09-13_108.mp3",
80
- "array": [
81
- 1.32518352e-07, -2.97130391e-08, -1.27864055e-07, ...,
82
- -1.25169004e-06, 1.16862184e-05, 4.28082467e-06
83
- ],
84
- "sampling_rate": 16000
85
- }
86
- }
87
- ```
88
-
89
- ### 🔍 Field Descriptions
90
-
91
- - **`id`**: Unique integer identifier for the segment.
92
- - **`start_time`**: Start timestamp (in seconds) within the original session recording.
93
- - **`end_time`**: End timestamp (in seconds) within the original session recording.
94
- - **`session_num`**: Parliamentary session number in the election term.
95
- - **`snapshot`**: Date of the session.
96
- - **`segment_number`**: Sequential index of the segment in the session.
97
- - **`text`**: Slovak transcript (transcriber notes removed).
98
- - **`duration`**: Segment duration in seconds.
99
- - **`audio`**: Audio object containing local file path, waveform array, and sampling rate.
100
-
101
- ## ⚙️ Processing & Alignment
102
-
103
- 1. **Collection**
104
- - Audio scraped to `.mp3` format.
105
- - Transcripts downloaded in `.docx` format.
106
-
107
- 2. **Parsing**
108
- - Extracted speaker-segmented utterances.
109
- - Removed transcriber notes.
110
-
111
- 3. **Alignment**
112
- - Matched words from the ground-truth transcript with a pseudo-labeled transcript generated from the audio.
113
- - **Assigned timestamps** to the matched words using the pseudo-labeled transcript, which had been force-aligned.
114
-
115
- 4. **Segmentation**
116
- - Created segments ≤30 seconds based on the matched words.
117
-
118
- 5. **Filtering**
119
- - Re-transcribed each segment.
120
- - Discarded any with WER > 40%.
121
- - Final dataset: 2,806 hours; 402,966 segments.
122
-
123
-
124
- ## 📊 Statistics
125
-
126
- | Metric | Value |
127
- |----------------|--------------:|
128
- | Total hours | 2,806 |
129
- | Total segments | 402,966 |
130
- | Avg. duration | 25.1 sec |
131
- | Sample rate | 16 kHz |
132
-
133
-
134
- ## 🚀 Example usage
135
-
136
- ```python
137
- from datasets import load_dataset
138
-
139
- ds = load_dataset("erikbozik/slovak-parliamentary-asr-corpus", split="train")
140
-
141
- sample = ds[0]
142
- print(sample["text"])
143
- print(sample["duration"], "seconds")
144
- sample["audio"]["array"] # numpy waveform
145
- ```
146
-
147
- ## Citation & Paper
148
-
149
- Coming soon
 
1
+ ---
2
+ dataset_info:
3
+ features:
4
+ - name: id
5
+ dtype: int64
6
+ - name: start_time
7
+ dtype: float32
8
+ - name: end_time
9
+ dtype: float32
10
+ - name: session_num
11
+ dtype: int64
12
+ - name: snapshot
13
+ dtype: date32
14
+ - name: segment_number
15
+ dtype: int64
16
+ - name: text
17
+ dtype: string
18
+ - name: duration
19
+ dtype: float32
20
+ - name: audio
21
+ dtype: audio
22
+ splits:
23
+ - name: train
24
+ num_examples: 402966
25
+ configs:
26
+ - config_name: default
27
+ data_files:
28
+ - split: train
29
+ path: data/train-*
30
+ task_categories:
31
+ - automatic-speech-recognition
32
+ language:
33
+ - sk
34
+ tags:
35
+ - speech
36
+ - asr
37
+ - slovak
38
+ - parliament
39
+ - legal
40
+ - politics
41
+ - whisper
42
+ pretty_name: Slovak Parliamentary ASR Corpus
43
+ size_categories:
44
+ - 1M<n<10M
45
+ ---
46
+
47
+ # Slovak Parliamentary ASR Corpus
48
+
49
+ This dataset contains **aligned and segmented Slovak speech–text pairs** sourced from official plenary session recordings of the **Slovak National Council** (Národná rada Slovenskej republiky).
50
+ It was prepared by collecting raw audio from [MediaPortál NR SR](https://tv.nrsr.sk) and matching it with official full-text transcripts from the [Joint Czech and Slovak Digital Parliamentary Library](https://www.nrsr.sk/dl/).
51
+ A custom alignment and filtering pipeline segmented the recordings into **short clips (≤30 seconds)** with their corresponding transcriptions, producing a **2,806-hour ASR-ready dataset**.
52
+
53
+ ## 📌 Dataset Summary
54
+
55
+ - **Total duration**: 2,806 hours
56
+ - **Number of segments**: 402,966
57
+ - **Average segment length**: ~25.1 seconds
58
+ - **Domain**: formal Slovak parliamentary speech
59
+ - **Use cases**: ASR model fine-tuning, speech research
60
+
61
+ ## 📁 Data Structure
62
+
63
+ Each dataset entry has the following fields:
64
+
65
+ ```json
66
+ {
67
+ "id": 101036,
68
+ "start_time": 2949.985,
69
+ "end_time": 2974.976,
70
+ "session_num": 19,
71
+ "snapshot": "2024-09-13",
72
+ "segment_number": 108,
73
+ "text": "všetkých členov výboru, ktorí neprišli na zasadnutie výboru, lebo sa rozhodli, že ho budú ignorovať, ako to urobili viackrát poslanci koalície, keď chceli znefunkčniť výbor? Potom asi tých by sme mali odvolať pri takomto postupe, lebo ja som riadne zasadnutie urobila, no ale koaliční poslanci sa rozhodli na niektorých nebyť, lebo sa im nechcelo. A potom tie ostatné dva body, no to je smiešne! Ďalší, tretí bod, že verejne spochybňujem a tým sa propagujem. No, prosím",
74
+ "duration": 24.99,
75
+ "audio": {
76
+ "path": "19_2024-09-13_108.mp3",
77
+ "array": [
78
+ 1.32518352e-07, -2.97130391e-08, -1.27864055e-07, ...,
79
+ -1.25169004e-06, 1.16862184e-05, 4.28082467e-06
80
+ ],
81
+ "sampling_rate": 16000
82
+ }
83
+ }
84
+ ```
85
+
86
+ ### 🔍 Field Descriptions
87
+
88
+ - **`id`**: Unique integer identifier for the segment.
89
+ - **`start_time`**: Start timestamp (in seconds) within the original session recording.
90
+ - **`end_time`**: End timestamp (in seconds) within the original session recording.
91
+ - **`session_num`**: Parliamentary session number in the election term.
92
+ - **`snapshot`**: Date of the session.
93
+ - **`segment_number`**: Sequential index of the segment in the session.
94
+ - **`text`**: Slovak transcript (transcriber notes removed).
95
+ - **`duration`**: Segment duration in seconds.
96
+ - **`audio`**: Audio object containing local file path, waveform array, and sampling rate.
97
+
98
+ ## ⚙️ Processing & Alignment
99
+
100
+ 1. **Collection**
101
+ - Audio scraped to `.mp3` format.
102
+ - Transcripts downloaded in `.docx` format.
103
+
104
+ 2. **Parsing**
105
+ - Extracted speaker-segmented utterances.
106
+ - Removed transcriber notes.
107
+
108
+ 3. **Alignment**
109
+ - Matched words from the ground-truth transcript with a pseudo-labeled transcript generated from the audio.
110
+ - **Assigned timestamps** to the matched words using the pseudo-labeled transcript, which had been force-aligned.
111
+
112
+ 4. **Segmentation**
113
+ - Created segments ≤30 seconds based on the matched words.
114
+
115
+ 5. **Filtering**
116
+ - Re-transcribed each segment.
117
+ - Discarded any with WER > 40%.
118
+ - Final dataset: 2,806 hours; 402,966 segments.
119
+
120
+
121
+ ## 📊 Statistics
122
+
123
+ | Metric | Value |
124
+ |----------------|--------------:|
125
+ | Total hours | 2,806 |
126
+ | Total segments | 402,966 |
127
+ | Avg. duration | 25.1 sec |
128
+ | Sample rate | 16 kHz |
129
+
130
+
131
+ ## 🚀 Example usage
132
+
133
+ ```python
134
+ from datasets import load_dataset
135
+
136
+ ds = load_dataset("erikbozik/slovak-parliamentary-asr-corpus", split="train")
137
+
138
+ sample = ds[0]
139
+ print(sample["text"])
140
+ print(sample["duration"], "seconds")
141
+ sample["audio"]["array"] # numpy waveform
142
+ ```
143
+
144
+ ## Citation & Paper
145
+
146
+ Coming soon