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 +11 -11
kinopoisk.py
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
import datasets
|
2 |
import pandas as pd
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
|
9 |
class Kinopoisk(datasets.GeneratorBasedBuilder):
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
|
18 |
def _info(self):
|
19 |
return datasets.DatasetInfo(
|
|
|
1 |
import datasets
|
2 |
import pandas as pd
|
3 |
|
4 |
+
class KinopoiskReviewsConfig(datasets.BuilderConfig):
|
5 |
+
def __init__(self, features, **kwargs):
|
6 |
+
super(KinopoiskReviewsConfig, self).__init__(version=datasets.Version("1.0.0", ""), **kwargs)
|
7 |
+
self.features = features
|
8 |
|
9 |
class Kinopoisk(datasets.GeneratorBasedBuilder):
|
10 |
+
BUILDER_CONFIGS = [
|
11 |
+
KinopoiskReviewsConfig(
|
12 |
+
name="simple",
|
13 |
+
description="Simple config",
|
14 |
+
features=["content", "title", "grade3", "movie_name", "part", "review_id", "author", "date"],
|
15 |
+
)
|
16 |
+
]
|
17 |
|
18 |
def _info(self):
|
19 |
return datasets.DatasetInfo(
|