umt5-base-en-vimedner-direct-trans-ner-en2vi

google/umt5-base fine-tuned on En-ViMedNER for M1: Direct Trans.+NER (English → Vietnamese).

What it does

One-shot cross-lingual NER via translation: the model translates and inserts entity tags in the target in a single pass.

Input Plain English biomedical sentence (no tags)
Output Vietnamese translation with inline entity markup

Example shape:

  • Input: Patients with type 2 diabetes mellitus were enrolled.
  • Output: Bệnh nhân mắc <BIOLOGIC_FUNCTION>đái tháo đường típ 2</BIOLOGIC_FUNCTION> được tuyển vào nghiên cứu.

Tags follow En-ViMedNER type names (such as <CHEMICAL>...</CHEMICAL>, <BIOLOGIC_FUNCTION>...</BIOLOGIC_FUNCTION>). Full label inventory, splits, and citation: nhuvo/En-ViMedNER.

Usage

from transformers import AutoModelForSeq2SeqLM, AutoTokenizer

repo = "nhuvo/umt5-base-en-vimedner-direct-trans-ner-en2vi"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForSeq2SeqLM.from_pretrained(repo)

prefix = "translate English to Vietnamese with inline named entity tags: "
text = "Patients with type 2 diabetes mellitus were enrolled."
inputs = tok(prefix + text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tok.decode(outputs[0], skip_special_tokens=True))

Related

Downloads last month
17
Safetensors
Model size
0.6B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for nhuvo/umt5-base-en-vimedner-direct-trans-ner-en2vi

Base model

google/umt5-base
Finetuned
(19)
this model

Dataset used to train nhuvo/umt5-base-en-vimedner-direct-trans-ner-en2vi

Collection including nhuvo/umt5-base-en-vimedner-direct-trans-ner-en2vi