albertvillanova HF staff commited on
Commit
817f291
1 Parent(s): 5bf07d5

Make defunct dataset (#5)

Browse files

- Raise DefunctDatasetError (ac1685c0d1700615b8d1d9a2ce08d9bff7fd60ed)
- Add defunct disclaimer to dataset card (cb6e644a861fd46ec2b7d088e1d84241d8791d92)
- Disable viewer (f51980a7f721ee2f4eaba5d1e4ba02c6bbf2d05c)
- Delete deprecated dataset_infos.json (8ec322416cf397782f7bfb7e9d77388150432558)

Files changed (3) hide show
  1. README.md +5 -0
  2. bookcorpusopen.py +4 -0
  3. dataset_infos.json +0 -1
README.md CHANGED
@@ -34,6 +34,7 @@ dataset_info:
34
  num_examples: 17868
35
  download_size: 2404269430
36
  dataset_size: 6643435392
 
37
  ---
38
 
39
  # Dataset Card for BookCorpusOpen
@@ -74,6 +75,10 @@ dataset_info:
74
 
75
  ### Dataset Summary
76
 
 
 
 
 
77
  Books are a rich source of both fine-grained information, how a character, an object or a scene looks like, as well as high-level semantics, what someone is thinking, feeling and how these states evolve through a story.
78
  This version of bookcorpus has 17868 dataset items (books). Each item contains two fields: title and text. The title is the name of the book (just the file name) while text contains unprocessed book text. The bookcorpus has been prepared by Shawn Presser and is generously hosted by The-Eye. The-Eye is a non-profit, community driven platform dedicated to the archiving and long-term preservation of any and all data including but by no means limited to... websites, books, games, software, video, audio, other digital-obscura and ideas.
79
 
 
34
  num_examples: 17868
35
  download_size: 2404269430
36
  dataset_size: 6643435392
37
+ viewer: false
38
  ---
39
 
40
  # Dataset Card for BookCorpusOpen
 
75
 
76
  ### Dataset Summary
77
 
78
+ <div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
79
+ <p><b>Defunct:</b> Dataset "bookcorpusopen" is defunct and no longer accessible due to unavailability of the source data.</p>
80
+ </div>
81
+
82
  Books are a rich source of both fine-grained information, how a character, an object or a scene looks like, as well as high-level semantics, what someone is thinking, feeling and how these states evolve through a story.
83
  This version of bookcorpus has 17868 dataset items (books). Each item contains two fields: title and text. The title is the name of the book (just the file name) while text contains unprocessed book text. The bookcorpus has been prepared by Shawn Presser and is generously hosted by The-Eye. The-Eye is a non-profit, community driven platform dedicated to the archiving and long-term preservation of any and all data including but by no means limited to... websites, books, games, software, video, audio, other digital-obscura and ideas.
84
 
bookcorpusopen.py CHANGED
@@ -21,6 +21,7 @@ import os
21
  from fnmatch import fnmatch
22
 
23
  import datasets
 
24
 
25
 
26
  _DESCRIPTION = """\
@@ -75,6 +76,9 @@ class BookCorpusOpen(datasets.GeneratorBasedBuilder):
75
  ]
76
 
77
  def _info(self):
 
 
 
78
  return datasets.DatasetInfo(
79
  description=_DESCRIPTION,
80
  features=datasets.Features(
 
21
  from fnmatch import fnmatch
22
 
23
  import datasets
24
+ from datasets.exceptions import DefunctDatasetError
25
 
26
 
27
  _DESCRIPTION = """\
 
76
  ]
77
 
78
  def _info(self):
79
+ raise DefunctDatasetError(
80
+ "Dataset 'bookcorpusopen' is defunct and no longer accessible due to unavailability of the source data"
81
+ )
82
  return datasets.DatasetInfo(
83
  description=_DESCRIPTION,
84
  features=datasets.Features(
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"plain_text": {"description": "Books are a rich source of both fine-grained information, how a character, an object or a scene looks like, as well as high-level semantics, what someone is thinking, feeling and how these states evolve through a story.\nThis version of bookcorpus has 17868 dataset items (books). Each item contains two fields: title and text. The title is the name of the book (just the file name) while text contains unprocessed book text. The bookcorpus has been prepared by Shawn Presser and is generously hosted by The-Eye. The-Eye is a non-profit, community driven platform dedicated to the archiving and long-term preservation of any and all data including but by no means limited to... websites, books, games, software, video, audio, other digital-obscura and ideas.\n", "citation": "@InProceedings{Zhu_2015_ICCV,\n title = {Aligning Books and Movies: Towards Story-Like Visual Explanations by Watching Movies and Reading Books},\n author = {Zhu, Yukun and Kiros, Ryan and Zemel, Rich and Salakhutdinov, Ruslan and Urtasun, Raquel and Torralba, Antonio and Fidler, Sanja},\n booktitle = {The IEEE International Conference on Computer Vision (ICCV)},\n month = {December},\n year = {2015}\n}\n", "homepage": "https://github.com/soskek/bookcorpus/issues/27", "license": "", "features": {"title": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "book_corpus_open", "config_name": "plain_text", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 6643435392, "num_examples": 17868, "dataset_name": "book_corpus_open"}}, "download_checksums": {"https://mystic.the-eye.eu/public/AI/pile_preliminary_components/books1.tar.gz": {"num_bytes": 2404269430, "checksum": "e3c993cc825df2bdf0f78ef592f5c09236f0b9cd6bb1877142281acc50f446f9"}}, "download_size": 2404269430, "post_processing_size": null, "dataset_size": 6643435392, "size_in_bytes": 9047704822}}