Datasets:
Size:
10K<n<100K
License:
MuGeminorum
commited on
Commit
•
47b3773
1
Parent(s):
ce1dcb7
fix py
Browse files- README.md +1 -0
- music_genre.py +2 -2
README.md
CHANGED
@@ -11,6 +11,7 @@ tags:
|
|
11 |
pretty_name: Music Genre Database
|
12 |
size_categories:
|
13 |
- 1K<n<10K
|
|
|
14 |
---
|
15 |
# Dataset Card for Music Genre Dataset
|
16 |
## Dataset Description
|
|
|
11 |
pretty_name: Music Genre Database
|
12 |
size_categories:
|
13 |
- 1K<n<10K
|
14 |
+
viewer: false
|
15 |
---
|
16 |
# Dataset Card for Music Genre Dataset
|
17 |
## Dataset Description
|
music_genre.py
CHANGED
@@ -132,9 +132,9 @@ class music_genre(datasets.GeneratorBasedBuilder):
|
|
132 |
labs = labstr.split('\\')
|
133 |
|
134 |
if depth <= len(labs):
|
135 |
-
return 0
|
136 |
else:
|
137 |
-
return
|
138 |
|
139 |
def _generate_examples(self, files):
|
140 |
for i, path in enumerate(files):
|
|
|
132 |
labs = labstr.split('\\')
|
133 |
|
134 |
if depth <= len(labs):
|
135 |
+
return int(labs[depth - 1].split('_')[0])
|
136 |
else:
|
137 |
+
return 0
|
138 |
|
139 |
def _generate_examples(self, files):
|
140 |
for i, path in enumerate(files):
|