Upload folder using huggingface_hub
Browse files- README.md +56 -2
- checksums.sha256 +2 -2
- data/train.jsonl +2 -2
- data/valid.jsonl +0 -0
- samples/train_sample.jsonl +0 -0
- samples/valid_sample.jsonl +0 -0
README.md
CHANGED
|
@@ -26,6 +26,37 @@ configs:
|
|
| 26 |
path: data/train.jsonl
|
| 27 |
- split: validation
|
| 28 |
path: data/valid.jsonl
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
---
|
| 30 |
|
| 31 |
# NQ320K (NCI-style preprocessing)
|
|
@@ -42,8 +73,8 @@ Hugging Face `google-research-datasets/natural_questions` snapshot.
|
|
| 42 |
| `train` pairs | 307,373 |
|
| 43 |
| `validation` pairs | 7,830 |
|
| 44 |
|
| 45 |
-
* Train pairs with non-empty `long_answer`: **152,
|
| 46 |
-
* Train pairs with non-empty `short_answer`: **
|
| 47 |
* Date built: 2026-04-30
|
| 48 |
|
| 49 |
## Schema
|
|
@@ -117,6 +148,29 @@ These are **inherited from NCI's preprocessing** and intentional:
|
|
| 117 |
Only `content` has its tags stripped. This is the canonical NCI format.
|
| 118 |
* **Non-detokenized hyphenation**: `"post - apocalyptic"`, `"Spider - Man"`.
|
| 119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
## License & attribution
|
| 121 |
|
| 122 |
This dataset is a derivative of the Natural Questions dataset by Google
|
|
|
|
| 26 |
path: data/train.jsonl
|
| 27 |
- split: validation
|
| 28 |
path: data/valid.jsonl
|
| 29 |
+
dataset_info:
|
| 30 |
+
- config_name: corpus
|
| 31 |
+
features:
|
| 32 |
+
- name: docid
|
| 33 |
+
dtype: int64
|
| 34 |
+
- name: document
|
| 35 |
+
dtype: string
|
| 36 |
+
splits:
|
| 37 |
+
- name: corpus
|
| 38 |
+
num_examples: 109650
|
| 39 |
+
- config_name: pairs
|
| 40 |
+
features:
|
| 41 |
+
- name: query
|
| 42 |
+
dtype: string
|
| 43 |
+
- name: docid
|
| 44 |
+
dtype: int64
|
| 45 |
+
- name: nq_id
|
| 46 |
+
dtype: string # IMPORTANT: string, not int – uint64 IDs overflow signed int64
|
| 47 |
+
- name: url
|
| 48 |
+
dtype: string
|
| 49 |
+
- name: title
|
| 50 |
+
dtype: string
|
| 51 |
+
- name: long_answer
|
| 52 |
+
dtype: string
|
| 53 |
+
- name: short_answer
|
| 54 |
+
dtype: string
|
| 55 |
+
splits:
|
| 56 |
+
- name: train
|
| 57 |
+
num_examples: 307373
|
| 58 |
+
- name: validation
|
| 59 |
+
num_examples: 7830
|
| 60 |
---
|
| 61 |
|
| 62 |
# NQ320K (NCI-style preprocessing)
|
|
|
|
| 73 |
| `train` pairs | 307,373 |
|
| 74 |
| `validation` pairs | 7,830 |
|
| 75 |
|
| 76 |
+
* Train pairs with non-empty `long_answer`: **152,148 / 307,373** (49.5%)
|
| 77 |
+
* Train pairs with non-empty `short_answer`: **106,926 / 307,373** (34.8%)
|
| 78 |
* Date built: 2026-04-30
|
| 79 |
|
| 80 |
## Schema
|
|
|
|
| 148 |
Only `content` has its tags stripped. This is the canonical NCI format.
|
| 149 |
* **Non-detokenized hyphenation**: `"post - apocalyptic"`, `"Spider - Man"`.
|
| 150 |
|
| 151 |
+
## Caveat: `nq_id` is a string
|
| 152 |
+
|
| 153 |
+
NQ's original `example_id` is a **uint64**, and roughly half of the IDs
|
| 154 |
+
exceed `2^63 = 9.22 × 10^18`. They fit unsigned but overflow signed int64.
|
| 155 |
+
|
| 156 |
+
`nq_id` is therefore stored as a **string**, exactly as Google publishes it.
|
| 157 |
+
**Do not auto-cast it to int64** — about 50% of the values would silently
|
| 158 |
+
wrap to negative numbers. If you load with pandas:
|
| 159 |
+
|
| 160 |
+
```python
|
| 161 |
+
import pandas as pd
|
| 162 |
+
df = pd.read_json("train.jsonl", lines=True, dtype={"nq_id": str})
|
| 163 |
+
```
|
| 164 |
+
|
| 165 |
+
If you load with `datasets`, the typed `dataset_info` in this card already
|
| 166 |
+
enforces `string`, so you don't need to do anything extra:
|
| 167 |
+
|
| 168 |
+
```python
|
| 169 |
+
from datasets import load_dataset
|
| 170 |
+
ds = load_dataset("<your-username>/NQ320K-NCI", "pairs")
|
| 171 |
+
print(ds["train"].features["nq_id"]) # Value(dtype='string', id=None)
|
| 172 |
+
```
|
| 173 |
+
|
| 174 |
## License & attribution
|
| 175 |
|
| 176 |
This dataset is a derivative of the Natural Questions dataset by Google
|
checksums.sha256
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
8bcd532a2719542d88a484dd8d251e914c462e694dc55e95e21e7d63f1f47241 data/corpus.jsonl
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 1 |
8bcd532a2719542d88a484dd8d251e914c462e694dc55e95e21e7d63f1f47241 data/corpus.jsonl
|
| 2 |
+
2d2a39fc9a6b5e4ad3ee30b6b4c523c15bc7a9a2ef486114da9544f375e10c20 data/train.jsonl
|
| 3 |
+
ce1a1b913e4f44ddeac78cf0c3c9ff373a360eb32e4ef4085ea14b70d1c8a924 data/valid.jsonl
|
data/train.jsonl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2d2a39fc9a6b5e4ad3ee30b6b4c523c15bc7a9a2ef486114da9544f375e10c20
|
| 3 |
+
size 317868919
|
data/valid.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
samples/train_sample.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
samples/valid_sample.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|