Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    CastError
Message:      Couldn't cast
Question: string
Sentence: string
Label: int64
-- schema metadata --
huggingface: '{"info": {"features": {"Question": {"dtype": "string", "_ty' + 114
to
{'indices': Value('uint64')}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1827, in _prepare_split_single
                  for key, table in generator:
                                    ^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
                  for item in generator(*args, **kwargs):
                              ~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/arrow/arrow.py", line 75, in _generate_tables
                  yield Key(file_idx, batch_idx), self._cast_table(pa_table)
                                                  ~~~~~~~~~~~~~~~~^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/arrow/arrow.py", line 54, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              Question: string
              Sentence: string
              Label: int64
              -- schema metadata --
              huggingface: '{"info": {"features": {"Question": {"dtype": "string", "_ty' + 114
              to
              {'indices': Value('uint64')}
              because column names don't match
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1880, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

indices
uint64
291
581
1,077
553
502
48
156
1,038
343
633
361
649
362
998
299
648
447
400
374
1,006
906
534
548
634
861
815
954
224
268
706
1,087
408
315
702
978
866
888
480
30
610
586
830
872
437
244
223
662
237
854
420
1,051
449
389
45
1,065
928
638
604
539
568
73
1,043
60
419
26
434
426
935
679
1,012
335
997
755
957
128
937
741
46
238
204
338
624
543
521
482
169
508
359
563
596
824
201
513
896
991
710
836
1,036
616
1,023
End of preview.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

pretty_name: WikiQA Evaluation Dataset tags:

  • wikiqa
  • information-retrieval
  • retrieval
  • evaluation
  • question-answering
  • benchmark

WikiQA Evaluation Dataset

This dataset is a processed evaluation dataset derived from the WikiQA development split.

The dataset was constructed for evaluating query-document relevance in information retrieval and retrieval evaluation experiments.

Dataset Description

The original WikiQA dataset provides questions and candidate answer sentences with human-annotated relevance labels.

For this dataset, the WikiQA development split (WikiQA-dev.tsv) was used as the source data. Positive question-sentence pairs were extracted from the original annotations, and additional negative examples were randomly sampled to construct an evaluation dataset with a specified positive-to-negative ratio.

No model-based hard-negative mining was performed when constructing this evaluation dataset.

Source Dataset

This dataset is derived from the WikiQA dataset introduced by:

Yang, Yi, Wen-tau Yih, and Christopher Meek. "WikiQA: A Challenge Dataset for Open-Domain Question Answering." Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2015.

The original WikiQA corpus was released by Microsoft Research.

The source files used for preprocessing were obtained from the following Kaggle repository:

https://www.kaggle.com/datasets/saurabhshahane/wikiqa-corpus

The Kaggle dataset is used here as the source from which the WikiQA development split was obtained; the original dataset should be attributed to Microsoft Research and the original WikiQA authors.

Dataset Construction

The dataset was constructed from WikiQA-dev.tsv using the following procedure:

  1. The WikiQA development split was loaded as the source dataset.
  2. Question-sentence pairs labeled as relevant in the original WikiQA annotations were extracted as positive examples.
  3. Non-relevant question-sentence pairs were randomly sampled from the available negative examples.
  4. The number of negative examples was controlled to obtain the desired positive-to-negative ratio.
  5. The resulting examples were used as the evaluation dataset.

The purpose of this processing was to create a compact evaluation set while preserving the relevance annotations provided by WikiQA.

Negative Sampling

Negative examples in this dataset are randomly sampled negatives.

Dataset Structure

Each example contains the following fields:

Field Description
Question The question from WikiQA
Sentence A candidate answer sentence
label Binary relevance label

Where:

  • 1 indicates that the sentence is annotated as a relevant answer to the question.
  • 0 indicates that the sentence is not annotated as a relevant answer.

Update the field names above if the actual Hugging Face dataset uses different column names.

Intended Use

This dataset can be used for:

  • evaluating information retrieval models,
  • evaluating query-document relevance models,
  • evaluating retrieval evaluators,
  • comparing retrieval or reranking methods,
  • experiments involving binary relevance classification.

Although this dataset was originally created for retrieval-evaluation experiments, it is not restricted to a particular model or retrieval framework.

Relationship to the Original WikiQA Dataset

This repository contains a processed subset/reconstruction of the WikiQA development split, rather than the original WikiQA corpus.

The original question, sentence, and relevance annotations originate from WikiQA. The positive-example extraction and negative-example sampling used to construct this evaluation dataset were performed separately for this repository.

This dataset should therefore not be considered an official release of the WikiQA benchmark.

License

This dataset is derived from the WikiQA dataset distributed by Microsoft Research under the Open Use of Data Agreement v1.0 (O-UDA-1.0).

The original license permits use, modification, and distribution of the data subject to its terms.

Users of this dataset should review the original license and retain the required attribution and license information.

Original license:

Open Use of Data Agreement v1.0 (O-UDA-1.0)

License identifier: O-UDA-1.0

Attribution

Please attribute the original WikiQA dataset to Microsoft Research and the original authors:

Yang, Yi, Wen-tau Yih, and Christopher Meek. "WikiQA: A Challenge Dataset for Open-Domain Question Answering." Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2015.

Citation

If you use this dataset, please cite the original WikiQA paper:

@inproceedings{yang2015wikiqa,
  title     = {WikiQA: A Challenge Dataset for Open-Domain Question Answering},
  author    = {Yang, Yi and Yih, Wen-tau and Meek, Christopher},
  booktitle = {Proceedings of the 2015 Conference on Empirical Methods
               in Natural Language Processing},
  year      = {2015}
}

Acknowledgements

This dataset is based on the WikiQA corpus released by Microsoft Research.

The author of this repository is responsible only for the preprocessing and sampling procedure described above and does not claim ownership of the original WikiQA data.

Downloads last month
40