Datasets:

Modalities:
Tabular
Text
Formats:
parquet
Languages:
Spanish
ArXiv:
Libraries:
Datasets
pandas
License:
messirve / README.md
ftvalentini's picture
Upload dataset
aa4c288 verified
|
raw
history blame
20.7 kB
metadata
language:
  - es
license: cc-by-nc-4.0
task_categories:
  - text-retrieval
pretty_name: MessIRve
dataset_info:
  - config_name: ar
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: test
        num_bytes: 3347551
        num_examples: 5780
      - name: train
        num_bytes: 12917011
        num_examples: 22560
    download_size: 20090483
    dataset_size: 16264562
  - config_name: bo
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 14642058
        num_examples: 25015
      - name: test
        num_bytes: 2767866
        num_examples: 4707
    download_size: 15471130
    dataset_size: 17409924
  - config_name: cl
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 12782903
        num_examples: 22330
      - name: test
        num_bytes: 3200254
        num_examples: 5564
    download_size: 14189360
    dataset_size: 15983157
  - config_name: co
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 14871584
        num_examples: 25589
      - name: test
        num_bytes: 3525180
        num_examples: 5992
    download_size: 16536184
    dataset_size: 18396764
  - config_name: cr
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 13709906
        num_examples: 23605
      - name: test
        num_bytes: 3367106
        num_examples: 5747
    download_size: 15873526
    dataset_size: 17077012
  - config_name: cu
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 12577997
        num_examples: 21805
      - name: test
        num_bytes: 2971491
        num_examples: 5053
    download_size: 14055252
    dataset_size: 15549488
  - config_name: do
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 16123501
        num_examples: 27470
      - name: test
        num_bytes: 3406703
        num_examples: 5719
    download_size: 17783516
    dataset_size: 19530204
  - config_name: ec
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 16024358
        num_examples: 27289
      - name: test
        num_bytes: 3895337
        num_examples: 6384
    download_size: 18372044
    dataset_size: 19919695
  - config_name: es
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 13320680
        num_examples: 23115
      - name: test
        num_bytes: 4344109
        num_examples: 7509
    download_size: 16134864
    dataset_size: 17664789
  - config_name: full
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
      - name: id_country
        dtype: float64
    splits:
      - name: train
        num_bytes: 333360243
        num_examples: 571120
      - name: test
        num_bytes: 95641160
        num_examples: 160099
    download_size: 181672348
    dataset_size: 429001403
  - config_name: gt
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 13488775
        num_examples: 23311
      - name: test
        num_bytes: 2522413
        num_examples: 4290
    download_size: 14238600
    dataset_size: 16011188
  - config_name: hn
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 15268575
        num_examples: 26736
      - name: test
        num_bytes: 3356442
        num_examples: 5690
    download_size: 17198684
    dataset_size: 18625017
  - config_name: mx
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 18443191
        num_examples: 31957
      - name: test
        num_bytes: 4907428
        num_examples: 8400
    download_size: 21625674
    dataset_size: 23350619
  - config_name: ni
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 16007834
        num_examples: 28064
      - name: test
        num_bytes: 3427465
        num_examples: 5902
    download_size: 18075240
    dataset_size: 19435299
  - config_name: no_country
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 206535557
        num_examples: 358014
      - name: test
        num_bytes: 59243367
        num_examples: 99385
    download_size: 114445241
    dataset_size: 265778924
  - config_name: pa
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 14785430
        num_examples: 25760
      - name: test
        num_bytes: 3411953
        num_examples: 5801
    download_size: 16896864
    dataset_size: 18197383
  - config_name: pe
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 14663157
        num_examples: 25531
      - name: test
        num_bytes: 3392379
        num_examples: 5804
    download_size: 15811974
    dataset_size: 18055536
  - config_name: pr
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 15346938
        num_examples: 26672
      - name: test
        num_bytes: 3681957
        num_examples: 6280
    download_size: 17739824
    dataset_size: 19028895
  - config_name: py
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 14178292
        num_examples: 24717
      - name: test
        num_bytes: 3145829
        num_examples: 5474
    download_size: 15787492
    dataset_size: 17324121
  - config_name: sv
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 14769527
        num_examples: 25920
      - name: test
        num_bytes: 3392693
        num_examples: 5821
    download_size: 16835738
    dataset_size: 18162220
  - config_name: us
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 13381212
        num_examples: 23197
      - name: test
        num_bytes: 2663961
        num_examples: 4535
    download_size: 13487908
    dataset_size: 16045173
  - config_name: uy
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 11850558
        num_examples: 20856
      - name: test
        num_bytes: 3147987
        num_examples: 5571
    download_size: 14105612
    dataset_size: 14998545
  - config_name: ve
    features:
      - name: id
        dtype: int64
      - name: query
        dtype: string
      - name: docid
        dtype: string
      - name: docid_text
        dtype: string
      - name: query_date
        dtype: date32
      - name: answer_date
        dtype: date32
      - name: match_score
        dtype: float32
      - name: expanded_search
        dtype: bool
      - name: answer_type
        dtype: string
    splits:
      - name: train
        num_bytes: 15672822
        num_examples: 26730
      - name: test
        num_bytes: 3680937
        num_examples: 6126
    download_size: 17526276
    dataset_size: 19353759
