Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error loading dataset from URL #752

Open
directedLink opened this issue Oct 14, 2024 · 1 comment
Open

Error loading dataset from URL #752

directedLink opened this issue Oct 14, 2024 · 1 comment

Comments

@directedLink
Copy link

I am experiencing an error when trying to load the PubMed dataset from a specific URL.

https://huggingface.co/learn/nlp-course/chapter5/4

Use the following code to load the dataset:

from datasets import load_dataset

data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst"
pubmed_dataset = load_dataset("json", data_files=data_files, split="train")

When running the code, I encounter the following error message:

FileNotFoundError: Unable to find 'https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst'
@grib0ed0v
Copy link

You could use workaround highlighted here.

data_files = "https://huggingface.co/datasets/casinca/PUBMED_title_abstracts_2019_baseline/resolve/main/PUBMED_title_abstracts_2019_baseline.jsonl.zst"
pubmed_dataset = load_dataset("json", data_files=data_files, split="train")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants