Have problem in loading data through load_dataset(), saying "Dataset scripts are no longer supported, but found conll2003.py"

#13
by Jiebro02 - opened

Hi, when I try to load the data through load_dataset() using python, it has a RuntimeError , saying:

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Cell In[11], line 3
      1 from datasets import load_dataset
----> 3 raw_datasets = load_dataset("conll2003")

File c:\Users\ASUS\anaconda3\envs\huggingface\lib\site-packages\datasets\load.py:1392, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, keep_in_memory, save_infos, revision, token, streaming, num_proc, storage_options, **config_kwargs)
   1387 verification_mode = VerificationMode(
   1388     (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS
   1389 )
   1391 # Create a dataset builder
-> 1392 builder_instance = load_dataset_builder(
   1393     path=path,
   1394     name=name,
   1395     data_dir=data_dir,
   1396     data_files=data_files,
   1397     cache_dir=cache_dir,
   1398     features=features,
   1399     download_config=download_config,
   1400     download_mode=download_mode,
   1401     revision=revision,
   1402     token=token,
   1403     storage_options=storage_options,
   1404     **config_kwargs,
   1405 )
...
    990 except EntryNotFoundError:
    991     # Use the infos from the parquet export except in some cases:
    992     if data_dir or data_files or (revision and revision != "main"):

RuntimeError: Dataset scripts are no longer supported, but found conll2003.py

What should I do? Is this my problem?

you are not alone,I've met the same problem.

Use this version: datasets==3.6.0. That worked for me. I did the following:
load_dataset("conll2003", trust_remote_code=True, token=os.getenv("HUGGING_FACE_TOKEN"))

Thank guys for help. I resolved this problem by downgrade the datasets, huggingface_hub, and transformers.

  • datasets==2.16.0
  • huggingface-hub==0.20.0
  • transformers==4.36.0

raw_datasets = load_dataset("eriktks/conll2003",revision="convert/parquet")。Just like this,bro.

Sign up or log in to comment