RodrigoLimaRFL commited on
Commit
dae32d3
·
verified ·
1 Parent(s): f9baed0

Update NURC-SP_Corpus_Minimo.py

Browse files
Files changed (1) hide show
  1. NURC-SP_Corpus_Minimo.py +4 -4
NURC-SP_Corpus_Minimo.py CHANGED
@@ -44,14 +44,14 @@ class NurcSPDataset(GeneratorBasedBuilder):
44
  msg: "NAO TEM CSV"
45
  raise ValueError(msg)
46
 
47
- if not archive:
48
  msg = "NAO TEM ARQUIVO"
49
  raise ValueError(msg)
50
-
51
- print(archive)
52
 
53
  # Define the path_to_clips variable, pointing to the directory where the audio clips are stored
54
- path_to_clips = "nurc-sp_corpus_minimo/segmented_audios/" # Update this with the actual path
 
 
55
 
56
  return [
57
  SplitGenerator(
 
44
  msg: "NAO TEM CSV"
45
  raise ValueError(msg)
46
 
47
+ if not archive["train"]:
48
  msg = "NAO TEM ARQUIVO"
49
  raise ValueError(msg)
 
 
50
 
51
  # Define the path_to_clips variable, pointing to the directory where the audio clips are stored
52
+ path_to_clips = "segmented_audios" # Update this with the actual path
53
+
54
+ print(dl_manager.iter_archive(archive["train"]))
55
 
56
  return [
57
  SplitGenerator(