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 +4 -2
kinopoisk.py
CHANGED
@@ -16,8 +16,10 @@ class Kinopoisk(datasets.GeneratorBasedBuilder):
|
|
16 |
]
|
17 |
|
18 |
def _info(self):
|
19 |
-
|
20 |
-
|
|
|
|
|
21 |
return datasets.DatasetInfo(
|
22 |
description='Kinopoisk movie reviews dataset.',
|
23 |
features=datasets.Features(features),
|
|
|
16 |
]
|
17 |
|
18 |
def _info(self):
|
19 |
+
features = {feature: datasets.Value("string") for feature in self.config.features}
|
20 |
+
#if self.config.name == "simple":
|
21 |
+
# features = {feature: datasets.Value("string") for feature in self.config.features}
|
22 |
+
features["Idx"] = datasets.Value("int32")
|
23 |
return datasets.DatasetInfo(
|
24 |
description='Kinopoisk movie reviews dataset.',
|
25 |
features=datasets.Features(features),
|