Error for swiss_judgment_prediction
Hello,
recently, according to the information of @joelito , the config "all_languages" in the dataset https://huggingface.co/datasets/swiss_judgment_prediction was renamed to "all". As far as I know, this changes are pushed to huggingface. But when I try to load the swiss_judgment_prediction with the datasets api via this command
datasets = load_dataset("swiss_judgment_prediction","all", download_mode='force_redownload')
I get the error:ValueError: BuilderConfig all not found. Available: ['de', 'fr', 'it', 'all_languages']
The same applies, when I try to get the dataset swiss_judgment_prediction from the lextreme dataset.
However, when I change the name of the config to "all_languages" (which means to the previous naming), it works just fine. So, this command works:
datasets = load_dataset("swiss_judgment_prediction","all_languages", download_mode='force_redownload')
My understanding was that changes in the config are immediately available when redownloading the dataset or am I missing something? Are you @albertvillanova able to explain this behaviour? Can you help us out please?
Best,
@kapllan
Hi @kapllan , thanks for reporting.
I think it has to do with your version of datasets
. Could you please update it and try again?
pip install -U datasets
Old versions of the datasets
library, were not loading the latest version of a dataset, but the dataset version existing when the library was released.
Please note that this behavior has been deprecated and the latter versions of the datasets
library always load the latest version of the datasets (unless you pass the argument revision
pointing to a specific version/hash/branch).
Hi @albertvillanova ,
thank you very much for the hint and the information on how the datasets library works! This seems to have fixed the issue. Currently, it is donwloading as it should.
Best,
Veton Matoshi