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 -1
kinopoisk.py
CHANGED
@@ -48,7 +48,10 @@ class Kinopoisk(datasets.GeneratorBasedBuilder):
|
|
48 |
# datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
|
49 |
# datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
|
50 |
#]
|
51 |
-
return [
|
|
|
|
|
|
|
52 |
|
53 |
def _generate_examples(self, filepath):
|
54 |
df = pd.read_json(filepath, lines=True)
|
|
|
48 |
# datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
|
49 |
# datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
|
50 |
#]
|
51 |
+
return [
|
52 |
+
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": []}),
|
53 |
+
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": []}),
|
54 |
+
]
|
55 |
|
56 |
def _generate_examples(self, filepath):
|
57 |
df = pd.read_json(filepath, lines=True)
|