# bool_q

<br />

- **Description**:

BoolQ is a question answering dataset for yes/no questions containing 15942
examples. These questions are naturally occurring, they are generated in
unprompted and unconstrained settings.

Each example is a triplet of (question, passage, answer), with the title of the
page as optional additional context. The text-pair classification setup is
similar to existing natural language inference tasks.

- **Additional Documentation** :
  [Explore on Papers With Code](https://paperswithcode.com/dataset/boolq)

- **Homepage** :
  <https://github.com/google-research-datasets/boolean-questions>

- **Source code** :
  [`tfds.datasets.bool_q.Builder`](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/datasets/bool_q/bool_q_dataset_builder.py)

- **Versions**:

  - **`1.0.0`** (default): No release notes.
- **Download size** : `8.36 MiB`

- **Dataset size** : `8.51 MiB`

- **Auto-cached**
  ([documentation](https://www.tensorflow.org/datasets/performances#auto-caching)):
  Yes

- **Splits**:

| Split | Examples |
|---|---|
| `'train'` | 9,427 |
| `'validation'` | 3,270 |

- **Feature structure**:

    FeaturesDict({
        'answer': bool,
        'passage': Text(shape=(), dtype=string),
        'question': Text(shape=(), dtype=string),
        'title': Text(shape=(), dtype=string),
    })

- **Feature documentation**:

| Feature | Class | Shape | Dtype | Description |
|---|---|---|---|---|
|   | FeaturesDict |   |   |   |
| answer | Tensor |   | bool |   |
| passage | Text |   | string |   |
| question | Text |   | string |   |
| title | Text |   | string |   |

- **Supervised keys** (See
  [`as_supervised` doc](https://www.tensorflow.org/datasets/api_docs/python/tfds/load#args)):
  `None`

- **Figure**
  ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):
  Not supported.

- **Examples**
  ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):

<button id="displaydataframe">Display examples...</button>

- **Citation**:

    @inproceedings{clark2019boolq,
      title =     {BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questions},
      author =    {Clark, Christopher and Lee, Kenton and Chang, Ming-Wei, and Kwiatkowski, Tom and Collins, Michael, and Toutanova, Kristina},
      booktitle = {NAACL},
      year =      {2019},
    }