Datasets:
Tasks:
Audio Classification
Modalities:
Audio
Languages:
English
Size:
10K<n<100K
Tags:
audio
License:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte error with streaming=True
#4
by
enyoukai
- opened
Looks like when I load this dataset with streaming=True I get some utf-8 decoding error related to the below code:
def _generate_examples(self, labels, ontology, audio_files):
with open(ontology) as fid:
ontology_data = json.load(fid)
Furthermore, print(ontology)
returns the url https://huggingface.co/datasets/agkphysics/AudioSet/resolve/main/data/ontology.json
(not really sure how the open method was able to open that in the first place). So far replacing the code with
with urllib.request.urlopen("https://huggingface.co/datasets/agkphysics/AudioSet/resolve/main/data/ontology.json") as fid:
ontology_data = json.load(fid)
seems to work though.