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",
|
|
@@ -28,7 +28,8 @@ _CITATION = """
|
|
| 28 |
|
| 29 |
_HOME_PAGE = "https://github.com/asahi417/relbert"
|
| 30 |
_URL = f'https://huggingface.co/datasets/relbert/{_NAME}/resolve/main/data'
|
| 31 |
-
_TYPES = ["nell_filter", "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'],
|
|
|
|
| 5 |
logger = datasets.logging.get_logger(__name__)
|
| 6 |
_DESCRIPTION = """Few shots link prediction dataset. """
|
| 7 |
_NAME = "fewshot_link_prediction"
|
| 8 |
+
_VERSION = "0.0.5"
|
| 9 |
_CITATION = """
|
| 10 |
@inproceedings{xiong-etal-2018-one,
|
| 11 |
title = "One-Shot Relational Learning for Knowledge Graphs",
|
|
|
|
| 28 |
|
| 29 |
_HOME_PAGE = "https://github.com/asahi417/relbert"
|
| 30 |
_URL = f'https://huggingface.co/datasets/relbert/{_NAME}/resolve/main/data'
|
| 31 |
+
# _TYPES = ["nell_filter", "nell", "wiki"]
|
| 32 |
+
_TYPES = ["nell_filter", "nell"]
|
| 33 |
_URLS = {i: {
|
| 34 |
str(datasets.Split.TRAIN): [f'{_URL}/{i}.train.jsonl'],
|
| 35 |
str(datasets.Split.VALIDATION): [f'{_URL}/{i}.validation.jsonl'],
|