Datasets:
Modalities:
Text
Sub-tasks:
masked-language-modeling
Languages:
English
Size:
1M - 10M
ArXiv:
License:
Ekin Akyürek
commited on
Commit
·
6c3f9fe
1
Parent(s):
25109f8
update citations
Browse files- dataset_infos.json +7 -7
- ftrace.py +31 -12
dataset_infos.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
{
|
| 2 |
"abstracts": {
|
| 3 |
"description": "Abstracts from TREx dataset",
|
| 4 |
-
"citation": "",
|
| 5 |
-
"homepage": "",
|
| 6 |
-
"license": "",
|
| 7 |
"supervised_keys": null,
|
| 8 |
"builder_name": "ftrace",
|
| 9 |
"config_name": "abstracts",
|
|
@@ -25,10 +25,10 @@
|
|
| 25 |
}
|
| 26 |
},
|
| 27 |
"queries": {
|
| 28 |
-
"description": "Queries from
|
| 29 |
-
"citation": "",
|
| 30 |
-
"homepage": "",
|
| 31 |
-
"license": "",
|
| 32 |
"supervised_keys": null,
|
| 33 |
"builder_name": "ftrace",
|
| 34 |
"config_name": "queries",
|
|
|
|
| 1 |
{
|
| 2 |
"abstracts": {
|
| 3 |
"description": "Abstracts from TREx dataset",
|
| 4 |
+
"citation": "@inproceedings{elsahar2018t, title={T-rex: A large scale alignment of natural language with knowledge base triples}, author={Elsahar, Hady and Vougiouklis, Pavlos and Remaci, Arslen and Gravier, Christophe and Hare, Jonathon and Laforest, Frederique and Simperl, Elena},booktitle={Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018)}, year={2018}}",
|
| 5 |
+
"homepage": "https://hadyelsahar.github.io/t-rex/",
|
| 6 |
+
"license": "Creative Commons Attribution-ShareAlike 4.0 International License. see https://creativecommons.org/licenses/by-sa/4.0/",
|
| 7 |
"supervised_keys": null,
|
| 8 |
"builder_name": "ftrace",
|
| 9 |
"config_name": "abstracts",
|
|
|
|
| 25 |
}
|
| 26 |
},
|
| 27 |
"queries": {
|
| 28 |
+
"description": "Queries from LAMA dataset",
|
| 29 |
+
"citation": "@inproceedings{petroni2019language,title={Language Models as Knowledge Bases?},author={F. Petroni, T. Rockt{\"{a}}schel, A. H. Miller, P. Lewis, A. Bakhtin, Y. Wu and S. Riedel},booktitle={In: Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2019},year={2019}}",
|
| 30 |
+
"homepage": "https://github.com/facebookresearch/LAMA",
|
| 31 |
+
"license": "The Creative Commons Attribution-Noncommercial 4.0 International License. see https://github.com/facebookresearch/LAMA/blob/master/LICENSE",
|
| 32 |
"supervised_keys": null,
|
| 33 |
"builder_name": "ftrace",
|
| 34 |
"config_name": "queries",
|
ftrace.py
CHANGED
|
@@ -19,31 +19,48 @@
|
|
| 19 |
|
| 20 |
import json
|
| 21 |
import os
|
| 22 |
-
|
| 23 |
-
import datasets
|
| 24 |
|
|
|
|
| 25 |
|
| 26 |
_FTRACE_CITATION = """\
|
| 27 |
"""
|
| 28 |
|
| 29 |
_FTRACE_DESCRIPTION = """\
|
| 30 |
-
Factual Tracing Dataset
|
| 31 |
"""
|
| 32 |
|
| 33 |
_FTRACE_ABSTRACTS_DESCRIPTION = """\
|
| 34 |
Abstracts based on TREx dataset.
|
| 35 |
"""
|
| 36 |
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
_FTRACE_ABSTRACTS_CITATION = """\
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
_FTRACE_QUERIES_DESCRIPTION = """\
|
| 42 |
Queries based on LAMA dataset.
|
| 43 |
"""
|
| 44 |
|
| 45 |
_FTRACE_QUERIES_CITATION = """\
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
|
| 49 |
class FTRACEConfig(datasets.BuilderConfig):
|
|
@@ -54,6 +71,7 @@ class FTRACEConfig(datasets.BuilderConfig):
|
|
| 54 |
features,
|
| 55 |
data_url,
|
| 56 |
citation,
|
|
|
|
| 57 |
url,
|
| 58 |
**kwargs,
|
| 59 |
):
|
|
@@ -74,6 +92,7 @@ class FTRACEConfig(datasets.BuilderConfig):
|
|
| 74 |
self.features = features
|
| 75 |
self.data_url = data_url
|
| 76 |
self.citation = citation
|
|
|
|
| 77 |
self.url = url
|
| 78 |
|
| 79 |
|
|
@@ -94,11 +113,10 @@ class FTRACE(datasets.GeneratorBasedBuilder):
|
|
| 94 |
"example_uris",
|
| 95 |
"page_uri",
|
| 96 |
],
|
| 97 |
-
data_url=
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
url="",
|
| 102 |
),
|
| 103 |
FTRACEConfig(
|
| 104 |
name="queries",
|
|
@@ -114,8 +132,9 @@ class FTRACE(datasets.GeneratorBasedBuilder):
|
|
| 114 |
"obj_surface",
|
| 115 |
],
|
| 116 |
data_url="https://people.csail.mit.edu/akyurek/ftrace/queries.zip",
|
| 117 |
-
citation=_FTRACE_QUERIES_CITATION,
|
| 118 |
-
|
|
|
|
| 119 |
),
|
| 120 |
]
|
| 121 |
|
|
|
|
| 19 |
|
| 20 |
import json
|
| 21 |
import os
|
| 22 |
+
import textwrap
|
|
|
|
| 23 |
|
| 24 |
+
import datasets
|
| 25 |
|
| 26 |
_FTRACE_CITATION = """\
|
| 27 |
"""
|
| 28 |
|
| 29 |
_FTRACE_DESCRIPTION = """\
|
| 30 |
+
Factual Tracing Dataset that contains queries and abstracts, and their corresponding ground truth.
|
| 31 |
"""
|
| 32 |
|
| 33 |
_FTRACE_ABSTRACTS_DESCRIPTION = """\
|
| 34 |
Abstracts based on TREx dataset.
|
| 35 |
"""
|
| 36 |
|
| 37 |
+
_FTRACE_ABSTRACTS_LICENSE = """\
|
| 38 |
+
Creative Commons Attribution-ShareAlike 4.0 International License.
|
| 39 |
+
see https://creativecommons.org/licenses/by-sa/4.0/"""
|
| 40 |
|
| 41 |
_FTRACE_ABSTRACTS_CITATION = """\
|
| 42 |
+
@inproceedings{elsahar2018t,
|
| 43 |
+
title={T-rex: A large scale alignment of natural language with knowledge base triples},
|
| 44 |
+
author={Elsahar, Hady and Vougiouklis, Pavlos and Remaci, Arslen and Gravier, Christophe and Hare, Jonathon and Laforest, Frederique and Simperl, Elena},
|
| 45 |
+
booktitle={Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018)},
|
| 46 |
+
year={2018}
|
| 47 |
+
}"""
|
| 48 |
|
| 49 |
_FTRACE_QUERIES_DESCRIPTION = """\
|
| 50 |
Queries based on LAMA dataset.
|
| 51 |
"""
|
| 52 |
|
| 53 |
_FTRACE_QUERIES_CITATION = """\
|
| 54 |
+
@inproceedings{petroni2019language,
|
| 55 |
+
title={Language Models as Knowledge Bases?},
|
| 56 |
+
author={F. Petroni, T. Rockt{\"{a}}schel, A. H. Miller, P. Lewis, A. Bakhtin, Y. Wu and S. Riedel},
|
| 57 |
+
booktitle={In: Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2019},
|
| 58 |
+
year={2019}
|
| 59 |
+
}"""
|
| 60 |
+
|
| 61 |
+
FTRACE_QUERIES_LICENSE = """\
|
| 62 |
+
The Creative Commons Attribution-Noncommercial 4.0 International License.
|
| 63 |
+
see https://github.com/facebookresearch/LAMA/blob/master/LICENSE"""
|
| 64 |
|
| 65 |
|
| 66 |
class FTRACEConfig(datasets.BuilderConfig):
|
|
|
|
| 71 |
features,
|
| 72 |
data_url,
|
| 73 |
citation,
|
| 74 |
+
license,
|
| 75 |
url,
|
| 76 |
**kwargs,
|
| 77 |
):
|
|
|
|
| 92 |
self.features = features
|
| 93 |
self.data_url = data_url
|
| 94 |
self.citation = citation
|
| 95 |
+
self.license = license
|
| 96 |
self.url = url
|
| 97 |
|
| 98 |
|
|
|
|
| 113 |
"example_uris",
|
| 114 |
"page_uri",
|
| 115 |
],
|
| 116 |
+
data_url="https://people.csail.mit.edu/akyurek/ftrace/abstracts.zip",
|
| 117 |
+
citation=textwrap.dedent(_FTRACE_ABSTRACTS_CITATION),
|
| 118 |
+
license=_FTRACE_ABSTRACTS_LICENSE,
|
| 119 |
+
url="https://hadyelsahar.github.io/t-rex/",
|
|
|
|
| 120 |
),
|
| 121 |
FTRACEConfig(
|
| 122 |
name="queries",
|
|
|
|
| 132 |
"obj_surface",
|
| 133 |
],
|
| 134 |
data_url="https://people.csail.mit.edu/akyurek/ftrace/queries.zip",
|
| 135 |
+
citation=textwrap.dedent(_FTRACE_QUERIES_CITATION),
|
| 136 |
+
license=FTRACE_QUERIES_LICENSE,
|
| 137 |
+
url="https://github.com/facebookresearch/LAMA",
|
| 138 |
),
|
| 139 |
]
|
| 140 |
|