Datasets:
boragokbakan
commited on
Commit
·
d34b520
1
Parent(s):
da17f0a
citation added for GENRE
Browse files- entity_disambiguation.py +15 -17
entity_disambiguation.py
CHANGED
@@ -5,22 +5,19 @@ import datasets
|
|
5 |
|
6 |
_VERSION = "1.0.0"
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
# 'MSNBC': {'test': 'http://dl.fbaipublicfiles.com/GENRE/msnbc-test-kilt.jsonl'},
|
22 |
-
# 'WIKI': {'test': 'http://dl.fbaipublicfiles.com/GENRE/wikipedia-test-kilt.jsonl'}
|
23 |
-
# }
|
24 |
|
25 |
|
26 |
class EntityDisambiguationConfig(datasets.BuilderConfig):
|
@@ -87,7 +84,8 @@ class EntityDisambiguation(datasets.GeneratorBasedBuilder):
|
|
87 |
]
|
88 |
|
89 |
def _info(self) -> datasets.DatasetInfo:
|
90 |
-
return datasets.DatasetInfo(description="Entity Disambiguation dataset", features=self.config.features
|
|
|
91 |
|
92 |
def _generate_examples(self, filepath: str, split: str):
|
93 |
with open(filepath, encoding="utf-8") as f:
|
|
|
5 |
|
6 |
_VERSION = "1.0.0"
|
7 |
|
8 |
+
_CITATION = """\
|
9 |
+
@inproceedings{decao2021autoregressive,
|
10 |
+
author = {Nicola {De Cao} and
|
11 |
+
Gautier Izacard and
|
12 |
+
Sebastian Riedel and
|
13 |
+
Fabio Petroni},
|
14 |
+
title = {Autoregressive Entity Retrieval},
|
15 |
+
booktitle = {9th International Conference on Learning Representations, {ICLR} 2021,
|
16 |
+
Virtual Event, Austria, May 3-7, 2021},
|
17 |
+
publisher = {OpenReview.net},
|
18 |
+
year = {2021},
|
19 |
+
url = {https://openreview.net/forum?id=5k8F6UU39V},
|
20 |
+
}"""
|
|
|
|
|
|
|
21 |
|
22 |
|
23 |
class EntityDisambiguationConfig(datasets.BuilderConfig):
|
|
|
84 |
]
|
85 |
|
86 |
def _info(self) -> datasets.DatasetInfo:
|
87 |
+
return datasets.DatasetInfo(description="Entity Disambiguation dataset", features=self.config.features,
|
88 |
+
citation=_CITATION)
|
89 |
|
90 |
def _generate_examples(self, filepath: str, split: str):
|
91 |
with open(filepath, encoding="utf-8") as f:
|