Update fewshot_link_prediction.py
Browse files
fewshot_link_prediction.py
CHANGED
@@ -5,7 +5,7 @@ import datasets
|
|
5 |
logger = datasets.logging.get_logger(__name__)
|
6 |
_DESCRIPTION = """Few shots link prediction dataset. """
|
7 |
_NAME = "fewshot_link_prediction"
|
8 |
-
_VERSION = "0.0.
|
9 |
_CITATION = """
|
10 |
@inproceedings{xiong-etal-2018-one,
|
11 |
title = "One-Shot Relational Learning for Knowledge Graphs",
|
@@ -31,7 +31,7 @@ _URL = f'https://huggingface.co/datasets/relbert/{_NAME}/resolve/main/data'
|
|
31 |
_TYPES = ["nell", "wiki"]
|
32 |
_URLS = {i: {
|
33 |
str(datasets.Split.TRAIN): [f'{_URL}/{i}.train.jsonl'],
|
34 |
-
str(datasets.Split.VALIDATION): [f'{_URL}/{i}.
|
35 |
str(datasets.Split.TEST): [f'{_URL}/{i}.test.jsonl']
|
36 |
} for i in _TYPES}
|
37 |
|
|
|
5 |
logger = datasets.logging.get_logger(__name__)
|
6 |
_DESCRIPTION = """Few shots link prediction dataset. """
|
7 |
_NAME = "fewshot_link_prediction"
|
8 |
+
_VERSION = "0.0.1"
|
9 |
_CITATION = """
|
10 |
@inproceedings{xiong-etal-2018-one,
|
11 |
title = "One-Shot Relational Learning for Knowledge Graphs",
|
|
|
31 |
_TYPES = ["nell", "wiki"]
|
32 |
_URLS = {i: {
|
33 |
str(datasets.Split.TRAIN): [f'{_URL}/{i}.train.jsonl'],
|
34 |
+
str(datasets.Split.VALIDATION): [f'{_URL}/{i}.validation.jsonl'],
|
35 |
str(datasets.Split.TEST): [f'{_URL}/{i}.test.jsonl']
|
36 |
} for i in _TYPES}
|
37 |
|