fiifinketia michsethowusu commited on
Commit
6372b98
·
0 Parent(s):

Duplicate from ghananlpcommunity/twi-trigrams-speech-text-parallel

Browse files

Co-authored-by: Mich-Seth Owusu <michsethowusu@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mds filter=lfs diff=lfs merge=lfs -text
13
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
14
+ *.model filter=lfs diff=lfs merge=lfs -text
15
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
16
+ *.npy filter=lfs diff=lfs merge=lfs -text
17
+ *.npz filter=lfs diff=lfs merge=lfs -text
18
+ *.onnx filter=lfs diff=lfs merge=lfs -text
19
+ *.ot filter=lfs diff=lfs merge=lfs -text
20
+ *.parquet filter=lfs diff=lfs merge=lfs -text
21
+ *.pb filter=lfs diff=lfs merge=lfs -text
22
+ *.pickle filter=lfs diff=lfs merge=lfs -text
23
+ *.pkl filter=lfs diff=lfs merge=lfs -text
24
+ *.pt filter=lfs diff=lfs merge=lfs -text
25
+ *.pth filter=lfs diff=lfs merge=lfs -text
26
+ *.rar filter=lfs diff=lfs merge=lfs -text
27
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
28
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar filter=lfs diff=lfs merge=lfs -text
31
+ *.tflite filter=lfs diff=lfs merge=lfs -text
32
+ *.tgz filter=lfs diff=lfs merge=lfs -text
33
+ *.wasm filter=lfs diff=lfs merge=lfs -text
34
+ *.xz filter=lfs diff=lfs merge=lfs -text
35
+ *.zip filter=lfs diff=lfs merge=lfs -text
36
+ *.zst filter=lfs diff=lfs merge=lfs -text
37
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
38
+ # Audio files - uncompressed
39
+ *.pcm filter=lfs diff=lfs merge=lfs -text
40
+ *.sam filter=lfs diff=lfs merge=lfs -text
41
+ *.raw filter=lfs diff=lfs merge=lfs -text
42
+ # Audio files - compressed
43
+ *.aac filter=lfs diff=lfs merge=lfs -text
44
+ *.flac filter=lfs diff=lfs merge=lfs -text
45
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
46
+ *.ogg filter=lfs diff=lfs merge=lfs -text
47
+ *.wav filter=lfs diff=lfs merge=lfs -text
48
+ # Image files - uncompressed
49
+ *.bmp filter=lfs diff=lfs merge=lfs -text
50
+ *.gif filter=lfs diff=lfs merge=lfs -text
51
+ *.png filter=lfs diff=lfs merge=lfs -text
52
+ *.tiff filter=lfs diff=lfs merge=lfs -text
53
+ # Image files - compressed
54
+ *.jpg filter=lfs diff=lfs merge=lfs -text
55
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
56
+ *.webp filter=lfs diff=lfs merge=lfs -text
57
+ # Video files - compressed
58
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
59
+ *.webm filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - twi
4
+ license: cc-by-4.0
5
+ task_categories:
6
+ - automatic-speech-recognition
7
+ - text-to-speech
8
+ task_ids:
9
+ - keyword-spotting
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ - 1K<n<10K
14
+ modalities:
15
+ - audio
16
+ - text
17
+ dataset_info:
18
+ features:
19
+ - name: audio
20
+ dtype: audio
21
+ - name: text
22
+ dtype: string
23
+ config_name: default
24
+ splits:
25
+ - name: train
26
+ num_bytes: 0
27
+ num_examples: 166156
28
+ download_size: 0
29
+ dataset_size: 0
30
+ tags:
31
+ - speech
32
+ - twi
33
+ - ghana
34
+ - african-languages
35
+ - low-resource
36
+ - parallel-corpus
37
+ - trigrams
38
+ - n-grams
39
+ pretty_name: Twi Trigrams Speech-Text Parallel Dataset
40
+ ---
41
+
42
+ # Twi Trigrams Speech-Text Parallel Dataset
43
+
44
+ ## Dataset Description
45
+
46
+ This dataset contains 166156 parallel speech-text pairs for Twi, a language spoken primarily in Ghana. The dataset consists of audio recordings of trigram segments (3-word sequences) paired with their corresponding text transcriptions, making it suitable for automatic speech recognition (ASR) and text-to-speech (TTS) tasks.
47
+
48
+ ### Dataset Summary
49
+
50
+ - **Language**: Twi - `twi`
51
+ - **Task**: Speech Recognition, Text-to-Speech
52
+ - **Size**: 166156 trigram audio segments > 1KB (small/corrupted files filtered out)
53
+ - **Format**: WAV audio files with corresponding trigram text labels
54
+ - **Segment Type**: Primarily trigrams (3-word sequences), with some bigrams and single words as fallbacks
55
+ - **Modalities**: Audio + Text
56
+
57
+ ### Supported Tasks
58
+
59
+ - **Automatic Speech Recognition (ASR)**: Train models to convert Twi speech to text
60
+ - **Text-to-Speech (TTS)**: Use parallel data for TTS model development
61
+ - **Keyword Spotting**: Identify specific Twi word sequences in audio
62
+ - **N-gram Language Modeling**: Study Twi trigram patterns
63
+ - **Phonetic Analysis**: Study Twi pronunciation patterns in context
64
+
65
+ ## Dataset Structure
66
+
67
+ ### Data Fields
68
+
69
+ - `audio`: Audio file in WAV format containing a trigram segment
70
+ - `text`: Corresponding text transcription (typically 3 words, sometimes 2 or 1 for shorter segments)
71
+
72
+ ### Data Splits
73
+
74
+ The dataset contains a single training split with 166156 filtered trigram audio segments.
75
+
76
+ ## Dataset Creation
77
+
78
+ ### Source Data
79
+
80
+ The audio data has been sourced ethically from consenting contributors. To protect the privacy of the original authors and speakers, specific source information cannot be shared publicly.
81
+
82
+ ### Data Processing
83
+
84
+ 1. **Audio Alignment**: Original audio files were processed using forced alignment to obtain word-level timestamps
85
+ 2. **Trigram Segmentation**: Audio was segmented into overlapping trigrams (3-word sequences)
86
+ 3. **Fallback Segmentation**: For shorter texts, bigrams or single words were created as needed
87
+ 4. **Quality Filtering**:
88
+ - Segments longer than 30 seconds were excluded
89
+ - Segments shorter than 0.1 seconds were excluded
90
+ - Files smaller than 1KB were filtered out to ensure audio quality
91
+ 5. **Text Processing**: Text was lowercased and cleaned of end punctuation
92
+ 6. **Unique Naming**: Each segment received a unique sequential filename (trigram_XXXXXX.wav)
93
+
94
+ ### Alignment Technology
95
+
96
+ Audio processing and word-level alignment performed using the [MMS-300M-1130 Forced Aligner](https://huggingface.co/MahmoudAshraf/mms-300m-1130-forced-aligner) tool, which provides accurate timestamp information for creating precise trigram segments.
97
+
98
+ ### Annotations
99
+
100
+ Text annotations represent the spoken content in each trigram audio segment, with text processing applied for consistency:
101
+ - Lowercased for uniformity
102
+ - End punctuation removed
103
+ - Spaces normalized
104
+
105
+ ## Considerations for Using the Data
106
+
107
+ ### Social Impact of Dataset
108
+
109
+ This dataset contributes to the preservation and digital representation of Twi, supporting:
110
+ - Language technology development for underrepresented languages
111
+ - Educational resources for Twi language learning
112
+ - Cultural preservation through digital archives
113
+ - N-gram based language modeling research
114
+
115
+ ### Discussion of Biases
116
+
117
+ - The dataset may reflect the pronunciation patterns and dialects of specific regions or speakers
118
+ - Audio quality and recording conditions may vary across segments
119
+ - Trigram distribution may not be representative of natural Twi language patterns
120
+ - Some segments may contain overlapping content due to the sliding window approach
121
+
122
+ ### Other Known Limitations
123
+
124
+ - Segment-level rather than full sentence context
125
+ - Potential audio quality variations between segments
126
+ - Regional dialect representation may be uneven
127
+ - Variable segment lengths (primarily 3 words, but includes 2-word and 1-word segments)
128
+
129
+ ## Additional Information
130
+
131
+ ### Dataset Statistics
132
+
133
+ - **Primary Content**: Trigram segments (3-word sequences)
134
+ - **Fallback Content**: Bigram segments (2-word sequences) and single words
135
+ - **Segment Duration**: 0.1 to 30 seconds
136
+ - **Minimum File Size**: 1KB after processing
137
+
138
+ ### Licensing Information
139
+
140
+ This dataset is released under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
141
+
142
+ ### Citation Information
143
+
144
+ If you use this dataset in your research, please cite:
145
+
146
+ ```
147
+ @dataset{twi_trigrams_parallel_2025,
148
+ title={Twi Trigrams Speech-Text Parallel Dataset},
149
+ year={2025},
150
+ publisher={Hugging Face},
151
+ howpublished={\url{https://huggingface.co/datasets/michsethowusu/twi-trigrams-speech-text-parallel}}
152
+ }
153
+ ```
154
+
155
+ ### Acknowledgments
156
+
157
+ - Audio processing and alignment performed using [MMS-300M-1130 Forced Aligner](https://huggingface.co/MahmoudAshraf/mms-300m-1130-forced-aligner)
158
+ - Forced alignment and trigram segmentation using CTC forced alignment techniques
159
+ - Thanks to all contributors who provided audio samples while maintaining privacy protection
160
+
161
+ ### Contact
162
+
163
+ For questions or concerns about this dataset, please open an issue in the dataset repository.
data/train-00000-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24a9980029d2328bfb4b123851cf2b92c442ba325e9c3a1557355eb6761f946b
3
+ size 376575555
data/train-00001-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e940ebf9d32bc160252b2d7a8fed2dc1ecbcaf34ec5bc69974c01554dd16e7e
3
+ size 388296799
data/train-00002-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eff95cc0b7bb894ba2bde9b3c27e1213dc9d4bf59b1fa6ac80d1b23f3374ce3d
3
+ size 374799344
data/train-00003-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d572ddeb3ca7a9cdcaf98e06f6027922a154a0ac1ee75a04d5dcf7627125925b
3
+ size 393555182
data/train-00004-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e47dd7307f1479010cff47208422d80fb87c3990c60c171c11e252595d7eb497
3
+ size 377683803
data/train-00005-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72b714c27e9eadccf586237290e9dff2f3af259013ae027693bb0ef6f043146e
3
+ size 394988277
data/train-00006-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6dde9fc21098780d5d79b6d5ea98b118ee885b690e2d56d6207397eb6752d1b
3
+ size 377779937
data/train-00007-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bf1bd405ef7855d2956f6f734c574965c1abce121b2753c43748189b84fd460
3
+ size 402110565
data/train-00008-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab1269122aaa80ae9ae5138090bae4280d6971720db0608299c14817628adea0
3
+ size 406057319
data/train-00009-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4571312e44ddef2436beddba6aa992f2c34c52c4143fbd614ea806ed82da10f7
3
+ size 403253921
data/train-00010-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:018660a8662154aa2a4668a88d198255596fd7d95488cbbb50b3944d45337099
3
+ size 385783129
data/train-00011-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:419b1b3faa172d226edc0e6a36b78587cdda5834f6c1f55e3476fcceecca2252
3
+ size 405342603
data/train-00012-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9ef1fc152dd44abc9ce5b50692fa14d0785c8e9ac5139b115673f9c4191c41b
3
+ size 411263656
data/train-00013-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0490b4426e824cf1694b9f89384a456606c5fad4f63b7e35a3c1c1531793f98
3
+ size 403120252
data/train-00014-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58f686605ee329d0a9c1c91abe797f83f0845cd4420091c7dba138b48a677b14
3
+ size 401818231
data/train-00015-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:afee04c2103160649de862597d91a9c501188cb05097827b25a9e2ae2a99ab2b
3
+ size 413330466
data/train-00016-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0dafefee68b4ad6ed6c70a8a5402b2bb89609a04cc3efd4fe506b28b4d4fca36
3
+ size 393252551
data/train-00017-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71e44660e260cd24c84a54158fc006fd5b2a9cc3533dddc8d9a6216a61c5e7a7
3
+ size 386382129
data/train-00018-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02fc5c34c6fe1898bbdbeee3543fee278a3b09af042fa7192ec42bdc982b0ce8
3
+ size 398853984
data/train-00019-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec2cf6bc21c6adeabb181a57b0067fabcc17a031f0ecc74c540bdf966a2cc8ed
3
+ size 393396654
data/train-00020-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1a7f01e709b6c4d0e0caef35592ee1018866d314f3f1a0a6a02dd3f1f84b095
3
+ size 385579965
data/train-00021-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a89499468c68e47c0d8ef1e455fbd2abcfe70e046fee75b8fc68187eb362d8f1
3
+ size 393168171
data/train-00022-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4517e2b8b1505491f72aefb8cae8e3ee3d926b14f5a9ac49c416d604c6bbfd58
3
+ size 404947390
data/train-00023-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ee073d3fb710a66dac34c746636d1f548b4fd989b28585316d29d2b173dd358
3
+ size 372392466
data/train-00024-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:013fe250bd69ec404f00528ff5048cdaf8f65865daeb2bfb9997b8f173df88a7
3
+ size 391223468
data/train-00025-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3cda1a15622b0973cd3c01966379fe437297fa86bbe858b2c3552ff99dd1dcf
3
+ size 404076499
data/train-00026-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a5f73297f0e6c6b987f7b02d9da2edebf674f81469f7e3a676f25dd29fb3929
3
+ size 368759526
data/train-00027-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a624a1408804bf360cb014f2c3064b5d5341163934f795b605e5ca973673b627
3
+ size 401520742
data/train-00028-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17dae76d8ddaf96be52134b70ba47fbea810fae0e9c9f47a256e3187bf523212
3
+ size 404307585
data/train-00029-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d479297fa4a8db84b3359aef83e9058983283192d099f3f983000bd074c5f430
3
+ size 405807906
data/train-00030-of-00031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f572cd2e859b07a058ea2f4608ddf1c5965da9011c8b3831e6c979004ced5e8c
3
+ size 396585025