nlp-with-transformers / notebooks

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

Chapter 2 - Dataset 'emotion' is not loading due to invalid url #81

Open leobavila opened 1 year ago

leobavila commented 1 year ago

Information

The problem arises in chapter:

Describe the bug

To Reproduce

Steps to reproduce the behavior:

  1. Open in colab the notebook to chapter 2
  2. Run the code: from datasets import load_dataset emotions = load_dataset("emotion")
  3. Error: Downloading and preparing dataset emotion/default (download: 1.97 MiB, generated: 2.07 MiB, post-processed: Unknown size, total: 4.05 MiB) to /root/.cache/huggingface/datasets/emotion/default/0.0.0/348f63ca8e27b3713b6c04d723efe6d824a56fb3d1449794716c0f0296072705... FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/1pzkadrvffbqw6o/train.txt?dl=1
jsalbr commented 1 year ago

I got the same error. It's using an old dataset version on colab.

Add !pip install -U datasets after install_requirements(is_chapter2=True) and it works except for those few commands that really look into the dropbox file.

choyrim commented 1 year ago

looks like a dup of #95

norlesh commented 1 year ago

How about before anybody closes the issue this time, they go back and fix the freaking notebook (along with every other chapter notebook) so that every other reader does not have to do the same dance of looking up community supplied workarounds in the obligatory bug report for each chapters notebook.

Spending more time searching for fixes to the code examples than learning from the text.