Loading dataset fails

#1
by vineelkpratap - opened

Loading dataset with dataset = load_dataset("ai4bharat/kathbath") fails with the following error

  dataset = load_dataset("ai4bharat/kathbath")
 File "/data/home/vineelkpratap/miniconda/lib/python3.9/site-packages/datasets/load.py", line 1704, in load_dataset
   builder_instance = load_dataset_builder(
 File "/data/home/vineelkpratap/miniconda/lib/python3.9/site-packages/datasets/load.py", line 1556, in load_dataset_builder
   builder_instance: DatasetBuilder = builder_cls(
 File "/data/home/vineelkpratap/miniconda/lib/python3.9/site-packages/datasets/builder.py", line 1085, in __init__
   super().__init__(*args, **kwargs)
 File "/data/home/vineelkpratap/miniconda/lib/python3.9/site-packages/datasets/builder.py", line 269, in __init__
   self.config, self.config_id = self._create_builder_config(
 File "/data/home/vineelkpratap/miniconda/lib/python3.9/site-packages/datasets/builder.py", line 367, in _create_builder_config
   logger. Warning(f"No config specified, defaulting to: {self.name}/{builder_config.name}")
AttributeError: 'NoneType' object has no attribute 'name'

Thanks for reporting, @vineelkpratap .

Indeed, there is an issue with the loading script:

  • it sets "_all_" as the DEFAULT_CONFIG_NAME
  • but it does not create any configuration with that name in BUILDER_CONFIGS

This should be fixed. CC: @kaushal98b

In the meantime, you can circumvent this issue by passing a specific language as a configuration name, for example:

dataset = load_dataset("ai4bharat/kathbath", "bn")

Sign up or log in to comment