Update README.md
Browse files
README.md
CHANGED
@@ -61,3 +61,75 @@ configs:
|
|
61 |
- split: test.other
|
62 |
path: data/test.other-*
|
63 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
- split: test.other
|
62 |
path: data/test.other-*
|
63 |
---
|
64 |
+
|
65 |
+
# Condensed LibriSpeech ASR
|
66 |
+
|
67 |
+
This dataset is a condensed version of the [LibriSpeech ASR dataset](https://huggingface.co/datasets/openslr/librispeech_asr), created by subsampling approximately 10% of the original data from each split. It is intended for quick experimentation, prototyping, and debugging when working with Automatic Speech Recognition (ASR) tasks.
|
68 |
+
|
69 |
+
## Dataset Details
|
70 |
+
|
71 |
+
- **Original Dataset:** [LibriSpeech ASR](https://huggingface.co/datasets/openslr/librispeech_asr)
|
72 |
+
- **Condensation Ratio:** Approximately 10% of the full dataset
|
73 |
+
- **Splits Included:**
|
74 |
+
- `train.clean.100`
|
75 |
+
- `train.clean.360`
|
76 |
+
- `train.other.500`
|
77 |
+
- `validation.clean`
|
78 |
+
- `validation.other`
|
79 |
+
- `test.clean`
|
80 |
+
- `test.other`
|
81 |
+
|
82 |
+
For each split, a default number of examples was extracted:
|
83 |
+
- **Training Splits:** 1,000 examples each
|
84 |
+
- **Validation/Test Splits:** 100 examples each
|
85 |
+
|
86 |
+
## Data Format
|
87 |
+
|
88 |
+
Each sample in the dataset contains the following fields:
|
89 |
+
|
90 |
+
- **file:**
|
91 |
+
A path to the original audio file (FLAC format).
|
92 |
+
|
93 |
+
- **audio:**
|
94 |
+
A dictionary containing:
|
95 |
+
- `path`: Path to the audio file.
|
96 |
+
- `array`: The decoded audio waveform as a NumPy array.
|
97 |
+
- `sampling_rate`: The sampling rate (typically 16 kHz).
|
98 |
+
|
99 |
+
- **text:**
|
100 |
+
The transcription corresponding to the audio.
|
101 |
+
|
102 |
+
- **id:**
|
103 |
+
A unique identifier for the sample.
|
104 |
+
|
105 |
+
- **speaker_id:**
|
106 |
+
A unique identifier for the speaker.
|
107 |
+
|
108 |
+
- **chapter_id:**
|
109 |
+
An identifier corresponding to the audiobook chapter.
|
110 |
+
|
111 |
+
## How Was This Dataset Created?
|
112 |
+
|
113 |
+
The condensed dataset was generated by streaming the full [LibriSpeech ASR dataset](https://huggingface.co/datasets/openslr/librispeech_asr) using the Hugging Face Datasets library and selecting approximately 10% of each split. This process preserves the original structure and fields, enabling seamless use with models and workflows designed for LibriSpeech.
|
114 |
+
|
115 |
+
## Usage Example
|
116 |
+
|
117 |
+
Below is a Python snippet to load and inspect the dataset:
|
118 |
+
|
119 |
+
```python
|
120 |
+
from datasets import load_dataset
|
121 |
+
|
122 |
+
# Load the condensed dataset from the Hugging Face Hub
|
123 |
+
dataset = load_dataset("nyalpatel/condensed_librispeech_asr")
|
124 |
+
|
125 |
+
# Access a specific split (e.g., test.clean)
|
126 |
+
test_dataset = dataset["test.clean"]
|
127 |
+
|
128 |
+
# Display the first example in the test set
|
129 |
+
print(test_dataset[0])
|
130 |
+
|
131 |
+
|
132 |
+
|
133 |
+
|
134 |
+
|
135 |
+
|