tombryan commited on
Commit
12e1be7
1 Parent(s): e85e439

fixing all_years option

Browse files
Files changed (1) hide show
  1. 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
- year_list = [str(year) for year in range(1774, 1960)]
 
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