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

Chapter 2: load_dataset("emotion") show file not found #95

Open
10 tasks
chesterxgchen opened this issue May 3, 2023 · 4 comments · May be fixed by #100
Open
10 tasks

Chapter 2: load_dataset("emotion") show file not found #95

chesterxgchen opened this issue May 3, 2023 · 4 comments · May be fixed by #100

Comments

@chesterxgchen
Copy link

chesterxgchen commented May 3, 2023

Information

The problem arises in chapter 2

  • Introduction
  • [X ] Text Classification
  • Transformer Anatomy
  • Multilingual Named Entity Recognition
  • Text Generation
  • Summarization
  • Question Answering
  • Making Transformers Efficient in Production
  • Dealing with Few to No Labels
  • Training Transformers from Scratch
  • Future Directions

Describe the bug

emotions = load_dataset("emotion")

datasets/utils/file_utils.py:608, in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params)
606 raise FileNotFoundError(f"Couldn't find file at {url}")
607 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}")
--> 608 raise ConnectionError(f"Couldn't reach {url}")
610 # Try a second time
611 filename = hash_url_to_filename(cached_url, etag)

ConnectionError: Couldn't reach https://www.dropbox.com/s/1pzkadrvffbqw6o/train.txt?dl=1

To Reproduce

Steps to reproduce the behavior:

  1. launch Chapter 2 notebook
  2. run cmd 5:
    emotions = load_dataset("emotion")
  3. will show above error

Expected behavior

@choyrim
Copy link

choyrim commented May 11, 2023

looks like the dataset has been renamed "dair-ai/emotion"

the corresponding page in huggingface datasets seems to match up with the table contents in the book

https://huggingface.co/datasets/dair-ai/emotion

@theAfricanQuant
Copy link

Thanks

looks like the dataset has been renamed "dair-ai/emotion"

the corresponding page in huggingface datasets seems to match up with the table contents in the book

https://huggingface.co/datasets/dair-ai/emotion

Thanks @choyrim
This was quite helpful

@norlesh
Copy link

norlesh commented May 23, 2023


FileNotFoundError Traceback (most recent call last)
Cell In[6], line 4
1 # hide_output
2 from datasets import load_dataset
----> 4 emotions = load_dataset("dair-ai\emotion")

@norlesh
Copy link

norlesh commented May 23, 2023

emotions = load_dataset("DingZhaohai/emotion")
seems to work this week.

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