RodrigoLimaRFL commited on
Commit
cfc685f
·
verified ·
1 Parent(s): 89612ad

Update NURC-SP_Corpus_Minimo.py

Browse files
Files changed (1) hide show
  1. NURC-SP_Corpus_Minimo.py +0 -21
NURC-SP_Corpus_Minimo.py CHANGED
@@ -40,30 +40,9 @@ class NurcSPDataset(GeneratorBasedBuilder):
40
  def _split_generators(self, dl_manager):
41
  prompts_path = dl_manager.download(_PROMPTS_URLS)
42
  archive = dl_manager.download(_ARCHIVES)
43
-
44
- if not prompts_path:
45
- msg: "NAO TEM CSV"
46
- raise ValueError(msg)
47
-
48
- if not archive["train"]:
49
- msg = "NAO TEM ARQUIVO"
50
- raise ValueError(msg)
51
 
52
  # Define the path_to_clips variable, pointing to the directory where the audio clips are stored
53
  path_to_clips = "segmented_audios" # Update this with the actual path
54
-
55
- print("prompts_path:", prompts_path)
56
- print("archive['train']:", archive["train"])
57
-
58
- with open(prompts_path["train"], "r") as f:
59
- csv_reader = csv.DictReader(f)
60
- first_row = next(csv_reader) # Get the first row
61
- print("First row in CSV:", first_row)
62
-
63
-
64
- with tarfile.open(archive["train"], "r:gz") as tar:
65
- tar.list() # List contents of the archive
66
-
67
 
68
  return [
69
  SplitGenerator(
 
40
  def _split_generators(self, dl_manager):
41
  prompts_path = dl_manager.download(_PROMPTS_URLS)
42
  archive = dl_manager.download(_ARCHIVES)
 
 
 
 
 
 
 
 
43
 
44
  # Define the path_to_clips variable, pointing to the directory where the audio clips are stored
45
  path_to_clips = "segmented_audios" # Update this with the actual path
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
  return [
48
  SplitGenerator(