from transformers import pipeline pipe= pipeline("translation", model="vi2en") text="Tôi gọi từ văn phòng thuế" result =pipe(text) print( result[0]["translation_text"])