Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
json
Sub-tasks:
sentiment-classification
Languages:
Russian
Size:
10K - 100K
License:
Update kinopoisk.py
Browse files- kinopoisk.py +3 -13
kinopoisk.py
CHANGED
@@ -16,21 +16,11 @@ class Kinopoisk(datasets.GeneratorBasedBuilder):
|
|
16 |
]
|
17 |
|
18 |
def _info(self):
|
|
|
|
|
19 |
return datasets.DatasetInfo(
|
20 |
description='Kinopoisk movie reviews dataset.',
|
21 |
-
features=datasets.Features(
|
22 |
-
{
|
23 |
-
"content": datasets.Value("string"),
|
24 |
-
"title": datasets.Value("string"),
|
25 |
-
"grade3": datasets.Value("string"),
|
26 |
-
"movie_name": datasets.Value("string"),
|
27 |
-
"part": datasets.Value("string"),
|
28 |
-
"review_id": datasets.Value("string"),
|
29 |
-
"author": datasets.Value("string"),
|
30 |
-
"date":datasets.Value("string"),
|
31 |
-
"grade10": datasets.Value("string"),
|
32 |
-
}
|
33 |
-
),
|
34 |
supervised_keys=None,
|
35 |
homepage='',
|
36 |
citation='',
|
|
|
16 |
]
|
17 |
|
18 |
def _info(self):
|
19 |
+
if self.config.name == "simple":
|
20 |
+
features = {feature: datasets.Value("string") for feature in self.config.features}
|
21 |
return datasets.DatasetInfo(
|
22 |
description='Kinopoisk movie reviews dataset.',
|
23 |
+
features=datasets.Features(features),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
supervised_keys=None,
|
25 |
homepage='',
|
26 |
citation='',
|