File size: 178 Bytes
5a3ea3f
 
 
 
 
1
2
3
4
5
6
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"])