Datasets:
Suzen Fylke commited on
Commit ·
d1b828f
1
Parent(s): 3cbc6d5
Fix formatting
Browse files
kelly.py
CHANGED
|
@@ -45,27 +45,27 @@ class Kelly(datasets.GeneratorBasedBuilder):
|
|
| 45 |
VERSION = datasets.Version("1.0.0")
|
| 46 |
|
| 47 |
def _info(self):
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
|
| 70 |
def _split_generators(self, dl_manager):
|
| 71 |
data_path = dl_manager.download_and_extract(_URLS["csv"])
|
|
|
|
| 45 |
VERSION = datasets.Version("1.0.0")
|
| 46 |
|
| 47 |
def _info(self):
|
| 48 |
+
features = datasets.Features(
|
| 49 |
+
{
|
| 50 |
+
"id": datasets.Value("string"),
|
| 51 |
+
"raw_frequency": datasets.Value("float64"),
|
| 52 |
+
"relative_frequency": datasets.Value("float64"),
|
| 53 |
+
"cefr_level": datasets.Value("string"),
|
| 54 |
+
"source": datasets.Value("string"),
|
| 55 |
+
"marker": datasets.Value("string"),
|
| 56 |
+
"lemma": datasets.Value("string"),
|
| 57 |
+
"class": datasets.Value("string"),
|
| 58 |
+
"examples": datasets.Value("string"),
|
| 59 |
+
}
|
| 60 |
+
)
|
| 61 |
|
| 62 |
+
return datasets.DatasetInfo(
|
| 63 |
+
description=_DESCRIPTION,
|
| 64 |
+
features=features,
|
| 65 |
+
homepage=_HOMEPAGE,
|
| 66 |
+
license=_LICENSE,
|
| 67 |
+
citation=_CITATION,
|
| 68 |
+
)
|
| 69 |
|
| 70 |
def _split_generators(self, dl_manager):
|
| 71 |
data_path = dl_manager.download_and_extract(_URLS["csv"])
|