nlp-with-transformers / notebooks

Jupyter notebooks for the Natural Language Processing with Transformers book
https://transformersbook.com/
Apache License 2.0
3.7k stars 1.13k forks source link

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

Open chesterxgchen opened 1 year ago

chesterxgchen commented 1 year ago

Information

The problem arises in chapter 2

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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