Datasets:

lawhy commited on
Commit
baa15a1
1 Parent(s): 21189cd

Update OntoLAMA.py

Browse files
Files changed (1) hide show
  1. OntoLAMA.py +3 -3
OntoLAMA.py CHANGED
@@ -143,7 +143,7 @@ class OntoLAMA(datasets.GeneratorBasedBuilder):
143
  name=datasets.Split.TRAIN,
144
  # These kwargs will be passed to _generate_examples
145
  gen_kwargs={
146
- "filepath": os.path.join(data_dir, "train.jsonl"),
147
  "split": "train",
148
  },
149
  ),
@@ -151,7 +151,7 @@ class OntoLAMA(datasets.GeneratorBasedBuilder):
151
  name=datasets.Split.VALIDATION,
152
  # These kwargs will be passed to _generate_examples
153
  gen_kwargs={
154
- "filepath": os.path.join(data_dir, "dev.jsonl"),
155
  "split": "dev",
156
  },
157
  ),
@@ -159,7 +159,7 @@ class OntoLAMA(datasets.GeneratorBasedBuilder):
159
  name=datasets.Split.TEST,
160
  # These kwargs will be passed to _generate_examples
161
  gen_kwargs={
162
- "filepath": os.path.join(data_dir, "test.jsonl"),
163
  "split": "test"
164
  },
165
  ),
 
143
  name=datasets.Split.TRAIN,
144
  # These kwargs will be passed to _generate_examples
145
  gen_kwargs={
146
+ "filepath": os.path.join(data_dir, self.config.name, "train.jsonl"),
147
  "split": "train",
148
  },
149
  ),
 
151
  name=datasets.Split.VALIDATION,
152
  # These kwargs will be passed to _generate_examples
153
  gen_kwargs={
154
+ "filepath": os.path.join(data_dir, self.config.name, "dev.jsonl"),
155
  "split": "dev",
156
  },
157
  ),
 
159
  name=datasets.Split.TEST,
160
  # These kwargs will be passed to _generate_examples
161
  gen_kwargs={
162
+ "filepath": os.path.join(data_dir, self.config.name, "test.jsonl"),
163
  "split": "test"
164
  },
165
  ),