JanKalo commited on
Commit
7b3cb4c
·
1 Parent(s): a0de3e4

add new dataset

Browse files
Files changed (3) hide show
  1. README.md +188 -0
  2. data/lama-trex.jsonl +0 -0
  3. dataset_infos.json +1 -0
README.md ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: "LAMA: LAnguage Model Analysis - BigScience version"
3
+ annotations_creators:
4
+ - machine-generated
5
+ language_creators:
6
+ - machine-generated
7
+ languages:
8
+ - en
9
+ licenses:
10
+ - cc-by-4.0
11
+ multilinguality:
12
+ - monolingual
13
+ size_categories:
14
+ trex:
15
+ - 1M<n<10M
16
+ source_datasets:
17
+ task_categories:
18
+ - text-retrieval
19
+ - text-classification
20
+ task_ids:
21
+ - fact-checking-retrieval
22
+ - text-classification-other-probing
23
+ - text-scoring
24
+ paperswithcode_id: lama
25
+ ---
26
+
27
+ # Dataset Card for LAMA: LAnguage Model Analysis - a dataset for probing and analyzing the factual and commonsense knowledge contained in pretrained language models.
28
+
29
+ ## Table of Contents
30
+ - [Dataset Description](#dataset-description)
31
+ - [Dataset Summary](#dataset-summary)
32
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
33
+ - [Languages](#languages)
34
+ - [Dataset Structure](#dataset-structure)
35
+ - [Data Instances](#data-instances)
36
+ - [Data Fields](#data-fields)
37
+ - [Data Splits](#data-splits)
38
+ - [Dataset Creation](#dataset-creation)
39
+ - [Curation Rationale](#curation-rationale)
40
+ - [Source Data](#source-data)
41
+ - [Annotations](#annotations)
42
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
43
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
44
+ - [Social Impact of Dataset](#social-impact-of-dataset)
45
+ - [Discussion of Biases](#discussion-of-biases)
46
+ - [Other Known Limitations](#other-known-limitations)
47
+ - [Additional Information](#additional-information)
48
+ - [Dataset Curators](#dataset-curators)
49
+ - [Licensing Information](#licensing-information)
50
+ - [Citation Information](#citation-information)
51
+
52
+ ## Dataset Description
53
+
54
+ - **Homepage:**
55
+ https://github.com/facebookresearch/LAMA
56
+ - **Repository:**
57
+ https://github.com/facebookresearch/LAMA
58
+ - **Paper:**
59
+ @inproceedings{petroni2019language,
60
+ title={Language Models as Knowledge Bases?},
61
+ author={F. Petroni, T. Rockt{\"{a}}schel, A. H. Miller, P. Lewis, A. Bakhtin, Y. Wu and S. Riedel},
62
+ booktitle={In: Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2019},
63
+ year={2019}
64
+ }
65
+
66
+ @inproceedings{petroni2020how,
67
+ title={How Context Affects Language Models' Factual Predictions},
68
+ author={Fabio Petroni and Patrick Lewis and Aleksandra Piktus and Tim Rockt{\"a}schel and Yuxiang Wu and Alexander H. Miller and Sebastian Riedel},
69
+ booktitle={Automated Knowledge Base Construction},
70
+ year={2020},
71
+ url={https://openreview.net/forum?id=025X0zPfn}
72
+ }
73
+
74
+ ### Dataset Summary
75
+
76
+ This dataset provides the data for LAMA. This dataset only contains TRex
77
+ (subset of wikidata triples).
78
+
79
+ The dataset includes some cleanup, and addition of a masked sentence
80
+ and associated answers for the [MASK] token. The accuracy in
81
+ predicting the [MASK] token shows how well the language model knows
82
+ facts and common sense information. The [MASK] tokens are only for the
83
+ "object" slots.
84
+
85
+ This version also contains questions instead of templates that can be used to probe also non-masking models.
86
+
87
+
88
+ See the paper for more details. For more information, also see:
89
+ https://github.com/facebookresearch/LAMA
90
+
91
+ ### Languages
92
+ en
93
+
94
+ ## Dataset Structure
95
+
96
+ ### Data Instances
97
+
98
+
99
+ The trex config has the following fields:
100
+
101
+
102
+ ``
103
+ {'uuid': 'a37257ae-4cbb-4309-a78a-623036c96797', 'sub_label': 'Pianos Become the Teeth', 'predicate_id': 'P740', 'obj_label': 'Baltimore', 'template': '[X] was founded in [Y] .', 'type': 'N-1', 'question': 'Where was [X] founded?'}
104
+ 34039
105
+ ``
106
+
107
+
108
+
109
+
110
+ ### Data Splits
111
+
112
+ There are no data splits.
113
+
114
+ ## Dataset Creation
115
+
116
+ ### Curation Rationale
117
+
118
+ This dataset was gathered and created to probe what language models understand.
119
+
120
+ ### Source Data
121
+
122
+ #### Initial Data Collection and Normalization
123
+
124
+ See the reaserch paper and website for more detail. The dataset was
125
+ created gathered from various other datasets with cleanups for probing.
126
+
127
+
128
+ #### Who are the source language producers?
129
+
130
+ The LAMA authors and the original authors of the various configs.
131
+
132
+ ### Annotations
133
+
134
+ #### Annotation process
135
+
136
+ Human annotations under the original datasets (conceptnet), and various machine annotations.
137
+
138
+ #### Who are the annotators?
139
+
140
+ Human annotations and machine annotations.
141
+
142
+ ### Personal and Sensitive Information
143
+
144
+ Unkown, but likely names of famous people.
145
+
146
+ ## Considerations for Using the Data
147
+
148
+ ### Social Impact of Dataset
149
+
150
+ The goal for the work is to probe the understanding of language models.
151
+
152
+ ### Discussion of Biases
153
+
154
+ Since the data is from human annotators, there is likely to be baises.
155
+
156
+ [More Information Needed]
157
+
158
+ ### Other Known Limitations
159
+
160
+ The original documentation for the datafields are limited.
161
+
162
+ ## Additional Information
163
+
164
+ ### Dataset Curators
165
+
166
+ The authors of LAMA at Facebook and the authors of the original datasets.
167
+
168
+ ### Licensing Information
169
+
170
+ The Creative Commons Attribution-Noncommercial 4.0 International License. see https://github.com/facebookresearch/LAMA/blob/master/LICENSE
171
+
172
+ ### Citation Information
173
+
174
+ @inproceedings{petroni2019language,
175
+ title={Language Models as Knowledge Bases?},
176
+ author={F. Petroni, T. Rockt{\"{a}}schel, A. H. Miller, P. Lewis, A. Bakhtin, Y. Wu and S. Riedel},
177
+ booktitle={In: Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2019},
178
+ year={2019}
179
+ }
180
+
181
+ @inproceedings{petroni2020how,
182
+ title={How Context Affects Language Models' Factual Predictions},
183
+ author={Fabio Petroni and Patrick Lewis and Aleksandra Piktus and Tim Rockt{\"a}schel and Yuxiang Wu and Alexander H. Miller and Sebastian Riedel},
184
+ booktitle={Automated Knowledge Base Construction},
185
+ year={2020},
186
+ url={https://openreview.net/forum?id=025X0zPfn}
187
+ }
188
+
data/lama-trex.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bigscience-lama": {"description": "", "citation": "", "homepage": "", "license": "", "features": {"uuid": {"dtype": "string", "id": null, "_type": "Value"}, "sub_label": {"dtype": "string", "id": null, "_type": "Value"}, "predicate_id": {"dtype": "string", "id": null, "_type": "Value"}, "obj_label": {"dtype": "string", "id": null, "_type": "Value"}, "template": {"dtype": "string", "id": null, "_type": "Value"}, "type": {"dtype": "string", "id": null, "_type": "Value"}, "question": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "json", "config_name": "bigscience-lama", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 5014647, "num_examples": 34039, "dataset_name": "json"}}, "download_checksums": {"/Users/jan/Documents/research/bigscience-lama/lama-trex.jsonl": {"num_bytes": 7840293, "checksum": "9bc914a8f5fc60e0984f0080562df5e31888c7e2990c9bd6720a3208ce0e587f"}}, "download_size": 7840293, "post_processing_size": null, "dataset_size": 5014647, "size_in_bytes": 12854940}, ".": {"description": "", "citation": "", "homepage": "", "license": "", "features": {"uuid": {"dtype": "string", "id": null, "_type": "Value"}, "sub_label": {"dtype": "string", "id": null, "_type": "Value"}, "predicate_id": {"dtype": "string", "id": null, "_type": "Value"}, "obj_label": {"dtype": "string", "id": null, "_type": "Value"}, "template": {"dtype": "string", "id": null, "_type": "Value"}, "type": {"dtype": "string", "id": null, "_type": "Value"}, "question": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "json", "config_name": ".", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 5014647, "num_examples": 34039, "dataset_name": "json"}}, "download_checksums": {"/Users/jan/Documents/research/bigscience-lama/lama-trex.jsonl": {"num_bytes": 7840293, "checksum": "9bc914a8f5fc60e0984f0080562df5e31888c7e2990c9bd6720a3208ce0e587f"}}, "download_size": 7840293, "post_processing_size": null, "dataset_size": 5014647, "size_in_bytes": 12854940}}