boragokbakan commited on
Commit
d34b520
·
1 Parent(s): da17f0a

citation added for GENRE

Browse files
Files changed (1) hide show
  1. entity_disambiguation.py +15 -17
entity_disambiguation.py CHANGED
@@ -5,22 +5,19 @@ import datasets
5
 
6
  _VERSION = "1.0.0"
7
 
8
-
9
- # _URLS = {'ACE2004': {'test': 'http://dl.fbaipublicfiles.com/GENRE/ace2004-test-kilt.jsonl'},
10
- # 'AIDA': {
11
- # 'train': 'http://dl.fbaipublicfiles.com/GENRE/aida-train-kilt.jsonl',
12
- # 'dev': 'http://dl.fbaipublicfiles.com/GENRE/aida-dev-kilt.jsonl',
13
- # 'test': 'http://dl.fbaipublicfiles.com/GENRE/aida-test-kilt.jsonl'
14
- # },
15
- # 'BLINK': {
16
- # 'train': 'http://dl.fbaipublicfiles.com/GENRE/blink-train-kilt.jsonl',
17
- # 'dev': 'http://dl.fbaipublicfiles.com/GENRE/blink-dev-kilt.jsonl',
18
- # },
19
- # 'AQUAINT': {'test': 'http://dl.fbaipublicfiles.com/GENRE/aquaint-test-kilt.jsonl'},
20
- # 'CWEB': {'test': 'http://dl.fbaipublicfiles.com/GENRE/clueweb-test-kilt.jsonl'},
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: