Dataset Generation Error when loading this dataset using load_dataset('MultiCoNER/multiconer_v2' ,'English (EN)')

#1
by Pretam - opened
Traceback (most recent call last)
File ~/envs/deep/lib/python3.10/site-packages/datasets/builder.py:1622, in GeneratorBasedBuilder._prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, split_info, check_duplicate_keys, job_id)
   1613     writer = writer_class(
   1614         features=writer._features,
   1615         path=fpath.replace("SSSSS", f"{shard_id:05d}").replace("JJJJJ", f"{job_id:05d}"),
   (...)
   1620         embed_local_files=embed_local_files,
   1621     )
-> 1622 example = self.info.features.encode_example(record) if self.info.features is not None else record
   1623 writer.write(example, key)

File ~/envs/deep/lib/python3.10/site-packages/datasets/features/features.py:1813, in Features.encode_example(self, example)
   1812 example = cast_to_python_objects(example)
-> 1813 return encode_nested_example(self, example)

File ~/envs/deep/lib/python3.10/site-packages/datasets/features/features.py:1212, in encode_nested_example(schema, obj, level)
   1210         raise ValueError("Got None but expected a dictionary instead")
   1211     return (
-> 1212         {
   1213             k: encode_nested_example(sub_schema, sub_obj, level=level + 1)
   1214             for k, (sub_schema, sub_obj) in zip_dict(schema, obj)
   1215         }
   1216         if obj is not None
   1217         else None
...
   1640         e = e.__context__
-> 1641     raise DatasetGenerationError("An error occurred while generating the dataset") from e
   1643 yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_shards, shard_lengths)

DatasetGenerationError: An error occurred while generating the dataset

have used arguments download_mode=force_redownload but the issue still persists.

MultiCoNER org

Very sorry for the super late response. The issue has been fixed.

cryptexcode changed discussion status to closed

Sign up or log in to comment