Iβm trying to load a local dataset using load_dataset. After invoking load_dataset it hangs forever, it never finishes. Here are the details:
Environment:
Python 3.9.12 (main, Apr 5 2022, 01:53:17)
[Clang 12.0.0 ] :: Anaconda, Inc. on darwin
conda 22.9.0
datasets==2.7.0
Local data files
The contents of the data folder is:
./dataset/disaster (relative directory)
train.csv
validation.csv
test.csv
Python code
Using the following python code in test_local_load.py
from datasets import load_dataset
try:
disaster = load_dataset("./dataset/disaster/")
print(f" the type {type(disaster)}\n{disaster}")
except Exception as e1:
print(f"First approach failed")
Output
I get the following output and behavior.
python test_local_load.py
Using custom data configuration disaster-9428d3f8c9e1b41b
Downloading and preparing dataset csv/disaster to /Users/fordaz/.cache/huggingface/datasets/csv/disaster-9428d3f8c9e1b41b/0.0.0/6b34fb8fcf56f7c8ba51dc895bfa2bfbe43546f190a60fcf74bb5e8afdcc2317...
Downloading data files: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 7772.03it/s]
Using custom data configuration disaster-9428d3f8c9e1b41b
Using custom data configuration disaster-9428d3f8c9e1b41b
Using custom data configuration disaster-9428d3f8c9e1b41b
The problem is that after these messages, it hangs forever.
Any hints will be appreciated, thanks in advance!