Update t_rex_relational_similarity.py
Browse files
t_rex_relational_similarity.py
CHANGED
@@ -7,7 +7,7 @@ import datasets
|
|
7 |
logger = datasets.logging.get_logger(__name__)
|
8 |
_DESCRIPTION = """T-Rex dataset."""
|
9 |
_NAME = "t_rex_relational_similarity"
|
10 |
-
_VERSION = "0.0.
|
11 |
_CITATION = """
|
12 |
@inproceedings{elsahar2018t,
|
13 |
title={T-rex: A large scale alignment of natural language with knowledge base triples},
|
@@ -19,12 +19,11 @@ _CITATION = """
|
|
19 |
|
20 |
_HOME_PAGE = "https://github.com/asahi417/relbert"
|
21 |
_URL = f'https://huggingface.co/datasets/relbert/{_NAME}/resolve/main/data'
|
22 |
-
|
23 |
-
_URLS = {i: {
|
24 |
str(datasets.Split.TRAIN): [f'{_URL}/{i}.train.jsonl'],
|
25 |
str(datasets.Split.VALIDATION): [f'{_URL}/{i}.validation.jsonl'],
|
26 |
str(datasets.Split.TEST): [f'{_URL}/filter_unified.test.jsonl']
|
27 |
-
}
|
28 |
|
29 |
|
30 |
class TREXRelationalSimilarityConfig(datasets.BuilderConfig):
|
|
|
7 |
logger = datasets.logging.get_logger(__name__)
|
8 |
_DESCRIPTION = """T-Rex dataset."""
|
9 |
_NAME = "t_rex_relational_similarity"
|
10 |
+
_VERSION = "0.0.4"
|
11 |
_CITATION = """
|
12 |
@inproceedings{elsahar2018t,
|
13 |
title={T-rex: A large scale alignment of natural language with knowledge base triples},
|
|
|
19 |
|
20 |
_HOME_PAGE = "https://github.com/asahi417/relbert"
|
21 |
_URL = f'https://huggingface.co/datasets/relbert/{_NAME}/resolve/main/data'
|
22 |
+
_URLS = {
|
|
|
23 |
str(datasets.Split.TRAIN): [f'{_URL}/{i}.train.jsonl'],
|
24 |
str(datasets.Split.VALIDATION): [f'{_URL}/{i}.validation.jsonl'],
|
25 |
str(datasets.Split.TEST): [f'{_URL}/filter_unified.test.jsonl']
|
26 |
+
}
|
27 |
|
28 |
|
29 |
class TREXRelationalSimilarityConfig(datasets.BuilderConfig):
|