Datasets:
Tasks:
Question Answering
Modalities:
Text
Formats:
parquet
Languages:
English
Size:
10K - 100K
License:
Publish the original CommonsenseQA splits in Lance
#1
by tsmithv11 - opened
- .gitattributes +3 -0
- LICENSE +21 -0
- README.md +80 -0
- conversion.json +48 -0
- data/test.lance/_transactions/0-7313a652-0a22-4c30-a29f-1af4468da75d.txn +0 -0
- data/test.lance/_versions/18446744073709551614.manifest +0 -0
- data/test.lance/_versions/latest_version_hint.json +1 -0
- data/test.lance/data/101100110011100000100010bef04c449ab178e45566089796.lance +3 -0
- data/train.lance/_transactions/0-218a06c3-85cb-4e0e-b3d1-c9be2500cd8b.txn +0 -0
- data/train.lance/_versions/18446744073709551614.manifest +0 -0
- data/train.lance/_versions/latest_version_hint.json +1 -0
- data/train.lance/data/011101001011001111011001c500d24ccd88b35a287a8fc383.lance +3 -0
- data/validation.lance/_transactions/0-66cccb30-ccbf-4089-884c-914c855b295e.txn +0 -0
- data/validation.lance/_versions/18446744073709551614.manifest +0 -0
- data/validation.lance/_versions/latest_version_hint.json +1 -0
- data/validation.lance/data/011101111101000100110100ebb6d745c3827d7b8eda0238a0.lance +3 -0
- preview/test.parquet +3 -0
- preview/train.parquet +3 -0
- preview/validation.parquet +3 -0
- source/README.original.md +233 -0
- source/gitattributes.original.txt +27 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
data/test.lance/data/101100110011100000100010bef04c449ab178e45566089796.lance filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
data/train.lance/data/011101001011001111011001c500d24ccd88b35a287a8fc383.lance filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
data/validation.lance/data/011101111101000100110100ebb6d745c3827d7b8eda0238a0.lance filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) the CommonsenseQA authors
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
README.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: CommonsenseQA in Lance
|
| 3 |
+
license: mit
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
task_categories:
|
| 7 |
+
- question-answering
|
| 8 |
+
tags:
|
| 9 |
+
- lance
|
| 10 |
+
- commonsense-reasoning
|
| 11 |
+
- multiple-choice
|
| 12 |
+
- information-retrieval
|
| 13 |
+
size_categories:
|
| 14 |
+
- 10K<n<100K
|
| 15 |
+
configs:
|
| 16 |
+
- config_name: default
|
| 17 |
+
default: true
|
| 18 |
+
data_files:
|
| 19 |
+
- split: train
|
| 20 |
+
path: preview/train.parquet
|
| 21 |
+
- split: validation
|
| 22 |
+
path: preview/validation.parquet
|
| 23 |
+
- split: test
|
| 24 |
+
path: preview/test.parquet
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
+
# CommonsenseQA in Lance
|
| 28 |
+
|
| 29 |
+
Find related English commonsense questions, then read their original multiple-choice options. This edition preserves all 12,102 questions, the original split assignments, and the five source fields from the published `tau/commonsense_qa` dataset. [Pinned original release](https://huggingface.co/datasets/tau/commonsense_qa/tree/94630fe30dad47192a8546eb75f094926d47e155)
|
| 30 |
+
|
| 31 |
+
## Splits and schema
|
| 32 |
+
|
| 33 |
+
| Source split | Lance table | Rows |
|
| 34 |
+
| --- | --- | ---: |
|
| 35 |
+
| `train` | `data/train.lance` | 9,741 |
|
| 36 |
+
| `validation` | `data/validation.lance` | 1,221 |
|
| 37 |
+
| `test` | `data/test.lance` | 1,140 |
|
| 38 |
+
|
| 39 |
+
The original `id`, `question`, `question_concept`, `choices`, and `answerKey` columns keep their values and order. `choices` contains the original label and text lists. The source test rows have empty `answerKey` strings, which this edition preserves. Each Lance row adds an `embedding` vector. The Data Studio preview uses byte-identical copies of the original split Parquet files. [Open Data Studio](https://huggingface.co/datasets/lance-format/commonsense-qa-lance/viewer/default/train) · [Split counts and provenance](conversion.json)
|
| 40 |
+
|
| 41 |
+
## Search related questions
|
| 42 |
+
|
| 43 |
+
This edition embeds the English `question` field alone. It uses `sentence-transformers/static-retrieval-mrl-en-v1` at revision `f60985c706f192d45d218078e49e5a8b6f15283a`. Document and query encodings use the first 256 Matryoshka dimensions and L2 normalization. Lance searches float32 vectors by cosine distance. The example prints `1 - distance`, where higher scores indicate more similar questions. [Pinned encoder](https://huggingface.co/sentence-transformers/static-retrieval-mrl-en-v1/tree/f60985c706f192d45d218078e49e5a8b6f15283a)
|
| 44 |
+
|
| 45 |
+
```bash
|
| 46 |
+
python -m pip install 'pylance==14.0.3' 'sentence-transformers==6.3.0'
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
```python
|
| 50 |
+
import lance
|
| 51 |
+
from sentence_transformers import SentenceTransformer
|
| 52 |
+
|
| 53 |
+
root = "hf://datasets/lance-format/commonsense-qa-lance"
|
| 54 |
+
split = "train"
|
| 55 |
+
encoder = SentenceTransformer(
|
| 56 |
+
"sentence-transformers/static-retrieval-mrl-en-v1",
|
| 57 |
+
revision="f60985c706f192d45d218078e49e5a8b6f15283a",
|
| 58 |
+
truncate_dim=256,
|
| 59 |
+
device="cpu",
|
| 60 |
+
)
|
| 61 |
+
query = "Where could I buy new pencils for school?"
|
| 62 |
+
vector = encoder.encode_query(query, normalize_embeddings=True)
|
| 63 |
+
questions = lance.dataset(f"{root}/data/{split}.lance")
|
| 64 |
+
matches = questions.to_table(
|
| 65 |
+
columns=["id", "question", "question_concept", "_distance"],
|
| 66 |
+
nearest={"column": "embedding", "q": vector, "k": 5, "metric": "cosine"},
|
| 67 |
+
).to_pylist()
|
| 68 |
+
|
| 69 |
+
for match in matches:
|
| 70 |
+
print(f"{1 - match['_distance']:.4f} {match['id']} "
|
| 71 |
+
f"concept={match['question_concept']} {match['question']}")
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
Set `split` to `validation` or `test` to search the corresponding source split with the same encoder.
|
| 75 |
+
|
| 76 |
+
## License and attribution
|
| 77 |
+
|
| 78 |
+
Alon Talmor, Jonathan Herzig, Nicholas Lourie, and Jonathan Berant created CommonsenseQA. The authors released their dataset under MIT. This conversion adds Lance tables and question embeddings. [Author’s license confirmation](https://github.com/jonathanherzig/commonsenseqa/issues/5) · [MIT license](LICENSE) · [Original paper and citation](https://aclanthology.org/N19-1421/) · [Archived source card](source/README.original.md)
|
| 79 |
+
|
| 80 |
+
The CommonsenseQA creators used ConceptNet to select concepts for the questions. Credit Robyn Speer, Joshua Chin, Catherine Havasi, and the Commonsense Computing Initiative for ConceptNet 5. The ConceptNet graph has its own CC BY-SA 4.0 terms. [ConceptNet paper](https://doi.org/10.1609/aaai.v31i1.11164) · [ConceptNet data license and contributor credits](https://github.com/commonsense/conceptnet5/wiki/Copying-and-sharing-ConceptNet)
|
conversion.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"source": "tau/commonsense_qa",
|
| 3 |
+
"source_revision": "94630fe30dad47192a8546eb75f094926d47e155",
|
| 4 |
+
"source_files": [
|
| 5 |
+
{
|
| 6 |
+
"source": "data/train-00000-of-00001.parquet",
|
| 7 |
+
"published": "preview/train.parquet",
|
| 8 |
+
"bytes": 1247103,
|
| 9 |
+
"sha256": "b0449767ed986bfc2ca52b1244a46ef12f732756727f3cb0a4ab69ac8b3d282b"
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"source": "data/validation-00000-of-00001.parquet",
|
| 13 |
+
"published": "preview/validation.parquet",
|
| 14 |
+
"bytes": 160240,
|
| 15 |
+
"sha256": "bdbd9bf9cc4d2349b24901038b2ab2f58e10e4e507ad2fd425dca55cd3cb6660"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"source": "data/test-00000-of-00001.parquet",
|
| 19 |
+
"published": "preview/test.parquet",
|
| 20 |
+
"bytes": 151227,
|
| 21 |
+
"sha256": "19efe93223d1712397aaa44b3adc07f4fa50349206a611ca4f33afbec661fa5e"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"source": "README.md",
|
| 25 |
+
"published": "source/README.original.md",
|
| 26 |
+
"bytes": 7395,
|
| 27 |
+
"sha256": "172917e887dcc013fe0f0bd6aa8c810aea1e2be67d3bc7ff63e9b9d92075cc34"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"source": ".gitattributes",
|
| 31 |
+
"published": "source/gitattributes.original.txt",
|
| 32 |
+
"bytes": 1174,
|
| 33 |
+
"sha256": "40e650854e43f5d4a0efaa68f487161e1226e22bc5480bd0effa0a8dadb5b848"
|
| 34 |
+
}
|
| 35 |
+
],
|
| 36 |
+
"source_bytes": 1567139,
|
| 37 |
+
"splits": {
|
| 38 |
+
"train": 9741,
|
| 39 |
+
"validation": 1221,
|
| 40 |
+
"test": 1140
|
| 41 |
+
},
|
| 42 |
+
"total": 12102,
|
| 43 |
+
"blank_test_answers": 1140,
|
| 44 |
+
"encoder": "sentence-transformers/static-retrieval-mrl-en-v1",
|
| 45 |
+
"encoder_revision": "f60985c706f192d45d218078e49e5a8b6f15283a",
|
| 46 |
+
"dimensions": 256,
|
| 47 |
+
"metric": "cosine"
|
| 48 |
+
}
|
data/test.lance/_transactions/0-7313a652-0a22-4c30-a29f-1af4468da75d.txn
ADDED
|
Binary file (466 Bytes). View file
|
|
|
data/test.lance/_versions/18446744073709551614.manifest
ADDED
|
Binary file (1.01 kB). View file
|
|
|
data/test.lance/_versions/latest_version_hint.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":1}
|
data/test.lance/data/101100110011100000100010bef04c449ab178e45566089796.lance
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c58a45cdc5545786e24b283ce532ea40e345e2945fe85afdcd0bc9a4db6a0214
|
| 3 |
+
size 1345902
|
data/train.lance/_transactions/0-218a06c3-85cb-4e0e-b3d1-c9be2500cd8b.txn
ADDED
|
Binary file (467 Bytes). View file
|
|
|
data/train.lance/_versions/18446744073709551614.manifest
ADDED
|
Binary file (1.01 kB). View file
|
|
|
data/train.lance/_versions/latest_version_hint.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":1}
|
data/train.lance/data/011101001011001111011001c500d24ccd88b35a287a8fc383.lance
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5d92cffdbd5e8931b572221b354b94648754136dbc3cd949c64c9d5df38a2491
|
| 3 |
+
size 11426670
|
data/validation.lance/_transactions/0-66cccb30-ccbf-4089-884c-914c855b295e.txn
ADDED
|
Binary file (466 Bytes). View file
|
|
|
data/validation.lance/_versions/18446744073709551614.manifest
ADDED
|
Binary file (1.01 kB). View file
|
|
|
data/validation.lance/_versions/latest_version_hint.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":1}
|
data/validation.lance/data/011101111101000100110100ebb6d745c3827d7b8eda0238a0.lance
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f325966128af7c6d9d430e36d8c81e0939aa1e444cc5bd7ca477e095778f7ec1
|
| 3 |
+
size 1446020
|
preview/test.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19efe93223d1712397aaa44b3adc07f4fa50349206a611ca4f33afbec661fa5e
|
| 3 |
+
size 151227
|
preview/train.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0449767ed986bfc2ca52b1244a46ef12f732756727f3cb0a4ab69ac8b3d282b
|
| 3 |
+
size 1247103
|
preview/validation.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bdbd9bf9cc4d2349b24901038b2ab2f58e10e4e507ad2fd425dca55cd3cb6660
|
| 3 |
+
size 160240
|
source/README.original.md
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
annotations_creators:
|
| 3 |
+
- crowdsourced
|
| 4 |
+
language_creators:
|
| 5 |
+
- crowdsourced
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
license:
|
| 9 |
+
- mit
|
| 10 |
+
multilinguality:
|
| 11 |
+
- monolingual
|
| 12 |
+
size_categories:
|
| 13 |
+
- 1K<n<10K
|
| 14 |
+
source_datasets:
|
| 15 |
+
- original
|
| 16 |
+
task_categories:
|
| 17 |
+
- question-answering
|
| 18 |
+
task_ids:
|
| 19 |
+
- open-domain-qa
|
| 20 |
+
paperswithcode_id: commonsenseqa
|
| 21 |
+
pretty_name: CommonsenseQA
|
| 22 |
+
dataset_info:
|
| 23 |
+
features:
|
| 24 |
+
- name: id
|
| 25 |
+
dtype: string
|
| 26 |
+
- name: question
|
| 27 |
+
dtype: string
|
| 28 |
+
- name: question_concept
|
| 29 |
+
dtype: string
|
| 30 |
+
- name: choices
|
| 31 |
+
sequence:
|
| 32 |
+
- name: label
|
| 33 |
+
dtype: string
|
| 34 |
+
- name: text
|
| 35 |
+
dtype: string
|
| 36 |
+
- name: answerKey
|
| 37 |
+
dtype: string
|
| 38 |
+
splits:
|
| 39 |
+
- name: train
|
| 40 |
+
num_bytes: 2207794
|
| 41 |
+
num_examples: 9741
|
| 42 |
+
- name: validation
|
| 43 |
+
num_bytes: 273848
|
| 44 |
+
num_examples: 1221
|
| 45 |
+
- name: test
|
| 46 |
+
num_bytes: 257842
|
| 47 |
+
num_examples: 1140
|
| 48 |
+
download_size: 1558570
|
| 49 |
+
dataset_size: 2739484
|
| 50 |
+
configs:
|
| 51 |
+
- config_name: default
|
| 52 |
+
data_files:
|
| 53 |
+
- split: train
|
| 54 |
+
path: data/train-*
|
| 55 |
+
- split: validation
|
| 56 |
+
path: data/validation-*
|
| 57 |
+
- split: test
|
| 58 |
+
path: data/test-*
|
| 59 |
+
---
|
| 60 |
+
|
| 61 |
+
# Dataset Card for "commonsense_qa"
|
| 62 |
+
|
| 63 |
+
## Table of Contents
|
| 64 |
+
- [Table of Contents](#table-of-contents)
|
| 65 |
+
- [Dataset Description](#dataset-description)
|
| 66 |
+
- [Dataset Summary](#dataset-summary)
|
| 67 |
+
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
| 68 |
+
- [Languages](#languages)
|
| 69 |
+
- [Dataset Structure](#dataset-structure)
|
| 70 |
+
- [Data Instances](#data-instances)
|
| 71 |
+
- [Data Fields](#data-fields)
|
| 72 |
+
- [Data Splits](#data-splits)
|
| 73 |
+
- [Dataset Creation](#dataset-creation)
|
| 74 |
+
- [Curation Rationale](#curation-rationale)
|
| 75 |
+
- [Source Data](#source-data)
|
| 76 |
+
- [Annotations](#annotations)
|
| 77 |
+
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
| 78 |
+
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
| 79 |
+
- [Social Impact of Dataset](#social-impact-of-dataset)
|
| 80 |
+
- [Discussion of Biases](#discussion-of-biases)
|
| 81 |
+
- [Other Known Limitations](#other-known-limitations)
|
| 82 |
+
- [Additional Information](#additional-information)
|
| 83 |
+
- [Dataset Curators](#dataset-curators)
|
| 84 |
+
- [Licensing Information](#licensing-information)
|
| 85 |
+
- [Citation Information](#citation-information)
|
| 86 |
+
- [Contributions](#contributions)
|
| 87 |
+
|
| 88 |
+
## Dataset Description
|
| 89 |
+
|
| 90 |
+
- **Homepage:** https://www.tau-nlp.org/commonsenseqa
|
| 91 |
+
- **Repository:** https://github.com/jonathanherzig/commonsenseqa
|
| 92 |
+
- **Paper:** https://arxiv.org/abs/1811.00937
|
| 93 |
+
- **Point of Contact:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 94 |
+
- **Size of downloaded dataset files:** 4.68 MB
|
| 95 |
+
- **Size of the generated dataset:** 2.18 MB
|
| 96 |
+
- **Total amount of disk used:** 6.86 MB
|
| 97 |
+
|
| 98 |
+
### Dataset Summary
|
| 99 |
+
|
| 100 |
+
CommonsenseQA is a new multiple-choice question answering dataset that requires different types of commonsense knowledge
|
| 101 |
+
to predict the correct answers . It contains 12,102 questions with one correct answer and four distractor answers.
|
| 102 |
+
The dataset is provided in two major training/validation/testing set splits: "Random split" which is the main evaluation
|
| 103 |
+
split, and "Question token split", see paper for details.
|
| 104 |
+
|
| 105 |
+
### Supported Tasks and Leaderboards
|
| 106 |
+
|
| 107 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 108 |
+
|
| 109 |
+
### Languages
|
| 110 |
+
|
| 111 |
+
The dataset is in English (`en`).
|
| 112 |
+
|
| 113 |
+
## Dataset Structure
|
| 114 |
+
|
| 115 |
+
### Data Instances
|
| 116 |
+
|
| 117 |
+
#### default
|
| 118 |
+
|
| 119 |
+
- **Size of downloaded dataset files:** 4.68 MB
|
| 120 |
+
- **Size of the generated dataset:** 2.18 MB
|
| 121 |
+
- **Total amount of disk used:** 6.86 MB
|
| 122 |
+
|
| 123 |
+
An example of 'train' looks as follows:
|
| 124 |
+
```
|
| 125 |
+
{'id': '075e483d21c29a511267ef62bedc0461',
|
| 126 |
+
'question': 'The sanctions against the school were a punishing blow, and they seemed to what the efforts the school had made to change?',
|
| 127 |
+
'question_concept': 'punishing',
|
| 128 |
+
'choices': {'label': ['A', 'B', 'C', 'D', 'E'],
|
| 129 |
+
'text': ['ignore', 'enforce', 'authoritarian', 'yell at', 'avoid']},
|
| 130 |
+
'answerKey': 'A'}
|
| 131 |
+
```
|
| 132 |
+
|
| 133 |
+
### Data Fields
|
| 134 |
+
|
| 135 |
+
The data fields are the same among all splits.
|
| 136 |
+
|
| 137 |
+
#### default
|
| 138 |
+
- `id` (`str`): Unique ID.
|
| 139 |
+
- `question`: a `string` feature.
|
| 140 |
+
- `question_concept` (`str`): ConceptNet concept associated to the question.
|
| 141 |
+
- `choices`: a dictionary feature containing:
|
| 142 |
+
- `label`: a `string` feature.
|
| 143 |
+
- `text`: a `string` feature.
|
| 144 |
+
- `answerKey`: a `string` feature.
|
| 145 |
+
|
| 146 |
+
### Data Splits
|
| 147 |
+
|
| 148 |
+
| name | train | validation | test |
|
| 149 |
+
|---------|------:|-----------:|-----:|
|
| 150 |
+
| default | 9741 | 1221 | 1140 |
|
| 151 |
+
|
| 152 |
+
## Dataset Creation
|
| 153 |
+
|
| 154 |
+
### Curation Rationale
|
| 155 |
+
|
| 156 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 157 |
+
|
| 158 |
+
### Source Data
|
| 159 |
+
|
| 160 |
+
#### Initial Data Collection and Normalization
|
| 161 |
+
|
| 162 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 163 |
+
|
| 164 |
+
#### Who are the source language producers?
|
| 165 |
+
|
| 166 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 167 |
+
|
| 168 |
+
### Annotations
|
| 169 |
+
|
| 170 |
+
#### Annotation process
|
| 171 |
+
|
| 172 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 173 |
+
|
| 174 |
+
#### Who are the annotators?
|
| 175 |
+
|
| 176 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 177 |
+
|
| 178 |
+
### Personal and Sensitive Information
|
| 179 |
+
|
| 180 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 181 |
+
|
| 182 |
+
## Considerations for Using the Data
|
| 183 |
+
|
| 184 |
+
### Social Impact of Dataset
|
| 185 |
+
|
| 186 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 187 |
+
|
| 188 |
+
### Discussion of Biases
|
| 189 |
+
|
| 190 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 191 |
+
|
| 192 |
+
### Other Known Limitations
|
| 193 |
+
|
| 194 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 195 |
+
|
| 196 |
+
## Additional Information
|
| 197 |
+
|
| 198 |
+
### Dataset Curators
|
| 199 |
+
|
| 200 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 201 |
+
|
| 202 |
+
### Licensing Information
|
| 203 |
+
|
| 204 |
+
The dataset is licensed under the MIT License.
|
| 205 |
+
|
| 206 |
+
See: https://github.com/jonathanherzig/commonsenseqa/issues/5
|
| 207 |
+
|
| 208 |
+
### Citation Information
|
| 209 |
+
|
| 210 |
+
```
|
| 211 |
+
@inproceedings{talmor-etal-2019-commonsenseqa,
|
| 212 |
+
title = "{C}ommonsense{QA}: A Question Answering Challenge Targeting Commonsense Knowledge",
|
| 213 |
+
author = "Talmor, Alon and
|
| 214 |
+
Herzig, Jonathan and
|
| 215 |
+
Lourie, Nicholas and
|
| 216 |
+
Berant, Jonathan",
|
| 217 |
+
booktitle = "Proceedings of the 2019 Conference of the North {A}merican Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers)",
|
| 218 |
+
month = jun,
|
| 219 |
+
year = "2019",
|
| 220 |
+
address = "Minneapolis, Minnesota",
|
| 221 |
+
publisher = "Association for Computational Linguistics",
|
| 222 |
+
url = "https://aclanthology.org/N19-1421",
|
| 223 |
+
doi = "10.18653/v1/N19-1421",
|
| 224 |
+
pages = "4149--4158",
|
| 225 |
+
archivePrefix = "arXiv",
|
| 226 |
+
eprint = "1811.00937",
|
| 227 |
+
primaryClass = "cs",
|
| 228 |
+
}
|
| 229 |
+
```
|
| 230 |
+
|
| 231 |
+
### Contributions
|
| 232 |
+
|
| 233 |
+
Thanks to [@thomwolf](https://github.com/thomwolf), [@lewtun](https://github.com/lewtun), [@albertvillanova](https://github.com/albertvillanova), [@patrickvonplaten](https://github.com/patrickvonplaten) for adding this dataset.
|
source/gitattributes.original.txt
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.tgz 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
|