News-Text-Classification icon indicating copy to clipboard operation
News-Text-Classification copied to clipboard

求解答

Open liuxiaobei6667 opened this issue 2 years ago • 2 comments


ValueError Traceback (most recent call last) /tmp/ipykernel_203/1672709690.py in 4 5 ----> 6 train_ds, dev_ds = load_dataset(splits=["train", "dev"])

/tmp/ipykernel_203/1062691189.py in load_dataset(name, data_files, splits, lazy, **kwargs) 45 reader_instance = reader_cls(lazy=lazy, name=name, **kwargs) 46 ---> 47 datasets = reader_instance.read_datasets(data_files=data_files,splits=splits) 48 return datasets

/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlenlp/datasets/dataset.py in read_datasets(self, splits, data_files) 526 while not os.path.exists(lock_file): 527 time.sleep(1) --> 528 datasets.append(self.read(filename=filename, split=split)) 529 530 if data_files:

/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlenlp/datasets/dataset.py in read(self, filename, split) 633 raise ValueError( 634 "No instances were read from the given filepath {}. " --> 635 "Is the path correct?".format(filename)) 636 637 # We need to check if the example contains label column and confirm its name.

ValueError: No instances were read from the given filepath dev.csv. Is the path correct?

liuxiaobei6667 avatar Jul 05 '22 14:07 liuxiaobei6667