admin
commited on
Commit
•
b524038
1
Parent(s):
3b9a840
upd api
Browse files- README.md +1 -1
- song_structure.py +2 -5
README.md
CHANGED
@@ -51,7 +51,7 @@ The raw dataset comprises 300 pop songs in .mp3 format, sourced from the NetEase
|
|
51 |
|
52 |
## Maintenance
|
53 |
```bash
|
54 |
-
|
55 |
cd song_structure
|
56 |
```
|
57 |
|
|
|
51 |
|
52 |
## Maintenance
|
53 |
```bash
|
54 |
+
git clone [email protected]:datasets/ccmusic-database/song_structure
|
55 |
cd song_structure
|
56 |
```
|
57 |
|
song_structure.py
CHANGED
@@ -4,11 +4,9 @@ import random
|
|
4 |
import hashlib
|
5 |
import datasets
|
6 |
|
7 |
-
|
8 |
|
9 |
-
|
10 |
-
|
11 |
-
_DOMAIN = f"https://www.modelscope.cn/api/v1/datasets/ccmusic-database/{_DBNAME}/repo?Revision=master&FilePath=data"
|
12 |
|
13 |
_CITATION = """\
|
14 |
@dataset{zhaorui_liu_2021_5676893,
|
@@ -105,7 +103,6 @@ class song_structure(datasets.GeneratorBasedBuilder):
|
|
105 |
|
106 |
dataset = list(files.values())
|
107 |
random.shuffle(dataset)
|
108 |
-
|
109 |
return [
|
110 |
datasets.SplitGenerator(
|
111 |
name=datasets.Split.TRAIN, gen_kwargs={"files": dataset}
|
|
|
4 |
import hashlib
|
5 |
import datasets
|
6 |
|
7 |
+
_HOMEPAGE = f"https://www.modelscope.cn/datasets/ccmusic-database/{os.path.basename(__file__)[:-3]}"
|
8 |
|
9 |
+
_DOMAIN = f"{_HOMEPAGE}/resolve/master/data"
|
|
|
|
|
10 |
|
11 |
_CITATION = """\
|
12 |
@dataset{zhaorui_liu_2021_5676893,
|
|
|
103 |
|
104 |
dataset = list(files.values())
|
105 |
random.shuffle(dataset)
|
|
|
106 |
return [
|
107 |
datasets.SplitGenerator(
|
108 |
name=datasets.Split.TRAIN, gen_kwargs={"files": dataset}
|