RodrigoLimaRFL commited on
Commit
8f94502
·
verified ·
1 Parent(s): 983cbca

Update NURC-SP_Corpus_Minimo.py

Browse files
Files changed (1) hide show
  1. NURC-SP_Corpus_Minimo.py +6 -3
NURC-SP_Corpus_Minimo.py CHANGED
@@ -39,13 +39,16 @@ class NurcSPDataset(GeneratorBasedBuilder):
39
  def _split_generators(self, dl_manager):
40
  prompts_path = dl_manager.download(_PROMPTS_URLS)
41
  archive = dl_manager.download(_ARCHIVES)
42
-
43
- # Return a single split for the entire dataset
 
 
44
  return [
45
  SplitGenerator(
46
- name=Split.TRAIN, # Using a single split, like TRAIN
47
  gen_kwargs={
48
  "prompts_path": prompts_path["def"],
 
49
  "audio_files": dl_manager.iter_archive(archive["def"]),
50
  }
51
  )
 
39
  def _split_generators(self, dl_manager):
40
  prompts_path = dl_manager.download(_PROMPTS_URLS)
41
  archive = dl_manager.download(_ARCHIVES)
42
+
43
+ # Define the path_to_clips variable, pointing to the directory where the audio clips are stored
44
+ path_to_clips = "/" # Update this with the actual path
45
+
46
  return [
47
  SplitGenerator(
48
+ name="all_data", # Single split
49
  gen_kwargs={
50
  "prompts_path": prompts_path["def"],
51
+ "path_to_clips": path_to_clips,
52
  "audio_files": dl_manager.iter_archive(archive["def"]),
53
  }
54
  )