Update Persian-News.py
Browse files- Persian-News.py +3 -3
Persian-News.py
CHANGED
@@ -63,9 +63,9 @@ class PersianNews(datasets.GeneratorBasedBuilder):
|
|
63 |
downloaded_file = dl_manager.download_custom(_DRIVE_URL, self.custom_dataset)
|
64 |
extracted_file = dl_manager.extract(downloaded_file)
|
65 |
return [
|
66 |
-
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": os.path.join(extracted_file, '
|
67 |
-
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": os.path.join(extracted_file, '
|
68 |
-
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": os.path.join(extracted_file, '
|
69 |
]
|
70 |
|
71 |
def _generate_examples(self, filepath):
|
|
|
63 |
downloaded_file = dl_manager.download_custom(_DRIVE_URL, self.custom_dataset)
|
64 |
extracted_file = dl_manager.extract(downloaded_file)
|
65 |
return [
|
66 |
+
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": os.path.join(extracted_file, 'persian_news/train.csv')}),
|
67 |
+
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": os.path.join(extracted_file, 'persian_news/test.csv')}),
|
68 |
+
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": os.path.join(extracted_file, 'persian_news/dev.csv')}),
|
69 |
]
|
70 |
|
71 |
def _generate_examples(self, filepath):
|