Jupyter Notebook
1
114 commits
updated Sep 26, 2025
This project evaluates open-source large language models (LLMs) for English-to-Spanish medical text translation, introducing MedCOD — a novel framework that enriches LLM prompts with structured medical knowledge from UMLS and LLM-KB (a large language model knowledge base). We explore different prompting strategies and fine-tuning techniques to improve translation accuracy and robustness in clinical contexts.
We compare multiple open-source LLMs on the ESPACMedlinePlus dataset, using three prompting strategies enhanced with contextual medical knowledge. Figure 1 illustrates the overall pipeline, including dataset preprocessing, prompt construction, and model evaluation.
git clone https://github.com/shahidul034/NoteAid-translation-EngToSpa
cd MedCOD
pip install -r requirements.txt
Train Qwen model:
python NoteAid-translation-EngToSpa/code/training_qwen2.py
Train LLaMA model:
python NoteAid-translation-EngToSpa/code/training_script.py
Run inference with LLaMA model:
python NoteAid-translation-EngToSpa/code/inference_script.py
Run inference with NLLB model:
Use the Jupyter notebook for GPT-4 Mini inference and UMLS data access:
NoteAid-translation-EngToSpa/code/gpt-4mini com.ipynb
Contributions are welcome! Please open issues or submit pull requests for bug fixes, improvements, or new features.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions or collaboration, please contact:
Md Shahidul Salim — [email protected]
Jupyter Notebook
1
114 commits
updated Sep 26, 2025
This project evaluates open-source large language models (LLMs) for English-to-Spanish medical text translation, introducing MedCOD — a novel framework that enriches LLM prompts with structured medical knowledge from UMLS and LLM-KB (a large language model knowledge base). We explore different prompting strategies and fine-tuning techniques to improve translation accuracy and robustness in clinical contexts.
We compare multiple open-source LLMs on the ESPACMedlinePlus dataset, using three prompting strategies enhanced with contextual medical knowledge. Figure 1 illustrates the overall pipeline, including dataset preprocessing, prompt construction, and model evaluation.
git clone https://github.com/shahidul034/NoteAid-translation-EngToSpa
cd MedCOD
pip install -r requirements.txt
Train Qwen model:
python NoteAid-translation-EngToSpa/code/training_qwen2.py
Train LLaMA model:
python NoteAid-translation-EngToSpa/code/training_script.py
Run inference with LLaMA model:
python NoteAid-translation-EngToSpa/code/inference_script.py
Run inference with NLLB model:
Use the Jupyter notebook for GPT-4 Mini inference and UMLS data access:
NoteAid-translation-EngToSpa/code/gpt-4mini com.ipynb
Contributions are welcome! Please open issues or submit pull requests for bug fixes, improvements, or new features.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions or collaboration, please contact:
Md Shahidul Salim — [email protected]