hofarah commited on
Commit
ba29254
1 Parent(s): 9f5f392

Update long-summarization-persian.py

Browse files
Files changed (1) hide show
  1. long-summarization-persian.py +7 -6
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
- _URLS = {
27
- "train": "https://huggingface.co/datasets/zedfum/long-summarization-persian/blob/main/train.csv",
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 = _URLS
 
 
 
 
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 [