Datasets:
tau
/

Modalities:
Text
Libraries:
Datasets
yuvalkirstain commited on
Commit
a1fa43e
·
1 Parent(s): 802326d

trying to add attr to fs config

Browse files
Files changed (1) hide show
  1. fs.py +5 -2
fs.py CHANGED
@@ -65,7 +65,7 @@ _GOV_REPORT_CITATION = r"""
65
  class FSConfig(datasets.BuilderConfig):
66
  """BuilderConfig for FS."""
67
 
68
- def __init__(self, features, data_url, citation, url, **kwargs):
69
  """BuilderConfig for FS.
70
  Args:
71
  features: `list[string]`, list of the features that will appear in the
@@ -83,6 +83,7 @@ class FSConfig(datasets.BuilderConfig):
83
  self.data_url = data_url
84
  self.citation = citation
85
  self.url = url
 
86
 
87
 
88
  class Fs(datasets.GeneratorBasedBuilder):
@@ -98,6 +99,7 @@ class Fs(datasets.GeneratorBasedBuilder):
98
  data_url="https://huggingface.co/datasets/tau/fs/resolve/main/data/summ_screen_fd.zip",
99
  citation=_SUMM_SCREEN_CITATION,
100
  url="https://github.com/mingdachen/SummScreen",
 
101
  ),
102
  FSConfig(
103
  name="gov_report",
@@ -106,6 +108,7 @@ class Fs(datasets.GeneratorBasedBuilder):
106
  data_url="https://huggingface.co/datasets/tau/fs/resolve/main/data/gov_report.zip",
107
  citation=_GOV_REPORT_DESCRIPTION,
108
  url="https://gov-report-data.github.io/",
 
109
  ),
110
  ]
111
 
@@ -163,7 +166,7 @@ def _get_task_name_from_data_url(data_url):
163
 
164
 
165
  if __name__ == '__main__':
166
- dataset = load_dataset("tau/fs", "summ_screen_fd")
167
  x = 5
168
  # builder = Scrolls("scrolls", "summ_screen_fd")
169
  # builder.download_and_prepare()
 
65
  class FSConfig(datasets.BuilderConfig):
66
  """BuilderConfig for FS."""
67
 
68
+ def __init__(self, features, data_url, citation, url, max_source_length, **kwargs):
69
  """BuilderConfig for FS.
70
  Args:
71
  features: `list[string]`, list of the features that will appear in the
 
83
  self.data_url = data_url
84
  self.citation = citation
85
  self.url = url
86
+ self.max_source_length = max_source_length
87
 
88
 
89
  class Fs(datasets.GeneratorBasedBuilder):
 
99
  data_url="https://huggingface.co/datasets/tau/fs/resolve/main/data/summ_screen_fd.zip",
100
  citation=_SUMM_SCREEN_CITATION,
101
  url="https://github.com/mingdachen/SummScreen",
102
+ max_source_length=None,
103
  ),
104
  FSConfig(
105
  name="gov_report",
 
108
  data_url="https://huggingface.co/datasets/tau/fs/resolve/main/data/gov_report.zip",
109
  citation=_GOV_REPORT_DESCRIPTION,
110
  url="https://gov-report-data.github.io/",
111
+ max_source_length=None,
112
  ),
113
  ]
114
 
 
166
 
167
 
168
  if __name__ == '__main__':
169
+ dataset = load_dataset("tau/fs", "summ_screen_fd", max_source_length=512)
170
  x = 5
171
  # builder = Scrolls("scrolls", "summ_screen_fd")
172
  # builder.download_and_prepare()