Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    ValueError
Message:      Invalid string class label data
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 149, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 129, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 544, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3052, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2572, in __iter__
                  example = _apply_feature_types_on_example(
                      example, self.features, token_per_repo_id=self.token_per_repo_id
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2489, in _apply_feature_types_on_example
                  encoded_example = features.encode_example(example)
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 2244, in encode_example
                  return encode_nested_example(self, example)
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1518, in encode_nested_example
                  {k: encode_nested_example(schema[k], obj.get(k), level=level + 1) for k in schema}
                      ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1541, in encode_nested_example
                  return schema.encode_example(obj) if obj is not None else None
                         ~~~~~~~~~~~~~~~~~~~~~^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1210, in encode_example
                  example_data = self.str2int(example_data)
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1147, in str2int
                  output = [self._strval2int(value) for value in values]
                            ~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1168, in _strval2int
                  raise ValueError(f"Invalid string class label {value}")
              ValueError: Invalid string class label data

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.

dvilares/head_qa(複製)

データの内容

スペインの医療専門職に就くための試験の問題を集めた、多肢選択式の医療 QA のデータ。1 行が 1 問で、問題文 qtext、選択肢 answers、正解の番号 ra、分野 category などから成る。設定は es(スペイン語)と en(英語)の 2 つで、分野は医学・看護学・心理学・化学・薬理学・生物学にわたる。カードには、版 2 が別に公開されたとの案内がある。

データの概要

項目 値
行数 13,530(2 構成・6 分割の合計)
列数 8
容量 79.38 MB(ファイル 4 本)
ファイルの形式 zip 1、py 1
言語 en, es
公開 public

構成と分割

構成(config) 分割(split)ごとの行数 列数
es train 2,657、test 2,742、validation 1,366 8
en train 2,657、test 2,742、validation 1,366 8

列(構成 es。どの構成も同じ列)

列 型
name string
year string
category string
qid int32
qtext string
ra int32
image image
answers list<struct>

行数と列は元のカードの YAML(dataset_info)の記載。データセットビューアでは読めなかった。全データセットの一覧は HYUKI5/dataset-catalog にある。

複製について

dvilares/head_qa をリビジョン d444ead98dd50d7949703c1662c7880a5c1ea77d の時点でそのまま複製したもの。中身は変えていない。判断モデル Laya(convaiinnovations/laya)の微調整に使う候補として、調査メモ(Laya 学習用データセット調査)に載せたデータを集めている。

出典

論文

アノテーションの方法

作成の根拠

このデータセットを作成した動機として、論文の要旨を以下に示す。

"HEAD-QA を提示する。これは、複雑な推論の研究を促すための多肢選択式の質問応答のテストベッドである。問題は、スペインの医療制度において専門職に就くための試験に由来しており、高度に専門的な人間にとっても難しい。続いて、情報検索とニューラルな手法を用いた単一言語(スペイン語)と言語横断(英語へ)の実験を検討する。次のことを示す: (i) HEAD-QA は現在の手法に困難をもたらすこと、(ii) 結果は人間の性能から大きく遅れており、今後の研究のベンチマークとしての有用性を示していること。"

初期のデータ収集と正規化

問題は、スペインの医療制度において専門職に就くための試験に由来しており、Ministerio de Sanidad, Consumo y Bienestar Social が作成している。同省は過去 5 年分の試験へ直接のアクセスも提供している(スペイン語)。

アノテーション

このデータセットには追加のアノテーションは含まれない。

アノテーションの手順

[N/A]

データセットの作成者

このデータセットは David Vilares と Carlos Gómez-Rodríguez が作成した。

微調整に使うときの注意

  • 調査メモの台帳での区分: A(許諾型のライセンスだけで、疑義の注記が無い)。区分は記載の文言で機械的に付けたもので、法的な判定ではない。学習に入れる前に元のカードとライセンスの原文で確かめる。
  • Laya の入力は 2,048 token まで(ModernBERT-large / mmBERT)。長い本文は先頭から黙って切られるので、切れる行は事前に除くか、要約・切り出しをしてから入れる。
  • 分割は記事・文書単位で行い、同じ本文から作った別の問いを学習側と較正側に分けない。温度と閾値は学習に使っていない分割で別々に当てる。

調査メモの記述

メモ 節 ライセンス(記載) 確認 注記
jev_sources_tasksource_bekko.csv CSV(tasksource-jev-typed-decisions) mit, other / license_use=commercial 確認済 license_use=commercial / [Jev 元データ source] source_annotation_converted(deterministic recast; no model r

元のカード(日本語訳)

以下は元のデータセットのカードの本文を日本語に訳したもの(機械翻訳)。訳に疑問があるときは、末尾の原文を確かめる。


データセットカード: HEAD-QA

最近の更新

HEAD-QA のバージョン 2 が公開された。今回のリリースでは問題数が増え、より新しい年を対象とし、追加の言語に対応した: https://huggingface.co/datasets/alesi12/head_qa_v2

目次

  • データセットの説明
    • データセットの概要
    • 対応タスクとリーダーボード
    • 言語
  • データセットの構造
    • データのインスタンス
    • データのフィールド
    • データの分割
  • データセットの作成
    • 作成の根拠
    • ソースデータ
    • アノテーション
    • 個人情報と機微な情報
  • データ利用上の考慮事項
    • データセットの社会的影響
    • バイアスについての議論
    • その他の既知の限界
  • 追加情報
    • データセットの作成者
    • ライセンス情報
    • 引用情報
    • 貢献

データセットの説明

データセットの概要

HEAD-QA は多肢選択式の医療データセットである。問題は、スペインの医療制度において専門職に就くための試験に由来しており、高度に専門的な人間にとっても難しい。問題は Ministerio de Sanidad, Consumo y Bienestar Social が作成しており、同省は過去 5 年分の試験へ直接のアクセスも提供している(スペイン語)。

Date of the last update of the documents object of the reuse: January, 14th, 2019.

HEAD-QA は、これらの問題を自然言語処理のコミュニティが利用しやすくすることを目指している。より良い QA システムの実現に役立つ資源になることを願っている。このデータセットには次の分野の問題が含まれる:

  • 医学
  • 看護学
  • 心理学
  • 化学
  • 薬理学
  • 生物学

対応タスクとリーダーボード

  • multiple-choice-qa: HEAD-QA は、複雑な推論の研究を促すための多肢選択式の質問応答のテストベッドである。

言語

問題と解答は、スペイン語(BCP-47 コード: 'es-ES')と英語(BCP-47 コード: 'en')の両方で利用できる。

既定の言語はスペイン語である:

from datasets import load_dataset

data_es = load_dataset('head_qa')

data_en = load_dataset('head_qa', 'en')

データセットの構造

データのインスタンス

典型的なデータの 1 件は、質問 qtext、複数の選択肢 atext、正解 ra から成る。

HEAD-QA データセットの例は次のとおり:

{
'qid': '1', 
'category': 'biology', 
'qtext': 'Los potenciales postsinápticos excitadores:',
'answers': [
    {
        'aid': 1, 
        'atext': 'Son de tipo todo o nada.'
    }, 
    {
        'aid': 2, 
        'atext': 'Son hiperpolarizantes.'
    },
    {
        'aid': 3, 
        'atext': 'Se pueden sumar.'
    },
    {
        'aid': 4, 
        'atext': 'Se propagan a largas distancias.'
    },
    {
        'aid': 5, 
        'atext': 'Presentan un periodo refractario.'
    }],
'ra': '3',
'image': <PIL.PngImagePlugin.PngImageFile image mode=RGB size=675x538 at 0x1B42B6A1668>,
'name': 'Cuaderno_2013_1_B',
'year': '2013'
}

データのフィールド

  • qid: 問題の識別子(int)
  • category: 問題の分野: "medicine", "nursing", "psychology", "chemistry", "pharmacology", "biology"
  • qtext: 問題文
  • answers: 選択肢のリスト。リストの各要素は 2 つのキーをもつ辞書である:
    • aid: 選択肢の識別子(int)
    • atext: 選択肢の文
  • ra: 正解の aid(int)
  • image: (任意)画像を含む PIL.Image.Image オブジェクト。画像の列にアクセスすると(例: dataset[0]["image"])、画像ファイルは自動的にデコードされる。多数の画像ファイルのデコードには大きな時間がかかることがある。そのため、"image" の列を読む前に、まずサンプルのインデックスを指定することが重要である。すなわち dataset["image"][0] よりも 常に dataset[0]["image"] を使うべきである。
  • name: 問題の抽出元となった試験の名前
  • year: 試験が実施された年

データの分割

データは、2 つの言語それぞれについて train、validation、test の各セットに分けられている。分割のサイズは次のとおり。

Train Val Test
スペイン語 2657 1366 2742
英語 2657 1366 2742

データセットの作成

作成の根拠

このデータセットを作成した動機として、論文の要旨を以下に示す。

"HEAD-QA を提示する。これは、複雑な推論の研究を促すための多肢選択式の質問応答のテストベッドである。問題は、スペインの医療制度において専門職に就くための試験に由来しており、高度に専門的な人間にとっても難しい。続いて、情報検索とニューラルな手法を用いた単一言語(スペイン語)と言語横断(英語へ)の実験を検討する。次のことを示す: (i) HEAD-QA は現在の手法に困難をもたらすこと、(ii) 結果は人間の性能から大きく遅れており、今後の研究のベンチマークとしての有用性を示していること。"

ソースデータ

初期のデータ収集と正規化

問題は、スペインの医療制度において専門職に就くための試験に由来しており、Ministerio de Sanidad, Consumo y Bienestar Social が作成している。同省は過去 5 年分の試験へ直接のアクセスも提供している(スペイン語)。

ソースデータの言語の生成者は誰か?

このデータセットは David Vilares と Carlos Gómez-Rodríguez が作成した。

アノテーション

このデータセットには追加のアノテーションは含まれない。

アノテーションの手順

[N/A]

アノテーターは誰か?

[N/A]

個人情報と機微な情報

[More Information Needed]

データ利用上の考慮事項

データセットの社会的影響

[More Information Needed]

バイアスについての議論

[More Information Needed]

その他の既知の限界

[More Information Needed]

追加情報

データセットの作成者

このデータセットは David Vilares と Carlos Gómez-Rodríguez が作成した。

ライセンス情報

HEAD-QA のホームページ によれば:

Ministerio de Sanidad, Consumo y Biniestar Social は、試験とその内容の再配布を、一定の条件: のもとで認めている。

  • 情報の内容を改変することは、いかなる場合も禁止される。
  • 利用者は、再利用の対象となる文書の出典を明記する義務がある。
  • 利用者は、再利用の対象となる文書の最終更新日を明記する義務がある。

HEAD-QA のリポジトリ によれば:

このデータセットは MIT License のもとで提供される。

引用情報

@inproceedings{vilares-gomez-rodriguez-2019-head,
    title = "{HEAD}-{QA}: A Healthcare Dataset for Complex Reasoning",
    author = "Vilares, David  and
      G{\'o}mez-Rodr{\'i}guez, Carlos",
    booktitle = "Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics",
    month = jul,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P19-1092",
    doi = "10.18653/v1/P19-1092",
    pages = "960--966",
    abstract = "We present HEAD-QA, a multi-choice question answering testbed to encourage research on complex reasoning. The questions come from exams to access a specialized position in the Spanish healthcare system, and are challenging even for highly specialized humans. We then consider monolingual (Spanish) and cross-lingual (to English) experiments with information retrieval and neural techniques. We show that: (i) HEAD-QA challenges current methods, and (ii) the results lag well behind human performance, demonstrating its usefulness as a benchmark for future work.",
}

貢献

このデータセットを追加した @mariagrandury に感謝する。

原文(英語)

Dataset Card for HEAD-QA

Recent updates

Version 2 of the HEAD-QA dataset is now available. This release includes a larger set of questions, spans more recent years, and adds support for additional languages: https://huggingface.co/datasets/alesi12/head_qa_v2

Dataset Summary

HEAD-QA is a multi-choice HEAlthcare Dataset. The questions come from exams to access a specialized position in the Spanish healthcare system, and are challenging even for highly specialized humans. They are designed by the Ministerio de Sanidad, Consumo y Bienestar Social, who also provides direct access to the exams of the last 5 years (in Spanish).

Date of the last update of the documents object of the reuse: January, 14th, 2019.

HEAD-QA tries to make these questions accesible for the Natural Language Processing community. We hope it is an useful resource towards achieving better QA systems. The dataset contains questions about the following topics:

  • Medicine
  • Nursing
  • Psychology
  • Chemistry
  • Pharmacology
  • Biology

Supported Tasks and Leaderboards

  • multiple-choice-qa: HEAD-QA is a multi-choice question answering testbed to encourage research on complex reasoning.

Languages

The questions and answers are available in both Spanish (BCP-47 code: 'es-ES') and English (BCP-47 code: 'en').

The language by default is Spanish:

from datasets import load_dataset

data_es = load_dataset('head_qa')

data_en = load_dataset('head_qa', 'en')

Dataset Structure

Data Instances

A typical data point comprises a question qtext, multiple possible answers atext and the right answer ra.

An example from the HEAD-QA dataset looks as follows:

{
'qid': '1', 
'category': 'biology', 
'qtext': 'Los potenciales postsinápticos excitadores:',
'answers': [
    {
        'aid': 1, 
        'atext': 'Son de tipo todo o nada.'
    }, 
    {
        'aid': 2, 
        'atext': 'Son hiperpolarizantes.'
    },
    {
        'aid': 3, 
        'atext': 'Se pueden sumar.'
    },
    {
        'aid': 4, 
        'atext': 'Se propagan a largas distancias.'
    },
    {
        'aid': 5, 
        'atext': 'Presentan un periodo refractario.'
    }],
'ra': '3',
'image': <PIL.PngImagePlugin.PngImageFile image mode=RGB size=675x538 at 0x1B42B6A1668>,
'name': 'Cuaderno_2013_1_B',
'year': '2013'
}

Data Fields

  • qid: question identifier (int)
  • category: category of the question: "medicine", "nursing", "psychology", "chemistry", "pharmacology", "biology"
  • qtext: question text
  • answers: list of possible answers. Each element of the list is a dictionary with 2 keys:
    • aid: answer identifier (int)
    • atext: answer text
  • ra: aid of the right answer (int)
  • image: (optional) a PIL.Image.Image object containing the image. Note that when accessing the image column: dataset[0]["image"] the image file is automatically decoded. Decoding of a large number of image files might take a significant amount of time. Thus it is important to first query the sample index before the "image" column, i.e. dataset[0]["image"] should always be preferred over dataset["image"][0]
  • name: name of the exam from which the question was extracted
  • year: year in which the exam took place

Data Splits

The data is split into train, validation and test set for each of the two languages. The split sizes are as follow:

Train Val Test
Spanish 2657 1366 2742
English 2657 1366 2742

Dataset Creation

Curation Rationale

As motivation for the creation of this dataset, here is the abstract of the paper:

"We present HEAD-QA, a multi-choice question answering testbed to encourage research on complex reasoning. The questions come from exams to access a specialized position in the Spanish healthcare system, and are challenging even for highly specialized humans. We then consider monolingual (Spanish) and cross-lingual (to English) experiments with information retrieval and neural techniques. We show that: (i) HEAD-QA challenges current methods, and (ii) the results lag well behind human performance, demonstrating its usefulness as a benchmark for future work."

Source Data

Initial Data Collection and Normalization

The questions come from exams to access a specialized position in the Spanish healthcare system, and are designed by the Ministerio de Sanidad, Consumo y Bienestar Social, who also provides direct access to the exams of the last 5 years (in Spanish).

Who are the source language producers?

The dataset was created by David Vilares and Carlos Gómez-Rodríguez.

Annotations

The dataset does not contain any additional annotations.

Annotation process

[N/A]

Who are the annotators?

[N/A]

Personal and Sensitive Information

[More Information Needed]

Considerations for Using the Data

Social Impact of Dataset

[More Information Needed]

Discussion of Biases

[More Information Needed]

Other Known Limitations

[More Information Needed]

Additional Information

Dataset Curators

The dataset was created by David Vilares and Carlos Gómez-Rodríguez.

Licensing Information

According to the HEAD-QA homepage:

The Ministerio de Sanidad, Consumo y Biniestar Social allows the redistribution of the exams and their content under certain conditions:

  • The denaturalization of the content of the information is prohibited in any circumstance.
  • The user is obliged to cite the source of the documents subject to reuse.
  • The user is obliged to indicate the date of the last update of the documents object of the reuse.

According to the HEAD-QA repository:

The dataset is licensed under the MIT License.

Citation Information

@inproceedings{vilares-gomez-rodriguez-2019-head,
    title = "{HEAD}-{QA}: A Healthcare Dataset for Complex Reasoning",
    author = "Vilares, David  and
      G{\'o}mez-Rodr{\'i}guez, Carlos",
    booktitle = "Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics",
    month = jul,
    year = "2019",
    address = "Florence, Italy",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P19-1092",
    doi = "10.18653/v1/P19-1092",
    pages = "960--966",
    abstract = "We present HEAD-QA, a multi-choice question answering testbed to encourage research on complex reasoning. The questions come from exams to access a specialized position in the Spanish healthcare system, and are challenging even for highly specialized humans. We then consider monolingual (Spanish) and cross-lingual (to English) experiments with information retrieval and neural techniques. We show that: (i) HEAD-QA challenges current methods, and (ii) the results lag well behind human performance, demonstrating its usefulness as a benchmark for future work.",
}

Contributions

Thanks to @mariagrandury for adding this dataset.

Downloads last month
53