task_categories:text-retrieval source_datasets:irds/trec-spanish region:us
---
pretty_name: '`trec-spanish/trec4`'
viewer: false
source_datasets: ['irds/trec-spanish']
task_categories:
- text-retrieval
---

# Dataset Card for `trec-spanish/trec4`

The `trec-spanish/trec4` dataset, provided by the [ir-datasets](https://ir-datasets.com/) package.
For more information about the dataset, see the [documentation](https://ir-datasets.com/trec-spanish#trec-spanish/trec4).

# Data

This dataset provides:
 - `queries` (i.e., topics); count=25
 - `qrels`: (relevance assessments); count=13,109

 - For `docs`, use [`irds/trec-spanish`](https://huggingface.co/datasets/irds/trec-spanish)

## Usage

```python
from datasets import load_dataset

queries = load_dataset('irds/trec-spanish_trec4', 'queries')
for record in queries:
    record # {'query_id': ..., 'description_es1': ..., 'description_en1': ..., 'description_es2': ..., 'description_en2': ...}

qrels = load_dataset('irds/trec-spanish_trec4', 'qrels')
for record in qrels:
    record # {'query_id': ..., 'doc_id': ..., 'relevance': ..., 'iteration': ...}

```

Note that calling `load_dataset` will download the dataset (or provide access instructions when it's not public) and make a copy of the
data in 🤗 Dataset format.

## Citation Information

```
@inproceedings{Harman1995Trec4,
  title={Overview of the Fourth Text REtrieval Conference (TREC-4)},
  author={Donna Harman},
  booktitle={TREC},
  year={1995}
}
@misc{Rogers2000Spanish,
  title={TREC Spanish LDC2000T51},
  author={Rogers, Willie},
  year={2000},
  url={https://catalog.ldc.upenn.edu/LDC2000T51},
  publisher={Linguistic Data Consortium}
}
```
