Downloads · 30 days
15
2% of all-time downloads
ayoubkirouane/Med_English2Spanish
Med_English2Spanish is a translation model from ayoubkirouane. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as apache-2.0.
+ Model Name: MedEnglish2Spanish + Model Type: Transformer-based Neural Machine Translation (NMT) Model + Task: English to Spanish Medical Translation
Downloads · 30 days
15
2% of all-time downloads
All-time downloads
867
Public
Repo size
620 MB
Likes
4
Public
Click a slice to open those files.
.bin310 MB · 99%
From the Hugging Face model README
Med_English2Spanish is a specialized neural machine translation model designed for translating medical content from English to Spanish. It has been fine-tuned to cater specifically to the medical domain, ensuring accurate and contextually relevant translations for healthcare professionals and researchers.
The dataset used in Med_English2Spanish is a critical component in ensuring accurate and contextually relevant medical translations. It is a subset of the "WMT-16-PubMed" dataset, which has been meticulously curated and adapted for this specific machine translation task. The dataset was compiled by collecting data from various reputable sources on the internet, as well as integrating content from another medical dataset, resulting in a comprehensive and diverse collection of medical documents.
https://huggingface.co/datasets/ayoubkirouane/med_en2es
https://huggingface.co/datasets/qanastek/WMT-16-PubMed
Med_English2Spanish is intended for medical professionals and researchers. Care has been taken to minimize biases in translations and ensure privacy by stripping PII during preprocessing. However, users are encouraged to review translations for accuracy in sensitive medical contexts.
Med_English2Spanish is designed for medical professionals, researchers, and students. It can be used for tasks like translating medical documents, research papers, and clinical notes from English to Spanish.
!pip -q install transformers[sentencepiece] sacremoses
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("ayoubkirouane/Med_English2Spanish")
model = AutoModelForSeq2SeqLM.from_pretrained("ayoubkirouane/Med_English2Spanish")
src_text = ['Adult pneumococcal sepsis: Should we rule out congenital anesthesia?']
translated = model.generate(**tokenizer(src_text, return_tensors="pt", padding=True))
[tokenizer.decode(t, skip_special_tokens=True) for t in translated]