TREC Question Classification
Other names: tfds:trec
Overview
The Text REtrieval Conference (TREC) Question Classification dataset contains 5500 labeled questions in training set and another 500 for test set. The dataset has 6 labels, 47 level-2 labels.
Description (from the source)
The Text REtrieval Conference (TREC) Question Classification dataset contains 5500 labeled questions in training set and another 500 for test set. The dataset has 6 labels, 47 level-2 labels. Average length of each sentence is 10, vocabulary size of 8700. Data are collected from four sources: 4,500 English questions published by USC (Hovy et al., 2001), about 500 manually constructed questions for a few rare classes, 894 TREC 8 and TREC 9 questions, and also 500 questions from TREC 10 which serves as the test set.
- Domain
- NLP & Text
- Data type
- Text
- Tasks
- Text Classification
- Subfields
- Text classification
- Languages
- en
- Tags
- en, monolingual
Statistics and structure
- Number of samples
- 5,952
- Number of classes
- Not available
- Number of features
- Not available
- Number of subjects / cases
- Not available
- Number of images
- Not available
- Number of files
- Not available
- Size
- 350.79 KB
- Formats
- Not available
- Missing values
- Not available
Samples note: Sum of the splits: test, train. Size note: Size of the source files when downloaded (downloadSize).
Licence and access
- Licence
- Unknown — no explicit licence is stated in the sources relied on
- Licence documentation
- Unknown
- Commercial use
- Unknown
- Redistribution
- Unknown
- Attribution required
- Unknown
- Access method
- Visit the source
- Access restrictions
- Not available
- Terms of use
- Not available
No explicit licence was found in the sources used; do not assume any permission before reviewing the original source.
Always review the original publisher's terms before use; the explorer grants no licence.
Source and download
- Platform
- TensorFlow Datasets catalog
- Publisher / source
- TensorFlow Datasets (TFDS)
- Identifier at the source
- tfds:trec
- DOI
- Not available
- Metadata source
- tfds
- Metadata last updated
- 2026-11-14
- Original page
cogcomp.seas.upenn.edu - Documentation
www.tensorflow.org - Data card
www.tensorflow.org - API
storage.googleapis.com - Metadata source
storage.googleapis.com
The explorer does not host data files; all links point to the original publisher.
Related papers
-
Paper that introduced the datasetLi, Xin, Roth, Dan (2002). Learning Question Classifiers. COLING 2002: The 19th International Conference on Computational Linguistics. https://www.aclweb.org/anthology/C02-1150Listed for this dataset in the source catalogue · Paper link · Evidence
-
Paper that introduced the datasetHovy, Eduard, Gerber, Laurie, Hermjakob, Ulf, Lin, Chin-Yew, Ravichandran, Deepak (2001). Toward Semantics-Based Answer Pinpointing. Proceedings of the First International Conference on Human Language Technology Research. https://www.aclweb.org/anthology/H01-1069Listed for this dataset in the source catalogue · Paper link · Evidence
Cite the dataset
Built from recorded fields only; missing fields are omitted, not guessed. It is also good practice to cite the paper that introduced the dataset, if there is one.
TREC Question Classification [Data set]. (2001). TensorFlow Datasets (TFDS). https://cogcomp.seas.upenn.edu/Data/QA/QC/
[1] "TREC Question Classification," TensorFlow Datasets (TFDS), 2001. [Online]. Available: https://cogcomp.seas.upenn.edu/Data/QA/QC/
@misc{trecquestionclassification2001,
title = {{TREC Question Classification}},
year = {2001},
publisher = {TensorFlow Datasets (TFDS)},
url = {https://cogcomp.seas.upenn.edu/Data/QA/QC/},
howpublished = {\url{https://cogcomp.seas.upenn.edu/Data/QA/QC/}},
note = {Dataset. Accessed: 2026-11-26}
}Verification
- Verification status
- Partially verified
- Last link check
- Not checked yet
- Source verification date
- Not available
- Verification method
- Metadata imported from the official TensorFlow Datasets catalog (dataset_info.json on storage.googleapis.com and the tensorflow-datasets 4.9.10 package).
- Notes
- Counts and sizes come from the TFDS-prepared version 1.0.0. Licence not stated in TFDS metadata unless shown; check the original source. Original URL not yet checked for availability.
Source and check date of each field
| Field | Source | Date |
|---|---|---|
| original_url | TFDS dataset_info.json (location.urls) | 2026-11-14 |
| description | TFDS README.md / dataset_info.description | 2026-11-14 |
| number_of_samples | TFDS dataset_info.json splits[].numExamples (version 1.0.0) | 2026-11-14 |
| dataset_size | TFDS dataset_info.json downloadSize | 2026-11-14 |
Similar datasets
BoolQ
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.
Natural Instructions
# Description A compilation of 1600+ tasks phrased as natural instructions. The original task collection can be found at: https://github.com/allenai/natural-instructions.
AG News
AG is a collection of more than 1 million news articles. News articles have been gathered from more than 2000 news sources by ComeToMyHead in more…
IMDb Large Movie Review Dataset
Large Movie Review Dataset. This is a dataset for binary sentiment classification containing substantially more data than previous benchmark datasets.
Sentiment140
Sentiment140 allows you to discover the sentiment of a brand, product, or topic on Twitter. The data is a CSV with emoticons removed.
PAWS-X
This dataset contains 23,659 human translated PAWS evaluation pairs and 296,406 machine translated training pairs in six typologically distinct languages: * French * Spanish * German…
