albertvillanova HF staff commited on
Commit
1be3989
1 Parent(s): dab944b

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. eur-lex-sum.py +0 -4
eur-lex-sum.py CHANGED
@@ -6,7 +6,6 @@ import os
6
  import json
7
 
8
  import datasets
9
- from datasets.tasks import Summarization
10
 
11
 
12
  logger = datasets.logging.get_logger(__name__)
@@ -113,9 +112,6 @@ class EurLexSum(datasets.GeneratorBasedBuilder):
113
  homepage=_HOMEPAGE,
114
  citation=_CITATION,
115
  license=_LICENSE,
116
- task_templates=[
117
- Summarization(task="summarization", text_column="reference", summary_column="summary")
118
- ],
119
  )
120
 
121
  def _split_generators(self, dl_manager):
 
6
  import json
7
 
8
  import datasets
 
9
 
10
 
11
  logger = datasets.logging.get_logger(__name__)
 
112
  homepage=_HOMEPAGE,
113
  citation=_CITATION,
114
  license=_LICENSE,
 
 
 
115
  )
116
 
117
  def _split_generators(self, dl_manager):