Datasets:

Modalities:
Text
Languages:
English
ArXiv:
Tags:
License:
Severine commited on
Commit
6e252a5
1 Parent(s): dc7b9e2
Files changed (2) hide show
  1. C2Gen.py +6 -2
  2. data/test.json +0 -0
C2Gen.py CHANGED
@@ -58,6 +58,7 @@ class SuperLim(datasets.GeneratorBasedBuilder):
58
  datasets.BuilderConfig(name="c2gen", version=VERSION, description=_DESCRIPTION),
59
  ]
60
 
 
61
 
62
  def _info(self):
63
  # TODO: This method specifies the datasets.DatasetInfo object which contains informations and typings for the dataset
@@ -65,7 +66,7 @@ class SuperLim(datasets.GeneratorBasedBuilder):
65
  features = datasets.Features(
66
  {
67
  "context": datasets.Value("string"),
68
- "keywords": datasets.Value("string"),
69
  # These are the features of your dataset like images, labels ...
70
  }
71
  )
@@ -116,6 +117,9 @@ class SuperLim(datasets.GeneratorBasedBuilder):
116
  # Yields examples as (key, example) tuples
117
  yield key, {
118
  "context": row["Context"],
119
- "keywords": row["Words"],
 
 
 
120
  }
121
 
 
58
  datasets.BuilderConfig(name="c2gen", version=VERSION, description=_DESCRIPTION),
59
  ]
60
 
61
+ DEFAULT_CONFIG_NAME = "c2gen"
62
 
63
  def _info(self):
64
  # TODO: This method specifies the datasets.DatasetInfo object which contains informations and typings for the dataset
 
66
  features = datasets.Features(
67
  {
68
  "context": datasets.Value("string"),
69
+ "keywords": datasets.Sequence(feature={"a": datasets.Value(datasets.dtype="String", id=None),"b": datasets.Value(datasets.dtype="String", id=None),"c": datasets.Value(datasets.dtype="String", id=None)}, length=-1,id=None),
70
  # These are the features of your dataset like images, labels ...
71
  }
72
  )
 
117
  # Yields examples as (key, example) tuples
118
  yield key, {
119
  "context": row["Context"],
120
+ "keywords": {
121
+ "a": row["Words"]["a"],
122
+ "b": row["Words"]["b"],
123
+ "c": row["Words"]["c"],
124
  }
125
 
data/test.json CHANGED
The diff for this file is too large to render. See raw diff