An error occurred while generating the dataset

#1
by osman - opened

Hi fsicoli, I face the following issue when I am working on Uyghur and Uzbek datasets. Could you help with this? Thanks.

  yield key, tuple(d[key] for d in dicts)
KeyError: 'sentence_id'

The above exception was the direct cause of the following exception:
Owner

Hi @osman .

Currently, the Common Voice dataset has only the following fields: 'client_id', 'path', 'audio', 'sentence', 'up_votes', 'down_votes', 'age', 'gender', 'accent', 'locale', 'segment', 'variant'. So you have to update your code not to use 'sentence_id' anymore. Can you send me the code you are using to load and use the dataset? Maybe I can help you debugging it.

@fsicoli I have upgraded the dataset module to 2.18, and this solves the problem.

It returns an error with 2.15.

osman changed discussion status to closed

Sign up or log in to comment