albertvillanova HF staff commited on
Commit
a589137
1 Parent(s): 37e4776

Remove deprecated tasks

Browse files

This dataset uses `tasks`, which are deprecated and will raise an error after the next release of `datasets`. See: https://github.com/huggingface/datasets/pull/6999

Files changed (1) hide show
  1. blbooks.py +0 -2
blbooks.py CHANGED
@@ -19,7 +19,6 @@ from functools import lru_cache
19
  from typing import Dict, List
20
 
21
  import datasets
22
- from datasets.tasks import LanguageModeling
23
 
24
 
25
  _CITATION = """\
@@ -170,7 +169,6 @@ class BritishLibraryBooks(datasets.GeneratorBasedBuilder):
170
  supervised_keys=None,
171
  homepage="https://www.bl.uk/collection-guides/digitised-printed-books",
172
  citation=_CITATION,
173
- task_templates=[LanguageModeling(text_column="text")],
174
  )
175
 
176
  def _split_generators(self, dl_manager: datasets.DownloadManager):
 
19
  from typing import Dict, List
20
 
21
  import datasets
 
22
 
23
 
24
  _CITATION = """\
 
169
  supervised_keys=None,
170
  homepage="https://www.bl.uk/collection-guides/digitised-printed-books",
171
  citation=_CITATION,
 
172
  )
173
 
174
  def _split_generators(self, dl_manager: datasets.DownloadManager):