Datasets:

Modalities:
Text
Formats:
json
Languages:
English
ArXiv:
Libraries:
Datasets
pandas
License:
Axel578 commited on
Commit
7fa89d8
·
1 Parent(s): c4b07c7

Update samsum.py

Browse files
Files changed (1) hide show
  1. samsum.py +4 -4
samsum.py CHANGED
@@ -9,8 +9,8 @@ class SkillDataset(datasets.GeneratorBasedBuilder):
9
  description="A dataset of skills and their descriptions",
10
  features=datasets.Features(
11
  {
12
- "input": datasets.Value("string"),
13
- "target": datasets.Value("string"),
14
  }
15
  ),
16
  )
@@ -39,6 +39,6 @@ class SkillDataset(datasets.GeneratorBasedBuilder):
39
  def _generate_examples(self, data):
40
  for i, mapping in enumerate(data):
41
  yield i, {
42
- "input": mapping["input"],
43
- "target": mapping["target"],
44
  }
 
9
  description="A dataset of skills and their descriptions",
10
  features=datasets.Features(
11
  {
12
+ "summary": datasets.Value("string"),
13
+ "dialogue": datasets.Value("string"),
14
  }
15
  ),
16
  )
 
39
  def _generate_examples(self, data):
40
  for i, mapping in enumerate(data):
41
  yield i, {
42
+ "input": mapping["summary"],
43
+ "target": mapping["dialogue"],
44
  }