tomersagi commited on
Commit
014b0b2
·
1 Parent(s): 2173d81
Files changed (1) hide show
  1. sefaria.py +3 -3
sefaria.py CHANGED
@@ -28,7 +28,7 @@ _HOMEPAGE = "https://github.com/Sefaria/Sefaria-Export"
28
  _LICENSE = "Each text is licensed separately, so there is no overall license for this repository."
29
 
30
  class Sefaria(datasets.GeneratorBasedBuilder):
31
- VERSION = datasets.Version("1.0.4")
32
 
33
  BUILDER_CONFIGS = [
34
  datasets.BuilderConfig(name="english", version=VERSION, description="This configuration contains only English texts"),
@@ -62,10 +62,10 @@ 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.download_and_extract(DATA_URLS[self.config.name])
66
  filepaths = glob.glob(os.path.join(data_dir, "*" + self.config.name + ".parquet"))
67
  else:
68
- data_dir = dl_manager.download_and_extract(DATA_URLS["all"])
69
  filepaths = glob.glob(os.path.join(data_dir, "*.parquet"))
70
 
71
 
 
28
  _LICENSE = "Each text is licensed separately, so there is no overall license for this repository."
29
 
30
  class Sefaria(datasets.GeneratorBasedBuilder):
31
+ VERSION = datasets.Version("1.0.5")
32
 
33
  BUILDER_CONFIGS = [
34
  datasets.BuilderConfig(name="english", version=VERSION, description="This configuration contains only English texts"),
 
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_and_extract(self.DATA_URLS[self.config.name])
66
  filepaths = glob.glob(os.path.join(data_dir, "*" + self.config.name + ".parquet"))
67
  else:
68
+ data_dir = dl_manager.download_and_extract(self.DATA_URLS["all"])
69
  filepaths = glob.glob(os.path.join(data_dir, "*.parquet"))
70
 
71