diarray commited on
Commit
061c9e2
·
1 Parent(s): 5ab6cc6

Update Documentation and Dataset Viewer

Browse files
Files changed (2) hide show
  1. README.md +30 -12
  2. VERSIONING.md +22 -0
README.md CHANGED
@@ -49,8 +49,8 @@ configs:
49
  data_files:
50
  - split: train
51
  path:
52
- - "rt-data-collection/train/*.arrow"
53
  - "oza-mali-pense/train/*.arrow"
 
54
  - "bam-asr-oza/train/*.arrow"
55
  - "jeli-asr-rmai/train/*.arrow"
56
  - split: test
@@ -85,7 +85,7 @@ description: |
85
 
86
  # All Bambara ASR Dataset
87
 
88
- This dataset aims to gather all publicly available Bambara ASR datasets. It is primarily composed of the **Jeli-ASR** dataset (available at [RobotsMali/jeli-asr](https://huggingface.co/datasets/RobotsMali/jeli-asr)), along with the **Mali-Pense** data curated and published by Aboubacar Ouattara (available at [oza75/bambara-tts](https://huggingface.co/datasets/oza75/bambara-tts)). Additionally, it includes 1 hour of audio recently collected by the RobotsMali AI4D Lab, featuring children's voices reading some of RobotsMali GAIFE books. This dataset is desihgned for automatic speech recognition (ASR) task primarily.
89
 
90
  ## Important Notes
91
 
@@ -111,28 +111,46 @@ This dataset aims to gather all publicly available Bambara ASR datasets. It is p
111
 
112
  ## **Usage**
113
 
114
- You can download and use this dataset with the Datasets library for download the archives to reconstruct the dataset with a specific structure for non HuggingFace workflows.
 
 
 
 
 
 
 
 
 
115
 
116
  ### Downloading the Dataset:
117
 
118
- ```bash
119
 
 
120
  # Clone dataset repository maintaining directory structure for quick setup with Nemo
121
- # To be updated
122
- git clone --depth 1 https://huggingface.co/datasets/RobotsMali/bam-asr-all
123
  ```
124
 
125
- **OR**
126
 
127
- ```python
 
 
 
 
 
128
 
129
- from datasets import load_dataset
130
 
131
- # Load the dataset into Hugging Face Dataset object
132
- dataset = load_dataset("RobotsMali/bam-asr-all")
133
- # Note: You can also download only a specific subset if you with
 
 
134
  ```
135
 
 
 
136
  ## **Known Issues**
137
 
138
  This dataset also has most of the issues of Jeli-ASR, including a few misaligned samples. Additionally a few samples from the mali pense subset and all the data from the rt-data-collection subset don't currently have french translations
 
49
  data_files:
50
  - split: train
51
  path:
 
52
  - "oza-mali-pense/train/*.arrow"
53
+ - "rt-data-collection/train/*.arrow"
54
  - "bam-asr-oza/train/*.arrow"
55
  - "jeli-asr-rmai/train/*.arrow"
56
  - split: test
 
85
 
86
  # All Bambara ASR Dataset
87
 
88
+ This dataset aims to gather all publicly available Bambara ASR datasets. It is primarily composed of the **Jeli-ASR** dataset (available at [RobotsMali/jeli-asr](https://huggingface.co/datasets/RobotsMali/jeli-asr)), along with the **Mali-Pense** data curated and published by Aboubacar Ouattara (available at [oza75/bambara-tts](https://huggingface.co/datasets/oza75/bambara-tts)). Additionally, it includes 1 hour of audio recently collected by the RobotsMali AI4D Lab, featuring children's voices reading some of RobotsMali GAIFE books. This dataset is designed for automatic speech recognition (ASR) task primarily.
89
 
90
  ## Important Notes
91
 
 
111
 
112
  ## **Usage**
113
 
114
+ The data in the main branch are in .arrow format for compatibility with HF's Datasets Library. So you don't need any ajustement to load the dataset directly with datasets:
115
+
116
+ ```python
117
+ from datasets import load_dataset
118
+
119
+ # Load the dataset into Hugging Face Dataset object
120
+ dataset = load_dataset("RobotsMali/bam-asr-all")
121
+ ```
122
+
123
+ However, an "archives" branch has been added for improved versioning of the dataset and to facilitate usage for those working outside the typical Hugging Face workflow. Precisely the archives are created from the directory of version 1.0.0 tailored for usage with NVIDIA's NEMO. If you prefer to reconstrcut the dataset from archives you can follow the instructions below.
124
 
125
  ### Downloading the Dataset:
126
 
127
+ You could download the dataset by git cloning this branch:
128
 
129
+ ```bash
130
  # Clone dataset repository maintaining directory structure for quick setup with Nemo
131
+ git clone --depth 1 -b archives https://huggingface.co/datasets/RobotsMali/bam-asr-all
 
132
  ```
133
 
134
+ Or you could download the individual archives that you are interested in, thus avoiding the git overload
135
 
136
+ ```bash
137
+ # Download the audios with wget
138
+ wget https://huggingface.co/datasets/RobotsMali/bam-asr-all/resolve/archives/audio-archives/bam-asr-all-1.0.0-audios.tar.gz
139
+ # Download the manifests in the same way
140
+ wget https://huggingface.co/datasets/RobotsMali/bam-asr-all/resolve/archives/manifests-archives/bam-asr-all-1.0.1-manifests.tar.gz
141
+ ```
142
 
143
+ Finally, untar those files to reconstruct the default Directory structure of jeli-asr 1.0.0:
144
 
145
+ ```bash
146
+ # untar the audios
147
+ tar -xvzf bam-asr-all-1.0.0-audios.tar.gz
148
+ # untar the manifests
149
+ tar -xvzf bam-asr-all-1.0.0-audios.tar.gz
150
  ```
151
 
152
+ This approach allow you to combine the data from different versions and restructure your working directory as you with, with more ease and without necessarily having to write code.
153
+
154
  ## **Known Issues**
155
 
156
  This dataset also has most of the issues of Jeli-ASR, including a few misaligned samples. Additionally a few samples from the mali pense subset and all the data from the rt-data-collection subset don't currently have french translations
VERSIONING.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## **Key Changes in Version 1.0.1 (December 17th)**
2
+
3
+ all-bam-asr 1.0.1 introduces several updates and enhancements, focused entirely on the transcription side of the dataset. There have been no changes to the audio files since version 1.0.0. Below are the key updates:
4
+
5
+ 1. **Symbol Removal:**
6
+ All non-vocabulary symbols deemed unnecessary for Automatic Speech Recognition (ASR) were removed, including:
7
+ `[` `]` `(` `)` `«` `»` `°` `"` `<` `>`
8
+
9
+ 2. **Punctuation Removal:**
10
+ Common punctuation marks were removed to streamline the dataset for ASR use cases. These include:
11
+ `:` `,` `;` `.` `?` `!`
12
+ The exception is the hyphen (`-`), which remains as it is used in both Bambara and French compound words. While this punctuation removal enhances ASR performance, the previous version with full punctuation may still be better suited for other applications. You can still reconstruct the previous version with the archives.
13
+
14
+ 3. **Bambara Normalization:**
15
+ The transcription were normalized using the [Bambara Normalizer](https://pypi.org/project/bambara-normalizer/), a python package designed to normalize Bambara text for different NLP applications.
16
+
17
+ 4. **Optimized Data Format:**
18
+ This version introduces `.arrow` files for efficient data storage and retrieval and compatibility with HuggingFace tools.
19
+
20
+ These changes enhance the dataset's usability for ASR tasks while providing a cleaner transcription format. Let us know if you have feedback or additional use suggestions for the dataset by opening a discussion or a pull request.
21
+
22
+ ---