shikinwahed commited on
Commit
d034199
·
verified ·
1 Parent(s): fc793e2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -0
README.md CHANGED
@@ -134,9 +134,15 @@ Play audio in Jupyter or Google Colab:
134
  ipd.Audio(sample['audio']['array'],
135
  rate=sample['audio']['sampling_rate'])
136
 
 
137
  train_ds = load_dataset("SaLTUNIMAS/iban-speech", split="train")
138
  test_ds = load_dataset("SaLTUNIMAS/iban-speech", split="test")
139
 
 
 
 
 
 
140
  Filter by gender:
141
  female = ds['train'].filter(lambda x: x['gender'] == 'female')
142
  male = ds['train'].filter(lambda x: x['gender'] == 'male')
 
134
  ipd.Audio(sample['audio']['array'],
135
  rate=sample['audio']['sampling_rate'])
136
 
137
+ Load only one specific split
138
  train_ds = load_dataset("SaLTUNIMAS/iban-speech", split="train")
139
  test_ds = load_dataset("SaLTUNIMAS/iban-speech", split="test")
140
 
141
+ Load both split
142
+ from datasets import concatenate_datasets
143
+ all_data = concatenate_datasets([ds['train'], ds['test']])
144
+ print(f"Total: {len(all_data)} utterances")
145
+
146
  Filter by gender:
147
  female = ds['train'].filter(lambda x: x['gender'] == 'female')
148
  male = ds['train'].filter(lambda x: x['gender'] == 'male')