Datasets:

Modalities:
Text
Languages:
English
Libraries:
Datasets
License:
asahi417 commited on
Commit
0d20b54
·
1 Parent(s): 4a5e6fb
Files changed (1) hide show
  1. link_prediction_nell_one.py +2 -2
link_prediction_nell_one.py CHANGED
@@ -31,7 +31,7 @@ _URL = f'https://huggingface.co/datasets/relbert/{_NAME}/resolve/main/data'
31
  _URLS = {
32
  str(datasets.Split.TRAIN): [f'{_URL}/train.jsonl'],
33
  str(datasets.Split.VALIDATION): [f'{_URL}/valid.jsonl'],
34
- str(datasets.Split.TEST): [f'{_URL}/test.jsonl'],
35
  }
36
 
37
 
@@ -56,7 +56,7 @@ class LinkPredictionNellOne(datasets.GeneratorBasedBuilder):
56
  def _split_generators(self, dl_manager):
57
  downloaded_file = dl_manager.download_and_extract(_URLS)
58
  return [datasets.SplitGenerator(name=i, gen_kwargs={"filepaths": downloaded_file[str(i)]})
59
- for i in [datasets.Split.TRAIN, datasets.Split.VALIDATION]]
60
 
61
  def _generate_examples(self, filepaths):
62
  _key = 0
 
31
  _URLS = {
32
  str(datasets.Split.TRAIN): [f'{_URL}/train.jsonl'],
33
  str(datasets.Split.VALIDATION): [f'{_URL}/valid.jsonl'],
34
+ str(datasets.Split.TEST): [f'{_URL}/test.jsonl']
35
  }
36
 
37
 
 
56
  def _split_generators(self, dl_manager):
57
  downloaded_file = dl_manager.download_and_extract(_URLS)
58
  return [datasets.SplitGenerator(name=i, gen_kwargs={"filepaths": downloaded_file[str(i)]})
59
+ for i in [datasets.Split.TRAIN, datasets.Split.VALIDATION, datasets.Split.TEST]]
60
 
61
  def _generate_examples(self, filepaths):
62
  _key = 0