Code and artifacts for the paper: "U-MIRAGE: Benchmarking Chain-of-Thought Reasoning for Urdu Medical QA".
This repository has been cleaned for publication:
- notebook outputs/tracebacks removed
- local machine paths and personal identifiers removed
- dataset-specific notebook cells removed from the translation workflow
- duplicate notebook copies removed
data_load_in_csv.ipynb: load and normalize benchmark data into tabular formatdata_clean_1.ipynb: base cleaning and structural validation stepsdata_clean_2.ipynb: Roman Urdu quality checks and dataset consistency validationmirage_modify.ipynb: post-processing and dataset modification utilitiestranslation.ipynb: translation/back-translation workflow (publication-safe cells only)code-switch-stats.ipynb: code-switch and similarity analysisall_configurations_accuracy.csv: configuration-level accuracy summarybenchmark_ru_translated.csv: translated benchmark databacktranslation_samples_with_rouge.csv: sampled backtranslation outputs with ROUGEbacktranslation_rouge_scores.csv: aggregate ROUGE score reportpaper/UMirage__Benchmarking_Chain_of_Thought_Reasoning_in_Large_Language_Models__1_.pdf: publication PDFrequirements.txt: Python dependenciesCITATION.cff: citation metadataLICENSE: project license
Use Python 3.10+.
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt- Run
data_load_in_csv.ipynb. - Run
data_clean_1.ipynb. - Run
data_clean_2.ipynb. - Run
mirage_modify.ipynb(if applying post-processing changes). - Run
translation.ipynbfor translation and backtranslation evaluation. - Run
code-switch-stats.ipynbfor code-switch/similarity analyses. - Review generated CSV artifacts in the repository root.
If you use this repository, cite the paper PDF in paper/ and metadata in CITATION.cff.
Code is released under the MIT License (see LICENSE).