add features attr to _info()
Browse files- arithmetic.py +7 -1
arithmetic.py
CHANGED
@@ -118,9 +118,15 @@ class Arithmetic(datasets.GeneratorBasedBuilder):
|
|
118 |
]
|
119 |
|
120 |
def _info(self):
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
return datasets.DatasetInfo(
|
122 |
description=f"{_DESCRIPTION}\n{self.config.description}",
|
123 |
-
features=
|
124 |
homepage=_HOMEPAGE,
|
125 |
license=_LICENSE,
|
126 |
citation=_CITATION,
|
|
|
118 |
]
|
119 |
|
120 |
def _info(self):
|
121 |
+
features = datasets.Features(
|
122 |
+
{
|
123 |
+
"context": datasets.Value("string"),
|
124 |
+
"completion": datasets.Value("string"),
|
125 |
+
}
|
126 |
+
)
|
127 |
return datasets.DatasetInfo(
|
128 |
description=f"{_DESCRIPTION}\n{self.config.description}",
|
129 |
+
features=features,
|
130 |
homepage=_HOMEPAGE,
|
131 |
license=_LICENSE,
|
132 |
citation=_CITATION,
|