Datasets:
Update long-summarization-persian.py
Browse files
long-summarization-persian.py
CHANGED
@@ -23,11 +23,8 @@ _DESCRIPTION = """\
|
|
23 |
This new dataset is designed to solve persian long summarization tasks.
|
24 |
"""
|
25 |
|
26 |
-
|
27 |
-
|
28 |
-
"validation": "https://huggingface.co/datasets/zedfum/long-summarization-persian/blob/main/validation.csv",
|
29 |
-
"test": "https://huggingface.co/datasets/zedfum/long-summarization-persian/blob/main/test.csv",
|
30 |
-
}
|
31 |
class long_summarization_persianConfig(datasets.BuilderConfig):
|
32 |
|
33 |
def __init__(self, **kwargs):
|
@@ -61,7 +58,11 @@ class long_summarization_persian(datasets.GeneratorBasedBuilder):
|
|
61 |
)
|
62 |
|
63 |
def _split_generators(self, dl_manager):
|
64 |
-
urls_to_download =
|
|
|
|
|
|
|
|
|
65 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
66 |
|
67 |
return [
|
|
|
23 |
This new dataset is designed to solve persian long summarization tasks.
|
24 |
"""
|
25 |
|
26 |
+
_URL = "./"
|
27 |
+
|
|
|
|
|
|
|
28 |
class long_summarization_persianConfig(datasets.BuilderConfig):
|
29 |
|
30 |
def __init__(self, **kwargs):
|
|
|
58 |
)
|
59 |
|
60 |
def _split_generators(self, dl_manager):
|
61 |
+
urls_to_download = {
|
62 |
+
"train": f"{_URL}train.csv",
|
63 |
+
"test": f"{_URL}test.csv",
|
64 |
+
"validation": f"{_URL}validation.csv",
|
65 |
+
}
|
66 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
67 |
|
68 |
return [
|