Datasets:
Languages:
Portuguese
License:
Update NURC-SP_Corpus_Minimo.py
Browse files- 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 = "
|
|
|
|
|
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(
|