Update instrument_timbre.py
Browse files- instrument_timbre.py +18 -18
instrument_timbre.py
CHANGED
@@ -92,20 +92,20 @@ class instrument_timbre(datasets.GeneratorBasedBuilder):
|
|
92 |
"instrument": datasets.features.ClassLabel(names=_NAMES),
|
93 |
"slim": datasets.Value("float32"),
|
94 |
"bright": datasets.Value("float32"),
|
95 |
-
"
|
96 |
"sharp": datasets.Value("float32"),
|
97 |
"thick": datasets.Value("float32"),
|
98 |
"thin": datasets.Value("float32"),
|
99 |
-
"
|
100 |
-
"
|
101 |
-
"
|
102 |
-
"
|
103 |
-
"
|
104 |
"pure": datasets.Value("float32"),
|
105 |
"hoarse": datasets.Value("float32"),
|
106 |
-
"
|
107 |
-
"
|
108 |
-
"
|
109 |
}
|
110 |
),
|
111 |
supervised_keys=("audio", "instrument"),
|
@@ -141,20 +141,20 @@ class instrument_timbre(datasets.GeneratorBasedBuilder):
|
|
141 |
"instrument": labels.iloc[i]["instrument_name"],
|
142 |
"slim": labels.iloc[i]["slim"],
|
143 |
"bright": labels.iloc[i]["bright"],
|
144 |
-
"
|
145 |
"sharp": labels.iloc[i]["sharp"],
|
146 |
"thick": labels.iloc[i]["thick"],
|
147 |
"thin": labels.iloc[i]["thin"],
|
148 |
-
"
|
149 |
-
"
|
150 |
-
"
|
151 |
-
"
|
152 |
-
"
|
153 |
"pure": labels.iloc[i]["pure"],
|
154 |
"hoarse": labels.iloc[i]["hoarse"],
|
155 |
-
"
|
156 |
-
"
|
157 |
-
"
|
158 |
}
|
159 |
if region == "Chinese":
|
160 |
cn_dataset[i] = data
|
|
|
92 |
"instrument": datasets.features.ClassLabel(names=_NAMES),
|
93 |
"slim": datasets.Value("float32"),
|
94 |
"bright": datasets.Value("float32"),
|
95 |
+
"dark": datasets.Value("float32"),
|
96 |
"sharp": datasets.Value("float32"),
|
97 |
"thick": datasets.Value("float32"),
|
98 |
"thin": datasets.Value("float32"),
|
99 |
+
"vigorous": datasets.Value("float32"),
|
100 |
+
"silvery": datasets.Value("float32"),
|
101 |
+
"raspy": datasets.Value("float32"),
|
102 |
+
"full": datasets.Value("float32"),
|
103 |
+
"coarse": datasets.Value("float32"),
|
104 |
"pure": datasets.Value("float32"),
|
105 |
"hoarse": datasets.Value("float32"),
|
106 |
+
"consonant": datasets.Value("float32"),
|
107 |
+
"mellow": datasets.Value("float32"),
|
108 |
+
"muddy": datasets.Value("float32"),
|
109 |
}
|
110 |
),
|
111 |
supervised_keys=("audio", "instrument"),
|
|
|
141 |
"instrument": labels.iloc[i]["instrument_name"],
|
142 |
"slim": labels.iloc[i]["slim"],
|
143 |
"bright": labels.iloc[i]["bright"],
|
144 |
+
"dark": labels.iloc[i]["dim"],
|
145 |
"sharp": labels.iloc[i]["sharp"],
|
146 |
"thick": labels.iloc[i]["thick"],
|
147 |
"thin": labels.iloc[i]["thin"],
|
148 |
+
"vigorous": labels.iloc[i]["solid"],
|
149 |
+
"silvery": labels.iloc[i]["clear"],
|
150 |
+
"raspy": labels.iloc[i]["dry"],
|
151 |
+
"full": labels.iloc[i]["plump"],
|
152 |
+
"coarse": labels.iloc[i]["rough"],
|
153 |
"pure": labels.iloc[i]["pure"],
|
154 |
"hoarse": labels.iloc[i]["hoarse"],
|
155 |
+
"consonant": labels.iloc[i]["harmonious"],
|
156 |
+
"mellow": labels.iloc[i]["soft"],
|
157 |
+
"muddy": labels.iloc[i]["turbid"],
|
158 |
}
|
159 |
if region == "Chinese":
|
160 |
cn_dataset[i] = data
|