Downloads · 30 days
20
2% of all-time downloads
HiTZ/medical_es-eu
medical_es-eu is a machine learning model from HiTZ. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
- Model type: translation - Source Language: Spanish - Target Language: Basque - License: apache-2.0
Downloads · 30 days
20
2% of all-time downloads
All-time downloads
1.3K
Public
Repo size
314 MB
Likes
0
Public
Click a slice to open those files.
.bin105 MB · 99%
From the Hugging Face model README
Use the code below to get started with the model.
from transformers import MarianMTModel, MarianTokenizer
from transformers import AutoTokenizer
from transformers import AutoModelForSeq2SeqLM
src_text = ["El paciente tiene daño cerebral"]
model_name = "HiTZ/medical_es-eu"
tokenizer = MarianTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
translated = model.generate(**tokenizer(src_text, return_tensors="pt", padding=True))
print([tokenizer.decode(t, skip_special_tokens=True) for t in translated])`
The recommended environments include the following transfomer versions: 4.12.3 , 4.15.0 , 4.26.1
For further information, send an email to [email protected]