Datasets:
Git Add -> Pre-documentation README file
Browse files
README.md
ADDED
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# jeli-asr-data-manifest
|
2 |
+
|
3 |
+
This repository contains a resampled version of `jeli-asr` dataset with correponding NeMo data manifests.
|
4 |
+
|
5 |
+
## Directory Structure
|
6 |
+
|
7 |
+
The directory structure is as follows:
|
8 |
+
|
9 |
+
```
|
10 |
+
jeli-data-manifest/
|
11 |
+
│
|
12 |
+
├── audios/
|
13 |
+
│ ├── train/
|
14 |
+
│ └── test/
|
15 |
+
│
|
16 |
+
├── french-manifests/
|
17 |
+
│ ├── train_french_manifest.json
|
18 |
+
│ └── test_french_manifest.json
|
19 |
+
│
|
20 |
+
├── manifests/
|
21 |
+
│ ├── train_manifest.json
|
22 |
+
│ └── test_manifest.json
|
23 |
+
│
|
24 |
+
└── scripts/
|
25 |
+
└── create_manifest.py
|
26 |
+
└── clean_tsv.py
|
27 |
+
```
|
28 |
+
|
29 |
+
### 1. **audios/**
|
30 |
+
This directory contains the audio files (.wav format) of every example in the dataset. The audio files are split into two subdirectories:
|
31 |
+
- **train/**: Contains audio files used for training.
|
32 |
+
- **test/**: Contains audio files used for testing.
|
33 |
+
|
34 |
+
The audio files vary in length and correspond to each entry in the manifest files. They are referenced by file paths in the manifest files. The audios directory has not been uploaded to github but it is accessible on [google drive](#)
|
35 |
+
|
36 |
+
### 2. **manifests/**
|
37 |
+
This directory contains the manifest files used for training speech recognition (ASR) models. There are two JSON files:
|
38 |
+
- **train_manifest.json**: Contains file paths, durations, and transcriptions for the training set.
|
39 |
+
- **test_manifest.json**: Contains file paths, durations, and transcriptions for the test set.
|
40 |
+
|
41 |
+
Each line in the manifest files is a JSON object with the following structure:
|
42 |
+
```json
|
43 |
+
{
|
44 |
+
"audio_filepath": "jeli-data-manifest/audios/train/griots_r19-1609461-1627744.wav",
|
45 |
+
"duration": 18.283,
|
46 |
+
"text": "I kun tɛ kɔrɔta maa min si kakɔrɔ n'ita ye, i ŋɛ t'a ŋɛ ye..."
|
47 |
+
}
|
48 |
+
```
|
49 |
+
- **audio_filepath**: The relative path to the corresponding audio file.
|
50 |
+
- **duration**: The duration of the audio file in seconds.
|
51 |
+
- **text**: The transcription of the audio in Bambara.
|
52 |
+
|
53 |
+
### 3. **french-manifests/**
|
54 |
+
This directory contains French equivalent manifest files for the dataset. The structure is similar to the `manifests/` directory but with French transcriptions:
|
55 |
+
- **train_french_manifest.json**: Contains the French transcriptions for the training set.
|
56 |
+
- **test_french_manifest.json**: Contains the French transcriptions for the test set.
|
57 |
+
|
58 |
+
### 4. **scripts/**
|
59 |
+
This directory contains scripts used to process the data and create manifest files:
|
60 |
+
- **create_manifest.py**: A script used to create manifest files for training and testing. It samples the audio files and generates the corresponding JSON manifest files.
|
61 |
+
- **clean_tsv.py**: Script to remove some of the most common issues in the .tsv transcription files, such as unwanted characters (", <>), consecutive tabs (making some rows incositent) and spacing errors
|
62 |
+
|
63 |
+
## Dataset Overview
|
64 |
+
|
65 |
+
The dataset consists of 11,582 audio-transcription pairs:
|
66 |
+
- **Training set**: 9,845 examples (85%)
|
67 |
+
- **Test set**: 1,737 examples (15%)
|
68 |
+
|
69 |
+
Each audio file is paired with a transcription in Bambara, and the corresponding French transcriptions are available in the `french-manifests/` directory.
|
70 |
+
|
71 |
+
## Usage
|
72 |
+
|
73 |
+
The manifest files are specifically created for training Automatic Speech Recognition (ASR) models in NVIDIA NeMo, but they can be used with any other framework that supports manifest-based input formats.
|
74 |
+
|
75 |
+
To use the dataset, simply load the manifest files (`train_manifest.json` and `test_manifest.json`) in your training script. The file paths for the audio files and the corresponding transcriptions are already provided in these manifest files.
|
76 |
+
|
77 |
+
### Reconstructing the Directory Locally
|
78 |
+
|
79 |
+
Downloading the dataset:
|
80 |
+
|
81 |
+
```python
|
82 |
+
from datasets import load_dataset
|
83 |
+
|
84 |
+
# Clone dataset repository with directory structure
|
85 |
+
!git clone https://huggingface.co/datasets/RobotsMali/jeli-data-manifest
|
86 |
+
|
87 |
+
# Load the dataset into Hugging Face Dataset object
|
88 |
+
dataset = load_dataset("jeli-data-manifest/manifests/train_manifest.json")
|
89 |
+
|
90 |
+
# The directory structure remains intact for additional file access
|
91 |
+
|
92 |
+
|
93 |
+
### Example NeMo Usage
|
94 |
+
```
|
95 |
+
|
96 |
+
```python
|
97 |
+
from nemo.collections.asr.models import ASRModel
|
98 |
+
train_manifest = 'jeli-data-manifest/manifests/train_manifest.json'
|
99 |
+
test_manifest = 'jeli-data-manifest/manifests/test_manifest.json'
|
100 |
+
|
101 |
+
asr_model = ASRModel.from_pretrained("QuartzNet15x5Base-En")
|
102 |
+
asr_model.setup_training_data(train_data_config={'manifest_filepath': train_manifest})
|
103 |
+
asr_model.setup_validation_data(val_data_config={'manifest_filepath': test_manifest})
|
104 |
+
```
|
105 |
+
|
106 |
+
## Issues
|
107 |
+
This version has just performed some shallow cleaning on the transcriptions and resampled the audios. It has conserved most of the issues of the original dataset such as:
|
108 |
+
|
109 |
+
- **Misaligned / Invalid segmentation**
|
110 |
+
- **Language / Incorrect transcriptions**
|
111 |
+
- **Non-standardized naming conventions**
|
112 |
+
|
113 |
+
## Citation
|
114 |
+
|
115 |
+
If you use this dataset in your research or project, please give credit to the creators of the original Jeli-ASR dataset.
|
116 |
+
|
117 |
+
---
|