Datasets:
GEM
/

Tasks:
Other
Modalities:
Text
Languages:
English
ArXiv:
Libraries:
Datasets
License:
Sebastian Gehrmann commited on
Commit
35f183d
1 Parent(s): c894f9e

rename fields

Browse files
Files changed (1) hide show
  1. art.py +6 -11
art.py CHANGED
@@ -30,15 +30,8 @@ class ArtConfig(datasets.BuilderConfig):
30
 
31
 
32
  class Art(datasets.GeneratorBasedBuilder):
33
- VERSION = datasets.Version("0.1.0")
34
- BUILDER_CONFIGS = [
35
- ArtConfig(
36
- name="anlg",
37
- description="""\
38
- Abductive Natural Language Generation Dataset from AI2.
39
- """,
40
- ),
41
- ]
42
 
43
  def _info(self):
44
  return datasets.DatasetInfo(
@@ -48,7 +41,8 @@ class Art(datasets.GeneratorBasedBuilder):
48
  "gem_id": datasets.Value("string"),
49
  "observation_1": datasets.Value("string"),
50
  "observation_2": datasets.Value("string"),
51
- "label": datasets.Value("string"),
 
52
  }
53
  ),
54
  homepage=_HOMEPAGE,
@@ -80,5 +74,6 @@ class Art(datasets.GeneratorBasedBuilder):
80
  "gem_id": f"GEM-ART-{split}-{idx}",
81
  "observation_1": row["obs1"],
82
  "observation_2": row["obs2"],
83
- "label": label,
 
84
  }
 
30
 
31
 
32
  class Art(datasets.GeneratorBasedBuilder):
33
+ VERSION = datasets.Version("0.1.1")
34
+ DEFAULT_CONFIG_NAME = "anlg"
 
 
 
 
 
 
 
35
 
36
  def _info(self):
37
  return datasets.DatasetInfo(
 
41
  "gem_id": datasets.Value("string"),
42
  "observation_1": datasets.Value("string"),
43
  "observation_2": datasets.Value("string"),
44
+ "target": datasets.Value("string"),
45
+ "references": [datasets.Value("string")],
46
  }
47
  ),
48
  homepage=_HOMEPAGE,
 
74
  "gem_id": f"GEM-ART-{split}-{idx}",
75
  "observation_1": row["obs1"],
76
  "observation_2": row["obs2"],
77
+ "target": label,
78
+ "references": [label],
79
  }