Rename t_rex_relation_similarity.py to t_rex_relational_similarity.py
Browse files
t_rex_relation_similarity.py → t_rex_relational_similarity.py
RENAMED
@@ -6,7 +6,7 @@ import datasets
|
|
6 |
|
7 |
logger = datasets.logging.get_logger(__name__)
|
8 |
_DESCRIPTION = """T-Rex dataset."""
|
9 |
-
_NAME = "
|
10 |
_VERSION = "0.0.1"
|
11 |
_CITATION = """
|
12 |
@inproceedings{elsahar2018t,
|
@@ -30,7 +30,7 @@ _URLS = {i: {
|
|
30 |
} for i in _TYPES}
|
31 |
|
32 |
|
33 |
-
class
|
34 |
"""BuilderConfig"""
|
35 |
|
36 |
def __init__(self, **kwargs):
|
@@ -38,14 +38,14 @@ class TREXRelationSimilarityConfig(datasets.BuilderConfig):
|
|
38 |
Args:
|
39 |
**kwargs: keyword arguments forwarded to super.
|
40 |
"""
|
41 |
-
super(
|
42 |
|
43 |
|
44 |
-
class
|
45 |
"""Dataset."""
|
46 |
|
47 |
BUILDER_CONFIGS = [
|
48 |
-
|
49 |
for i in sorted(_TYPES)
|
50 |
]
|
51 |
|
|
|
6 |
|
7 |
logger = datasets.logging.get_logger(__name__)
|
8 |
_DESCRIPTION = """T-Rex dataset."""
|
9 |
+
_NAME = "t_rex_relational_similarity"
|
10 |
_VERSION = "0.0.1"
|
11 |
_CITATION = """
|
12 |
@inproceedings{elsahar2018t,
|
|
|
30 |
} for i in _TYPES}
|
31 |
|
32 |
|
33 |
+
class TREXRelationalSimilarityConfig(datasets.BuilderConfig):
|
34 |
"""BuilderConfig"""
|
35 |
|
36 |
def __init__(self, **kwargs):
|
|
|
38 |
Args:
|
39 |
**kwargs: keyword arguments forwarded to super.
|
40 |
"""
|
41 |
+
super(TREXRelationalSimilarityConfig, self).__init__(**kwargs)
|
42 |
|
43 |
|
44 |
+
class TREXRelationalSimilarity(datasets.GeneratorBasedBuilder):
|
45 |
"""Dataset."""
|
46 |
|
47 |
BUILDER_CONFIGS = [
|
48 |
+
TREXRelationalSimilarityConfig(name=i, version=datasets.Version(_VERSION), description=_DESCRIPTION)
|
49 |
for i in sorted(_TYPES)
|
50 |
]
|
51 |
|