BoyJiang nthakur commited on
Commit
a8308b2
·
0 Parent(s):

Duplicate from BeIR/nfcorpus

Browse files

Co-authored-by: Nandan Thakur <nthakur@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ftz filter=lfs diff=lfs merge=lfs -text
6
+ *.gz filter=lfs diff=lfs merge=lfs -text
7
+ *.h5 filter=lfs diff=lfs merge=lfs -text
8
+ *.joblib filter=lfs diff=lfs merge=lfs -text
9
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
10
+ *.model filter=lfs diff=lfs merge=lfs -text
11
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
12
+ *.onnx filter=lfs diff=lfs merge=lfs -text
13
+ *.ot filter=lfs diff=lfs merge=lfs -text
14
+ *.parquet filter=lfs diff=lfs merge=lfs -text
15
+ *.pb filter=lfs diff=lfs merge=lfs -text
16
+ *.pt filter=lfs diff=lfs merge=lfs -text
17
+ *.pth filter=lfs diff=lfs merge=lfs -text
18
+ *.rar filter=lfs diff=lfs merge=lfs -text
19
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
20
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
21
+ *.tflite filter=lfs diff=lfs merge=lfs -text
22
+ *.tgz filter=lfs diff=lfs merge=lfs -text
23
+ *.wasm filter=lfs diff=lfs merge=lfs -text
24
+ *.xz filter=lfs diff=lfs merge=lfs -text
25
+ *.zip filter=lfs diff=lfs merge=lfs -text
26
+ *.zstandard filter=lfs diff=lfs merge=lfs -text
27
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
28
+ # Audio files - uncompressed
29
+ *.pcm filter=lfs diff=lfs merge=lfs -text
30
+ *.sam filter=lfs diff=lfs merge=lfs -text
31
+ *.raw filter=lfs diff=lfs merge=lfs -text
32
+ # Audio files - compressed
33
+ *.aac filter=lfs diff=lfs merge=lfs -text
34
+ *.flac filter=lfs diff=lfs merge=lfs -text
35
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
36
+ *.ogg filter=lfs diff=lfs merge=lfs -text
37
+ *.wav filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,291 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license:
5
+ - cc-by-sa-4.0
6
+ multilinguality:
7
+ - monolingual
8
+ paperswithcode_id: beir
9
+ pretty_name: BEIR Benchmark
10
+ task_categories:
11
+ - zero-shot-classification
12
+ - text-retrieval
13
+ task_ids:
14
+ - document-retrieval
15
+ - entity-linking-retrieval
16
+ - fact-checking-retrieval
17
+ tags:
18
+ - biomedical-information-retrieval
19
+ - citation-prediction-retrieval
20
+ - passage-retrieval
21
+ - news-retrieval
22
+ - argument-retrieval
23
+ - zero-shot-information-retrieval
24
+ - tweet-retrieval
25
+ - question-answering-retrieval
26
+ - duplication-question-retrieval
27
+ - zero-shot-retrieval
28
+ configs:
29
+ - config_name: corpus
30
+ data_files:
31
+ - split: corpus
32
+ path: corpus/corpus-*
33
+ - config_name: queries
34
+ data_files:
35
+ - split: queries
36
+ path: queries/queries-*
37
+ dataset_info:
38
+ - config_name: corpus
39
+ features:
40
+ - name: _id
41
+ dtype: string
42
+ - name: title
43
+ dtype: string
44
+ - name: text
45
+ dtype: string
46
+ splits:
47
+ - name: corpus
48
+ num_bytes: 5856698
49
+ num_examples: 3633
50
+ download_size: 3193804
51
+ dataset_size: 5856698
52
+ - config_name: queries
53
+ features:
54
+ - name: _id
55
+ dtype: string
56
+ - name: title
57
+ dtype: string
58
+ - name: text
59
+ dtype: string
60
+ splits:
61
+ - name: queries
62
+ num_bytes: 141303
63
+ num_examples: 3237
64
+ download_size: 83904
65
+ dataset_size: 141303
66
+ ---
67
+
68
+ # Dataset Card for BEIR Benchmark
69
+
70
+ ## Table of Contents
71
+ - [Dataset Description](#dataset-description)
72
+ - [Dataset Summary](#dataset-summary)
73
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
74
+ - [Languages](#languages)
75
+ - [Dataset Structure](#dataset-structure)
76
+ - [Data Instances](#data-instances)
77
+ - [Data Fields](#data-fields)
78
+ - [Data Splits](#data-splits)
79
+ - [Dataset Creation](#dataset-creation)
80
+ - [Curation Rationale](#curation-rationale)
81
+ - [Source Data](#source-data)
82
+ - [Annotations](#annotations)
83
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
84
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
85
+ - [Social Impact of Dataset](#social-impact-of-dataset)
86
+ - [Discussion of Biases](#discussion-of-biases)
87
+ - [Other Known Limitations](#other-known-limitations)
88
+ - [Additional Information](#additional-information)
89
+ - [Dataset Curators](#dataset-curators)
90
+ - [Licensing Information](#licensing-information)
91
+ - [Citation Information](#citation-information)
92
+ - [Contributions](#contributions)
93
+
94
+ ## Dataset Description
95
+
96
+ - **Homepage:** https://github.com/UKPLab/beir
97
+ - **Repository:** https://github.com/UKPLab/beir
98
+ - **Paper:** https://openreview.net/forum?id=wCu6T5xFjeJ
99
+ - **Leaderboard:** https://docs.google.com/spreadsheets/d/1L8aACyPaXrL8iEelJLGqlMqXKPX2oSP_R10pZoy77Ns
100
+ - **Point of Contact:** nandan.thakur@uwaterloo.ca
101
+
102
+ ### Dataset Summary
103
+
104
+ BEIR is a heterogeneous benchmark that has been built from 18 diverse datasets representing 9 information retrieval tasks:
105
+
106
+ - Fact-checking: [FEVER](http://fever.ai), [Climate-FEVER](http://climatefever.ai), [SciFact](https://github.com/allenai/scifact)
107
+ - Question-Answering: [NQ](https://ai.google.com/research/NaturalQuestions), [HotpotQA](https://hotpotqa.github.io), [FiQA-2018](https://sites.google.com/view/fiqa/)
108
+ - Bio-Medical IR: [TREC-COVID](https://ir.nist.gov/covidSubmit/index.html), [BioASQ](http://bioasq.org), [NFCorpus](https://www.cl.uni-heidelberg.de/statnlpgroup/nfcorpus/)
109
+ - News Retrieval: [TREC-NEWS](https://trec.nist.gov/data/news2019.html), [Robust04](https://trec.nist.gov/data/robust/04.guidelines.html)
110
+ - Argument Retrieval: [Touche-2020](https://webis.de/events/touche-20/shared-task-1.html), [ArguAna](tp://argumentation.bplaced.net/arguana/data)
111
+ - Duplicate Question Retrieval: [Quora](https://www.quora.com/q/quoradata/First-Quora-Dataset-Release-Question-Pairs), [CqaDupstack](http://nlp.cis.unimelb.edu.au/resources/cqadupstack/)
112
+ - Citation-Prediction: [SCIDOCS](https://allenai.org/data/scidocs)
113
+ - Tweet Retrieval: [Signal-1M](https://research.signal-ai.com/datasets/signal1m-tweetir.html)
114
+ - Entity Retrieval: [DBPedia](https://github.com/iai-group/DBpedia-Entity/)
115
+
116
+ All these datasets have been preprocessed and can be used for your experiments.
117
+
118
+
119
+ ```python
120
+
121
+ ```
122
+
123
+ ### Supported Tasks and Leaderboards
124
+
125
+ The dataset supports a leaderboard that evaluates models against task-specific metrics such as F1 or EM, as well as their ability to retrieve supporting information from Wikipedia.
126
+
127
+ The current best performing models can be found [here](https://eval.ai/web/challenges/challenge-page/689/leaderboard/).
128
+
129
+ ### Languages
130
+
131
+ All tasks are in English (`en`).
132
+
133
+ ## Dataset Structure
134
+
135
+ All BEIR datasets must contain a corpus, queries and qrels (relevance judgments file). They must be in the following format:
136
+ - `corpus` file: a `.jsonl` file (jsonlines) that contains a list of dictionaries, each with three fields `_id` with unique document identifier, `title` with document title (optional) and `text` with document paragraph or passage. For example: `{"_id": "doc1", "title": "Albert Einstein", "text": "Albert Einstein was a German-born...."}`
137
+ - `queries` file: a `.jsonl` file (jsonlines) that contains a list of dictionaries, each with two fields `_id` with unique query identifier and `text` with query text. For example: `{"_id": "q1", "text": "Who developed the mass-energy equivalence formula?"}`
138
+ - `qrels` file: a `.tsv` file (tab-seperated) that contains three columns, i.e. the `query-id`, `corpus-id` and `score` in this order. Keep 1st row as header. For example: `q1 doc1 1`
139
+
140
+ ### Data Instances
141
+
142
+ A high level example of any beir dataset:
143
+
144
+ ```python
145
+ corpus = {
146
+ "doc1" : {
147
+ "title": "Albert Einstein",
148
+ "text": "Albert Einstein was a German-born theoretical physicist. who developed the theory of relativity, \
149
+ one of the two pillars of modern physics (alongside quantum mechanics). His work is also known for \
150
+ its influence on the philosophy of science. He is best known to the general public for his mass–energy \
151
+ equivalence formula E = mc2, which has been dubbed 'the world's most famous equation'. He received the 1921 \
152
+ Nobel Prize in Physics 'for his services to theoretical physics, and especially for his discovery of the law \
153
+ of the photoelectric effect', a pivotal step in the development of quantum theory."
154
+ },
155
+ "doc2" : {
156
+ "title": "", # Keep title an empty string if not present
157
+ "text": "Wheat beer is a top-fermented beer which is brewed with a large proportion of wheat relative to the amount of \
158
+ malted barley. The two main varieties are German Weißbier and Belgian witbier; other types include Lambic (made\
159
+ with wild yeast), Berliner Weisse (a cloudy, sour beer), and Gose (a sour, salty beer)."
160
+ },
161
+ }
162
+
163
+ queries = {
164
+ "q1" : "Who developed the mass-energy equivalence formula?",
165
+ "q2" : "Which beer is brewed with a large proportion of wheat?"
166
+ }
167
+
168
+ qrels = {
169
+ "q1" : {"doc1": 1},
170
+ "q2" : {"doc2": 1},
171
+ }
172
+ ```
173
+
174
+ ### Data Fields
175
+
176
+ Examples from all configurations have the following features:
177
+
178
+ ### Corpus
179
+ - `corpus`: a `dict` feature representing the document title and passage text, made up of:
180
+ - `_id`: a `string` feature representing the unique document id
181
+ - `title`: a `string` feature, denoting the title of the document.
182
+ - `text`: a `string` feature, denoting the text of the document.
183
+
184
+ ### Queries
185
+ - `queries`: a `dict` feature representing the query, made up of:
186
+ - `_id`: a `string` feature representing the unique query id
187
+ - `text`: a `string` feature, denoting the text of the query.
188
+
189
+ ### Qrels
190
+ - `qrels`: a `dict` feature representing the query document relevance judgements, made up of:
191
+ - `_id`: a `string` feature representing the query id
192
+ - `_id`: a `string` feature, denoting the document id.
193
+ - `score`: a `int32` feature, denoting the relevance judgement between query and document.
194
+
195
+
196
+ ### Data Splits
197
+
198
+ | Dataset | Website| BEIR-Name | Type | Queries | Corpus | Rel D/Q | Down-load | md5 |
199
+ | -------- | -----| ---------| --------- | ----------- | ---------| ---------| :----------: | :------:|
200
+ | MSMARCO | [Homepage](https://microsoft.github.io/msmarco/)| ``msmarco`` | ``train``<br>``dev``<br>``test``| 6,980 | 8.84M | 1.1 | [Link](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/msmarco.zip) | ``444067daf65d982533ea17ebd59501e4`` |
201
+ | TREC-COVID | [Homepage](https://ir.nist.gov/covidSubmit/index.html)| ``trec-covid``| ``test``| 50| 171K| 493.5 | [Link](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/trec-covid.zip) | ``ce62140cb23feb9becf6270d0d1fe6d1`` |
202
+ | NFCorpus | [Homepage](https://www.cl.uni-heidelberg.de/statnlpgroup/nfcorpus/) | ``nfcorpus`` | ``train``<br>``dev``<br>``test``| 323 | 3.6K | 38.2 | [Link](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/nfcorpus.zip) | ``a89dba18a62ef92f7d323ec890a0d38d`` |
203
+ | BioASQ | [Homepage](http://bioasq.org) | ``bioasq``| ``train``<br>``test`` | 500 | 14.91M | 8.05 | No | [How to Reproduce?](https://github.com/UKPLab/beir/blob/main/examples/dataset#2-bioasq) |
204
+ | NQ | [Homepage](https://ai.google.com/research/NaturalQuestions) | ``nq``| ``train``<br>``test``| 3,452 | 2.68M | 1.2 | [Link](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/nq.zip) | ``d4d3d2e48787a744b6f6e691ff534307`` |
205
+ | HotpotQA | [Homepage](https://hotpotqa.github.io) | ``hotpotqa``| ``train``<br>``dev``<br>``test``| 7,405 | 5.23M | 2.0 | [Link](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/hotpotqa.zip) | ``f412724f78b0d91183a0e86805e16114`` |
206
+ | FiQA-2018 | [Homepage](https://sites.google.com/view/fiqa/) | ``fiqa`` | ``train``<br>``dev``<br>``test``| 648 | 57K | 2.6 | [Link](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/fiqa.zip) | ``17918ed23cd04fb15047f73e6c3bd9d9`` |
207
+ | Signal-1M(RT) | [Homepage](https://research.signal-ai.com/datasets/signal1m-tweetir.html)| ``signal1m`` | ``test``| 97 | 2.86M | 19.6 | No | [How to Reproduce?](https://github.com/UKPLab/beir/blob/main/examples/dataset#4-signal-1m) |
208
+ | TREC-NEWS | [Homepage](https://trec.nist.gov/data/news2019.html) | ``trec-news`` | ``test``| 57 | 595K | 19.6 | No | [How to Reproduce?](https://github.com/UKPLab/beir/blob/main/examples/dataset#1-trec-news) |
209
+ | ArguAna | [Homepage](http://argumentation.bplaced.net/arguana/data) | ``arguana``| ``test`` | 1,406 | 8.67K | 1.0 | [Link](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/arguana.zip) | ``8ad3e3c2a5867cdced806d6503f29b99`` |
210
+ | Touche-2020| [Homepage](https://webis.de/events/touche-20/shared-task-1.html) | ``webis-touche2020``| ``test``| 49 | 382K | 19.0 | [Link](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/webis-touche2020.zip) | ``46f650ba5a527fc69e0a6521c5a23563`` |
211
+ | CQADupstack| [Homepage](http://nlp.cis.unimelb.edu.au/resources/cqadupstack/) | ``cqadupstack``| ``test``| 13,145 | 457K | 1.4 | [Link](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/cqadupstack.zip) | ``4e41456d7df8ee7760a7f866133bda78`` |
212
+ | Quora| [Homepage](https://www.quora.com/q/quoradata/First-Quora-Dataset-Release-Question-Pairs) | ``quora``| ``dev``<br>``test``| 10,000 | 523K | 1.6 | [Link](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/quora.zip) | ``18fb154900ba42a600f84b839c173167`` |
213
+ | DBPedia | [Homepage](https://github.com/iai-group/DBpedia-Entity/) | ``dbpedia-entity``| ``dev``<br>``test``| 400 | 4.63M | 38.2 | [Link](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/dbpedia-entity.zip) | ``c2a39eb420a3164af735795df012ac2c`` |
214
+ | SCIDOCS| [Homepage](https://allenai.org/data/scidocs) | ``scidocs``| ``test``| 1,000 | 25K | 4.9 | [Link](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/scidocs.zip) | ``38121350fc3a4d2f48850f6aff52e4a9`` |
215
+ | FEVER | [Homepage](http://fever.ai) | ``fever``| ``train``<br>``dev``<br>``test``| 6,666 | 5.42M | 1.2| [Link](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/fever.zip) | ``5a818580227bfb4b35bb6fa46d9b6c03`` |
216
+ | Climate-FEVER| [Homepage](http://climatefever.ai) | ``climate-fever``|``test``| 1,535 | 5.42M | 3.0 | [Link](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/climate-fever.zip) | ``8b66f0a9126c521bae2bde127b4dc99d`` |
217
+ | SciFact| [Homepage](https://github.com/allenai/scifact) | ``scifact``| ``train``<br>``test``| 300 | 5K | 1.1 | [Link](https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/scifact.zip) | ``5f7d1de60b170fc8027bb7898e2efca1`` |
218
+ | Robust04 | [Homepage](https://trec.nist.gov/data/robust/04.guidelines.html) | ``robust04``| ``test``| 249 | 528K | 69.9 | No | [How to Reproduce?](https://github.com/UKPLab/beir/blob/main/examples/dataset#3-robust04) |
219
+
220
+
221
+ ## Dataset Creation
222
+
223
+ ### Curation Rationale
224
+
225
+ [Needs More Information]
226
+
227
+ ### Source Data
228
+
229
+ #### Initial Data Collection and Normalization
230
+
231
+ [Needs More Information]
232
+
233
+ #### Who are the source language producers?
234
+
235
+ [Needs More Information]
236
+
237
+ ### Annotations
238
+
239
+ #### Annotation process
240
+
241
+ [Needs More Information]
242
+
243
+ #### Who are the annotators?
244
+
245
+ [Needs More Information]
246
+
247
+ ### Personal and Sensitive Information
248
+
249
+ [Needs More Information]
250
+
251
+ ## Considerations for Using the Data
252
+
253
+ ### Social Impact of Dataset
254
+
255
+ [Needs More Information]
256
+
257
+ ### Discussion of Biases
258
+
259
+ [Needs More Information]
260
+
261
+ ### Other Known Limitations
262
+
263
+ [Needs More Information]
264
+
265
+ ## Additional Information
266
+
267
+ ### Dataset Curators
268
+
269
+ [Needs More Information]
270
+
271
+ ### Licensing Information
272
+
273
+ [Needs More Information]
274
+
275
+ ### Citation Information
276
+
277
+ Cite as:
278
+ ```
279
+ @inproceedings{
280
+ thakur2021beir,
281
+ title={{BEIR}: A Heterogeneous Benchmark for Zero-shot Evaluation of Information Retrieval Models},
282
+ author={Nandan Thakur and Nils Reimers and Andreas R{\"u}ckl{\'e} and Abhishek Srivastava and Iryna Gurevych},
283
+ booktitle={Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track (Round 2)},
284
+ year={2021},
285
+ url={https://openreview.net/forum?id=wCu6T5xFjeJ}
286
+ }
287
+ ```
288
+
289
+ ### Contributions
290
+
291
+ Thanks to [@Nthakur20](https://github.com/Nthakur20) for adding this dataset.
corpus/corpus-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d63810663c22a21d74f1689da586ecdc1aec941d4d99494b2a5f319f3078471
3
+ size 3193804
queries/queries-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:947d272a11835ab4690bb085928f951f26144bd4ecbc811dc48886297aa10b42
3
+ size 83904