CoolFace
Modelpublic

nhuvo/umt5-base-en-vimedner-mt-vi2en

sourceHugging Faceapache-2.0updated 1mo agoView on Hugging Face
0likes18downloads
Model Card

umt5-base-en-vimedner-mt-vi2en

`google/umt5-base` fine-tuned for Vietnamese → English biomedical translation on En-ViMedNER.

Dataset details, splits, and citation: [nhuvo/En-ViMedNER](https://huggingface.co/datasets/nhuvo/En-ViMedNER).

Usage

python
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer

repo = "nhuvo/umt5-base-en-vimedner-mt-vi2en"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForSeq2SeqLM.from_pretrained(repo)

text = "Bệnh nhân đái tháo đường típ 2 được tuyển vào nghiên cứu."
inputs = tok(text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tok.decode(outputs[0], skip_special_tokens=True))

Related