Datasets:

Languages:
English
ArXiv:
License:
albertvillanova HF staff commited on
Commit
47f7433
·
verified ·
1 Parent(s): afda465

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. multi_lexsum.py +0 -7
multi_lexsum.py CHANGED
@@ -3,7 +3,6 @@ import os
3
  from typing import Any, Dict, List, Tuple, Union
4
 
5
  import datasets
6
- from datasets.tasks import Summarization
7
 
8
  logger = datasets.logging.get_logger(__name__)
9
 
@@ -100,9 +99,6 @@ class MultiLexsum(datasets.GeneratorBasedBuilder):
100
  supervised_keys=None,
101
  homepage=_HOMEPAGE,
102
  citation=_CITATION,
103
- task_templates=[
104
- Summarization(text_column="source", summary_column="summary/long")
105
- ],
106
  )
107
  elif self.config.name == "v20230518":
108
  return datasets.DatasetInfo(
@@ -155,9 +151,6 @@ class MultiLexsum(datasets.GeneratorBasedBuilder):
155
  supervised_keys=None,
156
  homepage=_HOMEPAGE,
157
  citation=_CITATION,
158
- task_templates=[
159
- Summarization(text_column="source", summary_column="summary/long")
160
- ],
161
  )
162
 
163
  def _split_generators(self, dl_manager):
 
3
  from typing import Any, Dict, List, Tuple, Union
4
 
5
  import datasets
 
6
 
7
  logger = datasets.logging.get_logger(__name__)
8
 
 
99
  supervised_keys=None,
100
  homepage=_HOMEPAGE,
101
  citation=_CITATION,
 
 
 
102
  )
103
  elif self.config.name == "v20230518":
104
  return datasets.DatasetInfo(
 
151
  supervised_keys=None,
152
  homepage=_HOMEPAGE,
153
  citation=_CITATION,
 
 
 
154
  )
155
 
156
  def _split_generators(self, dl_manager):