fixing all_years option
Browse files- AmericanStories.py +2 -1
AmericanStories.py
CHANGED
@@ -22,7 +22,8 @@ def make_year_file_splits():
|
|
22 |
base_url = "https://huggingface.co/datasets/dell-research-harvard/AmericanStories/resolve/main/"
|
23 |
|
24 |
# Make a list of years from 1774 to 1960
|
25 |
-
|
|
|
26 |
data_files = [f"faro_{year}.tar.gz" for year in year_list]
|
27 |
url_list = [base_url + file for file in data_files]
|
28 |
|
|
|
22 |
base_url = "https://huggingface.co/datasets/dell-research-harvard/AmericanStories/resolve/main/"
|
23 |
|
24 |
# Make a list of years from 1774 to 1960
|
25 |
+
# TODO: Can we fix the year list to pull directly from the repo instead of needing the hard-coded list?
|
26 |
+
year_list = SUPPORTED_YEARS
|
27 |
data_files = [f"faro_{year}.tar.gz" for year in year_list]
|
28 |
url_list = [base_url + file for file in data_files]
|
29 |
|