Lawhy commited on
Commit
7d97f9b
1 Parent(s): a679a0e

update foodon complex SI

Browse files
Files changed (2) hide show
  1. OntoLAMA.py +4 -1
  2. README.md +30 -2
OntoLAMA.py CHANGED
@@ -39,7 +39,7 @@ _DESCRIPTION = """\
39
  OntoLAMA: LAnguage Model Analysis datasets for Ontology Subsumption Inference.
40
  """
41
 
42
- _URL = lambda name: f"https://zenodo.org/record/7696383/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/"
@@ -80,6 +80,9 @@ class OntoLAMA(datasets.GeneratorBasedBuilder):
80
  datasets.BuilderConfig(
81
  name="foodon-atomic-SI", version=VERSION, description="Atomic SI dataset created from the Food Ontology."
82
  ),
 
 
 
83
  datasets.BuilderConfig(
84
  name="go-atomic-SI", version=VERSION, description="Atomic SI dataset created from the Gene Ontology."
85
  ),
 
39
  OntoLAMA: LAnguage Model Analysis datasets for Ontology Subsumption Inference.
40
  """
41
 
42
+ _URL = lambda name: f"https://zenodo.org/record/7699244/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/"
 
80
  datasets.BuilderConfig(
81
  name="foodon-atomic-SI", version=VERSION, description="Atomic SI dataset created from the Food Ontology."
82
  ),
83
+ datasets.BuilderConfig(
84
+ name="foodon-complex-SI", version=VERSION, description="Complex SI dataset created from the Gene Ontology."
85
+ ),
86
  datasets.BuilderConfig(
87
  name="go-atomic-SI", version=VERSION, description="Atomic SI dataset created from the Gene Ontology."
88
  ),
README.md CHANGED
@@ -140,6 +140,34 @@ dataset_info:
140
  num_examples: 12906
141
  download_size: 19264134
142
  dataset_size: 50602187
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  ---
144
 
145
  # OntoLAMA: LAnguage Model Analysis for Ontology Subsumption Inference
@@ -214,8 +242,8 @@ An example in the **biMNLI** dataset created from the MNLI dataset is as follows
214
  |--------|-----------|--------------|--------------------------------------------------------------------------|
215
  | schema | 894 | - | Atomic SI: 808/404/2,830 |
216
  | doid | 11,157 | - | Atomic SI: 90,500/11,312/11,314 |
217
- | foodon | 30,995 | 2,383 | Atomic SI: 768,486/96,060/96,062 <br /> Complex SI: 1,256/628/4,042 |
218
- | go | 43,303 | 11,456 | Atomic SI: 772,870/96,608/96,610 <br /> Complex SI: 38,708/4,838/4,840 |
219
  | MNLI | - | - | biMNLI: 235,622/26,180/12,906 |
220
 
221
 
 
140
  num_examples: 12906
141
  download_size: 19264134
142
  dataset_size: 50602187
143
+ - config_name: foodon-complex-SI
144
+ features:
145
+ - name: v_sub_concept
146
+ dtype: string
147
+ - name: v_super_concept
148
+ dtype: string
149
+ - name: label
150
+ dtype:
151
+ class_label:
152
+ names:
153
+ '0': negative_subsumption
154
+ '1': positive_subsumption
155
+ - name: axiom
156
+ dtype: string
157
+ - name: anchor_axiom
158
+ dtype: string
159
+ splits:
160
+ - name: train
161
+ num_bytes: 2553731
162
+ num_examples: 3754
163
+ - name: validation
164
+ num_bytes: 1271721
165
+ num_examples: 1850
166
+ - name: test
167
+ num_bytes: 8926305
168
+ num_examples: 13080
169
+ download_size: 1064602
170
+ dataset_size: 12751757
171
  ---
172
 
173
  # OntoLAMA: LAnguage Model Analysis for Ontology Subsumption Inference
 
242
  |--------|-----------|--------------|--------------------------------------------------------------------------|
243
  | schema | 894 | - | Atomic SI: 808/404/2,830 |
244
  | doid | 11,157 | - | Atomic SI: 90,500/11,312/11,314 |
245
+ | foodon | 30,995 | 2,383 | Atomic SI: 768,486/96,060/96,062 <br /> Complex SI: 3,754/1,850/13,080 |
246
+ | go | 43,303 | 11,456 | Atomic SI: 772,870/96,608/96,610 <br /> Complex SI: ... |
247
  | MNLI | - | - | biMNLI: 235,622/26,180/12,906 |
248
 
249