Update files from the datasets library (from 1.4.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.4.0
- README.md +21 -21
- kilt_wikipedia.py +4 -2
README.md
CHANGED
@@ -27,7 +27,7 @@
|
|
27 |
- [Citation Information](#citation-information)
|
28 |
- [Contributions](#contributions)
|
29 |
|
30 |
-
##
|
31 |
|
32 |
- **Homepage:** [https://github.com/facebookresearch/KILT](https://github.com/facebookresearch/KILT)
|
33 |
- **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
@@ -37,23 +37,23 @@
|
|
37 |
- **Size of the generated dataset:** 28011.83 MB
|
38 |
- **Total amount of disk used:** 63601.89 MB
|
39 |
|
40 |
-
###
|
41 |
|
42 |
KILT-Wikipedia: Wikipedia pre-processed for KILT.
|
43 |
|
44 |
-
###
|
45 |
|
46 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
47 |
|
48 |
-
###
|
49 |
|
50 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
51 |
|
52 |
-
##
|
53 |
|
54 |
We show detailed information for up to 5 configurations of the dataset.
|
55 |
|
56 |
-
###
|
57 |
|
58 |
#### 2019-08-01
|
59 |
|
@@ -101,7 +101,7 @@ An example of 'full' looks as follows.
|
|
101 |
}
|
102 |
```
|
103 |
|
104 |
-
###
|
105 |
|
106 |
The data fields are the same among all splits.
|
107 |
|
@@ -134,55 +134,55 @@ The data fields are the same among all splits.
|
|
134 |
- `timestamp`: a `string` feature.
|
135 |
- `url`: a `string` feature.
|
136 |
|
137 |
-
###
|
138 |
|
139 |
| name | full |
|
140 |
|----------|------:|
|
141 |
|2019-08-01|5903530|
|
142 |
|
143 |
-
##
|
144 |
|
145 |
-
###
|
146 |
|
147 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
148 |
|
149 |
-
###
|
150 |
|
151 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
152 |
|
153 |
-
###
|
154 |
|
155 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
156 |
|
157 |
-
###
|
158 |
|
159 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
160 |
|
161 |
-
##
|
162 |
|
163 |
-
###
|
164 |
|
165 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
166 |
|
167 |
-
###
|
168 |
|
169 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
170 |
|
171 |
-
###
|
172 |
|
173 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
174 |
|
175 |
-
##
|
176 |
|
177 |
-
###
|
178 |
|
179 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
180 |
|
181 |
-
###
|
182 |
|
183 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
184 |
|
185 |
-
###
|
186 |
|
187 |
```
|
188 |
@inproceedings{fb_kilt,
|
|
|
27 |
- [Citation Information](#citation-information)
|
28 |
- [Contributions](#contributions)
|
29 |
|
30 |
+
## Dataset Description
|
31 |
|
32 |
- **Homepage:** [https://github.com/facebookresearch/KILT](https://github.com/facebookresearch/KILT)
|
33 |
- **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
|
|
37 |
- **Size of the generated dataset:** 28011.83 MB
|
38 |
- **Total amount of disk used:** 63601.89 MB
|
39 |
|
40 |
+
### Dataset Summary
|
41 |
|
42 |
KILT-Wikipedia: Wikipedia pre-processed for KILT.
|
43 |
|
44 |
+
### Supported Tasks
|
45 |
|
46 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
47 |
|
48 |
+
### Languages
|
49 |
|
50 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
51 |
|
52 |
+
## Dataset Structure
|
53 |
|
54 |
We show detailed information for up to 5 configurations of the dataset.
|
55 |
|
56 |
+
### Data Instances
|
57 |
|
58 |
#### 2019-08-01
|
59 |
|
|
|
101 |
}
|
102 |
```
|
103 |
|
104 |
+
### Data Fields
|
105 |
|
106 |
The data fields are the same among all splits.
|
107 |
|
|
|
134 |
- `timestamp`: a `string` feature.
|
135 |
- `url`: a `string` feature.
|
136 |
|
137 |
+
### Data Splits Sample Size
|
138 |
|
139 |
| name | full |
|
140 |
|----------|------:|
|
141 |
|2019-08-01|5903530|
|
142 |
|
143 |
+
## Dataset Creation
|
144 |
|
145 |
+
### Curation Rationale
|
146 |
|
147 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
148 |
|
149 |
+
### Source Data
|
150 |
|
151 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
152 |
|
153 |
+
### Annotations
|
154 |
|
155 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
156 |
|
157 |
+
### Personal and Sensitive Information
|
158 |
|
159 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
160 |
|
161 |
+
## Considerations for Using the Data
|
162 |
|
163 |
+
### Social Impact of Dataset
|
164 |
|
165 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
166 |
|
167 |
+
### Discussion of Biases
|
168 |
|
169 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
170 |
|
171 |
+
### Other Known Limitations
|
172 |
|
173 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
174 |
|
175 |
+
## Additional Information
|
176 |
|
177 |
+
### Dataset Curators
|
178 |
|
179 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
180 |
|
181 |
+
### Licensing Information
|
182 |
|
183 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
184 |
|
185 |
+
### Citation Information
|
186 |
|
187 |
```
|
188 |
@inproceedings{fb_kilt,
|
kilt_wikipedia.py
CHANGED
@@ -19,11 +19,13 @@
|
|
19 |
from __future__ import absolute_import, division, print_function
|
20 |
|
21 |
import json
|
22 |
-
import logging
|
23 |
|
24 |
import datasets
|
25 |
|
26 |
|
|
|
|
|
|
|
27 |
_CITATION = """\
|
28 |
@inproceedings{fb_kilt,
|
29 |
author = {Fabio Petroni and
|
@@ -142,7 +144,7 @@ class KILTWikipedia(datasets.GeneratorBasedBuilder):
|
|
142 |
Yields:
|
143 |
dictionaries representing article data and metadata
|
144 |
"""
|
145 |
-
|
146 |
with open(filepath, encoding="utf-8") as f:
|
147 |
for idx, line in enumerate(f):
|
148 |
pre_article = json.loads(line.strip())
|
|
|
19 |
from __future__ import absolute_import, division, print_function
|
20 |
|
21 |
import json
|
|
|
22 |
|
23 |
import datasets
|
24 |
|
25 |
|
26 |
+
logger = datasets.logging.get_logger(__name__)
|
27 |
+
|
28 |
+
|
29 |
_CITATION = """\
|
30 |
@inproceedings{fb_kilt,
|
31 |
author = {Fabio Petroni and
|
|
|
144 |
Yields:
|
145 |
dictionaries representing article data and metadata
|
146 |
"""
|
147 |
+
logger.info("generating examples from = %s", filepath)
|
148 |
with open(filepath, encoding="utf-8") as f:
|
149 |
for idx, line in enumerate(f):
|
150 |
pre_article = json.loads(line.strip())
|