Datasets:

lawhy commited on
Commit
d85f643
1 Parent(s): 7958ec2

Update ontolama.py

Browse files
Files changed (1) hide show
  1. ontolama.py +2 -2
ontolama.py CHANGED
@@ -39,7 +39,7 @@ _DESCRIPTION = """\
39
  OntoLAMA: LAnguage Model Analysis datasets for Ontology Subsumption Inference.
40
  """
41
 
42
- _URL = "https://huggingface.co/datasets/krr-oxford/OntoLAMA/resolve/main/data/"
43
 
44
  # TODO: Add a link to an official homepage for the dataset here
45
  _HOMEPAGE = "https://krr-oxford.github.io/DeepOnto/"
@@ -135,7 +135,7 @@ class OntoLAMA(datasets.GeneratorBasedBuilder):
135
  # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
136
  # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
137
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
138
- urls = os.path.join(_URL, self.config.name)
139
  data_dir = dl_manager.download_and_extract(urls)
140
  return [
141
  datasets.SplitGenerator(
 
39
  OntoLAMA: LAnguage Model Analysis datasets for Ontology Subsumption Inference.
40
  """
41
 
42
+ _URL = lambda name: f"https://zenodo.org/record/6480541/files/{name}.zip?download=1"
43
 
44
  # TODO: Add a link to an official homepage for the dataset here
45
  _HOMEPAGE = "https://krr-oxford.github.io/DeepOnto/"
 
135
  # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
136
  # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
137
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
138
+ urls = _URL(self.config.name)
139
  data_dir = dl_manager.download_and_extract(urls)
140
  return [
141
  datasets.SplitGenerator(