albertvillanova HF staff commited on
Commit
f8b5a8b
1 Parent(s): 7b0bd16

Raise DefunctDatasetError (#9)

Browse files

- Raise DefunctDatasetError (09b974af94093b848d9230b4929297e89e196458)

Files changed (1) hide show
  1. the_pile_books3.py +4 -0
the_pile_books3.py CHANGED
@@ -17,6 +17,7 @@
17
  """The BookCorpus dataset based on Shawn Presser's work https://github.com/soskek/bookcorpus/issues/27 """
18
 
19
  import datasets
 
20
 
21
 
22
  _DESCRIPTION = """\
@@ -64,6 +65,9 @@ class ThePileBooks3(datasets.GeneratorBasedBuilder):
64
  DEFAULT_WRITER_BATCH_SIZE = 500
65
 
66
  def _info(self):
 
 
 
67
  return datasets.DatasetInfo(
68
  description=_DESCRIPTION,
69
  features=datasets.Features(
 
17
  """The BookCorpus dataset based on Shawn Presser's work https://github.com/soskek/bookcorpus/issues/27 """
18
 
19
  import datasets
20
+ from datasets.exceptions import DefunctDatasetError
21
 
22
 
23
  _DESCRIPTION = """\
 
65
  DEFAULT_WRITER_BATCH_SIZE = 500
66
 
67
  def _info(self):
68
+ raise DefunctDatasetError(
69
+ "Dataset 'the_pile_books3' is defunct and no longer accessible due to reported copyright infringement"
70
+ )
71
  return datasets.DatasetInfo(
72
  description=_DESCRIPTION,
73
  features=datasets.Features(