monetjoe commited on
Commit
90f3a87
1 Parent(s): 7e98ee5

Update instrument_timbre.py

Browse files
Files changed (1) hide show
  1. 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
- "dim": datasets.Value("float32"),
96
  "sharp": datasets.Value("float32"),
97
  "thick": datasets.Value("float32"),
98
  "thin": datasets.Value("float32"),
99
- "solid": datasets.Value("float32"),
100
- "clear": datasets.Value("float32"),
101
- "dry": datasets.Value("float32"),
102
- "plump": datasets.Value("float32"),
103
- "rough": datasets.Value("float32"),
104
  "pure": datasets.Value("float32"),
105
  "hoarse": datasets.Value("float32"),
106
- "harmonious": datasets.Value("float32"),
107
- "soft": datasets.Value("float32"),
108
- "turbid": datasets.Value("float32"),
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
- "dim": labels.iloc[i]["dim"],
145
  "sharp": labels.iloc[i]["sharp"],
146
  "thick": labels.iloc[i]["thick"],
147
  "thin": labels.iloc[i]["thin"],
148
- "solid": labels.iloc[i]["solid"],
149
- "clear": labels.iloc[i]["clear"],
150
- "dry": labels.iloc[i]["dry"],
151
- "plump": labels.iloc[i]["plump"],
152
- "rough": labels.iloc[i]["rough"],
153
  "pure": labels.iloc[i]["pure"],
154
  "hoarse": labels.iloc[i]["hoarse"],
155
- "harmonious": labels.iloc[i]["harmonious"],
156
- "soft": labels.iloc[i]["soft"],
157
- "turbid": labels.iloc[i]["turbid"],
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