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 +10 -1
kinopoisk.py
CHANGED
@@ -1,8 +1,17 @@
|
|
1 |
import datasets
|
2 |
import pandas as pd
|
3 |
|
|
|
|
|
|
|
|
|
4 |
class Kinopoisk(datasets.GeneratorBasedBuilder):
|
5 |
-
BUILDER_CONFIGS = [
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
def _info(self):
|
8 |
return datasets.DatasetInfo(
|
|
|
1 |
import datasets
|
2 |
import pandas as pd
|
3 |
|
4 |
+
class KinopoiskReviewsConfig(datasets.BuilderConfig):
|
5 |
+
def __init__(self, **kwargs):
|
6 |
+
super(KinopoiskReviewsConfig, self).__init__(version=datasets.Version("1.0.0", ""), **kwargs)
|
7 |
+
|
8 |
class Kinopoisk(datasets.GeneratorBasedBuilder):
|
9 |
+
BUILDER_CONFIGS = [
|
10 |
+
KinopoiskReviewsConfig(
|
11 |
+
name="plain_text",
|
12 |
+
description="Plain text",
|
13 |
+
)
|
14 |
+
]
|
15 |
|
16 |
def _info(self):
|
17 |
return datasets.DatasetInfo(
|