albertvillanova HF staff commited on
Commit
bfaab1d
·
verified ·
1 Parent(s): 213f66c

Remove deprecated tasks

Browse files

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

Files changed (1) hide show
  1. pmc_open_access_xml.py +0 -2
pmc_open_access_xml.py CHANGED
@@ -27,7 +27,6 @@ from lxml import etree
27
  import json
28
 
29
  import datasets
30
- from datasets.tasks import LanguageModeling
31
 
32
 
33
  # TODO: Add BibTeX citation
@@ -456,7 +455,6 @@ class OpenAccessXML(datasets.GeneratorBasedBuilder):
456
  homepage=_HOMEPAGE,
457
  license=_LICENSE,
458
  citation=_CITATION,
459
- task_templates=[LanguageModeling(text_column="content")],
460
  )
461
 
462
  def _split_generators(self, dl_manager):
 
27
  import json
28
 
29
  import datasets
 
30
 
31
 
32
  # TODO: Add BibTeX citation
 
455
  homepage=_HOMEPAGE,
456
  license=_LICENSE,
457
  citation=_CITATION,
 
458
  )
459
 
460
  def _split_generators(self, dl_manager):