using download instead of DnR
Browse files- sefaria.py +2 -2
sefaria.py
CHANGED
@@ -62,7 +62,7 @@ class Sefaria(datasets.GeneratorBasedBuilder):
|
|
62 |
def _split_generators(self, dl_manager):
|
63 |
# Download and extract the dataset files
|
64 |
if self.config.name in ["english", "hebrew"]:
|
65 |
-
data_dir = dl_manager.
|
66 |
print("datadir:")
|
67 |
print(data_dir)
|
68 |
print("found the following files in ")
|
@@ -71,7 +71,7 @@ class Sefaria(datasets.GeneratorBasedBuilder):
|
|
71 |
|
72 |
filepaths = glob.glob(os.path.join(data_dir, "*" + self.config.name + ".parquet"))
|
73 |
else:
|
74 |
-
data_dir = dl_manager.
|
75 |
print("datadir:")
|
76 |
print(data_dir)
|
77 |
print("found the following files")
|
|
|
62 |
def _split_generators(self, dl_manager):
|
63 |
# Download and extract the dataset files
|
64 |
if self.config.name in ["english", "hebrew"]:
|
65 |
+
data_dir = dl_manager.download(self.DATA_URLS[self.config.name])
|
66 |
print("datadir:")
|
67 |
print(data_dir)
|
68 |
print("found the following files in ")
|
|
|
71 |
|
72 |
filepaths = glob.glob(os.path.join(data_dir, "*" + self.config.name + ".parquet"))
|
73 |
else:
|
74 |
+
data_dir = dl_manager.download(self.DATA_URLS["all"])
|
75 |
print("datadir:")
|
76 |
print(data_dir)
|
77 |
print("found the following files")
|