NLP & Text Text classification Partially verified

TREC Question Classification

Other names: tfds:trec

Visit the original source

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

The explorer does not host data files; all links point to the original publisher.

Related papers

  1. Paper that introduced the dataset
    Li, Xin, Roth, Dan (2002). Learning Question Classifiers. COLING 2002: The 19th International Conference on Computational Linguistics. https://www.aclweb.org/anthology/C02-1150
    Listed for this dataset in the source catalogue · Paper link · Evidence
  2. Paper that introduced the dataset
    Hovy, 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-1069
    Listed 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.

APA 7
TREC Question Classification [Data set]. (2001). TensorFlow Datasets (TFDS). https://cogcomp.seas.upenn.edu/Data/QA/QC/
IEEE
[1] "TREC Question Classification," TensorFlow Datasets (TFDS), 2001. [Online]. Available: https://cogcomp.seas.upenn.edu/Data/QA/QC/
BibTeX
@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
FieldSourceDate
original_urlTFDS dataset_info.json (location.urls)2026-11-14
descriptionTFDS README.md / dataset_info.description2026-11-14
number_of_samplesTFDS dataset_info.json splits[].numExamples (version 1.0.0)2026-11-14
dataset_sizeTFDS dataset_info.json downloadSize2026-11-14

Similar datasets

NLP & Text Partially verified

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.

Samples
12,697
Type
Text
Licence
Unknown
Source
TensorFlow Datasets catalog
NLP & Text Partially verified

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.

Samples
5,040,134
Type
Text
Licence
Unknown
Source
TensorFlow Datasets catalog
NLP & Text Partially verified

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…

Samples
127,600
Type
Text
Licence
Unknown
Source
TensorFlow Datasets catalog
NLP & Text Partially verified

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.

Samples
Not available
Type
Text
Licence
Unknown
Source
TensorFlow Datasets catalog
NLP & Text Partially verified

Sentiment140

Sentiment140 allows you to discover the sentiment of a brand, product, or topic on Twitter. The data is a CSV with emoticons removed.

Samples
1,600,498
Type
Text
Licence
Unknown
Source
TensorFlow Datasets catalog
NLP & Text Partially verified

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…

Samples
Not available
Type
Text
Licence
Unknown
Source
TensorFlow Datasets catalog