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 -1
kinopoisk.py
CHANGED
@@ -51,12 +51,14 @@ class Kinopoisk(datasets.GeneratorBasedBuilder):
|
|
51 |
|
52 |
def _split_generators(self, dl_manager: datasets.DownloadManager):
|
53 |
urls_to_download = {
|
54 |
-
"train": "kinopoisk.jsonl"
|
|
|
55 |
}
|
56 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
57 |
|
58 |
return [
|
59 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
|
|
|
60 |
]
|
61 |
|
62 |
def _generate_examples(self, filepath):
|
|
|
51 |
|
52 |
def _split_generators(self, dl_manager: datasets.DownloadManager):
|
53 |
urls_to_download = {
|
54 |
+
"train": "kinopoisk.jsonl",
|
55 |
+
"dev": "kinopoisk.jsonl",
|
56 |
}
|
57 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
58 |
|
59 |
return [
|
60 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
|
61 |
+
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
|
62 |
]
|
63 |
|
64 |
def _generate_examples(self, filepath):
|