--- language: - ko license: cc-by-nc-sa-4.0 task_categories: - visual-question-answering - multiple-choice task_ids: - multiple-choice-qa pretty_name: KorMedMCQA-V size_categories: - 1K" } ] ``` The `image_base64` field contains a full data URL. ## Usage ### Loading the Dataset ```python from datasets import load_dataset dataset = load_dataset("seongsubae/KorMedMCQA-V", name="doctor", split="test_full") for sample in dataset: print(f"Question: {sample['question']}") print(f"Answer: {sample['answer']}") ``` ### Viewing Images ```python import json import base64 import io from PIL import Image sample = dataset[0] images = json.loads(sample["images"]) for img in images: data_url = img["image_base64"] header, b64_str = data_url.split("base64,", 1) img_bytes = base64.b64decode(b64_str) pil_image = Image.open(io.BytesIO(img_bytes)) pil_image.show() print(f"Modality: {img['modality']}, Size: {pil_image.size}") ``` ### Combining with KorMedMCQA To evaluate on both text-only and image-dependent questions, combine the `test` split with [sean0042/KorMedMCQA](https://huggingface.co/datasets/sean0042/KorMedMCQA): - `KorMedMCQA` (text-only) contains 2022-2024 data; filter to **2022-2023** for alignment - `KorMedMCQA-V` (multimodal) contains 2022-2023 data - Remove duplicate UID `doctor-2022-2-64` to avoid double-counting ```python from datasets import load_dataset # Load both datasets (test split = 2022-2023) kormedmcqa = load_dataset("sean0042/KorMedMCQA", name="doctor", split="test") kormedmcqa_v = load_dataset("seongsubae/KorMedMCQA-V", name="doctor", split="test") # Filter KorMedMCQA for 2022-2023 and remove duplicate UIDs allowed_years = [2022, 2023] excluded_uids = ["doctor-2022-2-64"] kormedmcqa_filtered = [ s for s in kormedmcqa if s["year"] in allowed_years and f"{s['subject']}-{s['year']}-{s['period']}-{s['q_number']}" not in excluded_uids ] print(f"Text-only: {len(kormedmcqa_filtered)}, Multimodal: {len(kormedmcqa_v)}") ``` For evaluation code, see the [GitHub repository](https://github.com/baeseongsu/kormedmcqa_v). ## License This dataset is licensed under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/). ## Citation ```bibtex @dataset{kormedmcqa-v, title = {KorMedMCQA-V: A Multimodal Benchmark for Evaluating Vision-Language Models on the Korean Medical Licensing Examination}, author = {Byungjin Choi and Seongsu Bae and Sunjun Kweon and Edward Choi}, year = {2025}, publisher = {HuggingFace}, version = {1.0}, } ``` ## Contact For questions or issues, please contact Byungjin Choi ([choi328328@ajou.ac.kr](mailto:choi328328@ajou.ac.kr)) or Seongsu Bae ([seongsu@kaist.ac.kr](mailto:seongsu@kaist.ac.kr)).