Local dataset loading issues


I have a small issue, I would like to ask someone for a help.
I wrote a loading script for my local dataset, which is not on hugging face, but is in my local folder in .conll format.
When I want to load my dataset, it throws a ModuleNotFoundError, which is obvious, since it tries to load my dataset as a module

I try to load the dataset with load_dataset

dataset = load_dataset("CNEC/cnec2.0_extended", trust_remote_code=True)

and it throws

ModuleNotFoundError: No module named 'datasets_modules.datasets.cnec2'

do I have to first upload the dataset to the hugging face, or am I doing something wrong?

The issue was, that the hugging face load_dataset does not like the dot ‘.’ in the name of the file, I changed the name to one without a dot and the dataset was loaded.

Yeah the dot was definitely the issue. It is not good naming convention to put periods in names. These normally indicate the start of the file extension.

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.