configs:
  - config_name: ar
    data_files:
      - split: train
        path: ar/train-*
      - split: test
        path: ar/test-*
  - config_name: bo
    data_files:
      - split: train
        path: bo/train-*
      - split: test
        path: bo/test-*
  - config_name: cl
    data_files:
      - split: train
        path: cl/train-*
      - split: test
        path: cl/test-*
  - config_name: co
    data_files:
      - split: train
        path: co/train-*
      - split: test
        path: co/test-*
  - config_name: cr
    data_files:
      - split: train
        path: cr/train-*
      - split: test
        path: cr/test-*
  - config_name: cu
    data_files:
      - split: train
        path: cu/train-*
      - split: test
        path: cu/test-*
  - config_name: do
    data_files:
      - split: train
        path: do/train-*
      - split: test
        path: do/test-*
  - config_name: ec
    data_files:
      - split: train
        path: ec/train-*
      - split: test
        path: ec/test-*
  - config_name: es
    data_files:
      - split: train
        path: es/train-*
      - split: test
        path: es/test-*
  - config_name: full
    data_files:
      - split: train
        path: full/train-*
      - split: test
        path: full/test-*
  - config_name: gt
    data_files:
      - split: train
        path: gt/train-*
      - split: test
        path: gt/test-*
  - config_name: hn
    data_files:
      - split: train
        path: hn/train-*
      - split: test
        path: hn/test-*
  - config_name: mx
    data_files:
      - split: train
        path: mx/train-*
      - split: test
        path: mx/test-*
  - config_name: ni
    data_files:
      - split: train
        path: ni/train-*
      - split: test
        path: ni/test-*
  - config_name: no_country
    data_files:
      - split: train
        path: no_country/train-*
      - split: test
        path: no_country/test-*
  - config_name: pa
    data_files:
      - split: train
        path: pa/train-*
      - split: test
        path: pa/test-*
  - config_name: pe
    data_files:
      - split: train
        path: pe/train-*
      - split: test
        path: pe/test-*
  - config_name: pr
    data_files:
      - split: train
        path: pr/train-*
      - split: test
        path: pr/test-*
  - config_name: py
    data_files:
      - split: train
        path: py/train-*
      - split: test
        path: py/test-*
  - config_name: sv
    data_files:
      - split: train
        path: sv/train-*
      - split: test
        path: sv/test-*
  - config_name: us
    data_files:
      - split: train
        path: us/train-*
      - split: test
        path: us/test-*
  - config_name: uy
    data_files:
      - split: train
        path: uy/train-*
      - split: test
        path: uy/test-*
  - config_name: ve
    data_files:
      - split: train
        path: ve/train-*
      - split: test
        path: ve/test-*

Dataset Card for MessIRve

MessIRve is a large-scale dataset for Spanish IR, designed to better capture the information needs of Spanish speakers across different countries.

Queries are obtained from Google's autocomplete API (www.google.com/complete), and relevant documents are Spanish Wikipedia paragraphs containing answers from Google Search "featured snippets". This data collection strategy is inspired by GooAQ.

The files presented here are the qrels. The style in which they are displayed makes them easier to explore, as it includes the full texts of documents and queries.

Dataset Details

Dataset Description

  • Language(s) (NLP): Spanish
  • License: CC BY-NC 4.0. The dataset should not be used for any commercial purpose.

Dataset Sources

Uses

The dataset is meant to be used to train and evaluate Spanish IR models.

Dataset Structure

Data Instances

A typical instance of one subset of the dataset looks like:

{
  'id': 4918739,
  'query': 'a cual dedo se pone el anillo de compromiso',
  'docid': '956254#2',
  'docid_text': 'Pero desde hace cientos de años, se dice que la vena amoris pasa por el dedo anular izquierdo que conecta directamente al corazón (téngase en cuenta que la vena amoris no existe realmente). Tradicionalmente, es ofrecido por el hombre como regalo a su novia mientras o cuando ella accede a la proposición de matrimonio. Representa una aceptación formal del futuro compromiso.',
  'query_date': "2024-03-30",
  'answer_date': "2024-04-19",
  'match_score': 0.74,
  'expanded_search': false,
  'answer_type': 'feat_snip'
}

Data Fields

  • id: query id
  • query: query text
  • docid: relevant document id in the corpus
  • docid_text: relevant document text
  • query_date: date the query was extracted
  • answer_date: date the answer was extracted
  • match_score: the longest string in the SERP answer that is a substring of the matched document text, as a ratio of the length of the SERP answer
  • expanded_search: if the SERP returned a message indicating that the search was "expanded" with additional results ("se incluyen resultados de...")
  • answer_type: type of answer extracted (feat_snippet, featured snippets, are the most important)

Data Splits

We extract queries from Google's autocomplete API for 20 countries with Spanish as an official language, plus the United States. Equatorial Guinea was the only country left out because it doesn't have a Google domain.

Some API results were independent of the country-specific domain, many queries are not specific of any country. These are included under the country label none.

Queries from none were combined with the set of unique queries from all countries and included in the full subset. Unlike the country-specific sets, in the full set some queries can have multiple relevant documents because the same query may return different featured snippets in different country domains.

The dataset is partitioned into training and test queries in such a way that the Wikipedia article to which the paragraph belongs is present in only one of the splits. The partitioning was done by country, with about 20% of the articles assigned to the test set. Moreover, test instances always have match_score = 1 and expanded_search = False.

For further detail, such as statistics for each subset and split, see the paper.

Citation

BibTeX:

@article{valentini2024messirve,
      title={MessIRve: A Large-Scale Spanish Information Retrieval Dataset}, 
      author={Francisco Valentini and Viviana Cotik and Damián Furman and Ivan Bercovich and Edgar Altszyler and Juan Manuel Pérez},
      year={2024},
      eprint={2409.05994},
      journal={arxiv:2409.05994},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2409.05994}, 
}

APA:

Francisco Valentini, Viviana Cotik, Damián Furman, Ivan Bercovich, Edgar Altszyler, & Juan Manuel Pérez (2024). MessIRve: A Large-Scale Spanish Information Retrieval Dataset. arxiv:2409.05994.