File size: 655 Bytes
ddac575 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import os
base_url = "https://huggingface.co/datasets/mehdie/sefaria/raw/main/data/"
local_data_dir = "data"
english_files = [f for f in os.listdir(local_data_dir) if f.endswith("_english.parquet")]
hebrew_files = [f for f in os.listdir(local_data_dir) if f.endswith("_hebrew.parquet")]
english_urls = [os.path.join(base_url, f) for f in english_files]
hebrew_urls = [os.path.join(base_url, f) for f in hebrew_files]
all_urls = english_urls + hebrew_urls
data_urls = {
"english": english_urls,
"hebrew": hebrew_urls,
"all": all_urls,
}
print("English URLs:", english_urls)
print("Hebrew URLs:", hebrew_urls)
print("All URLs:", all_urls)
|