Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
datasetsANDmodels
/
th2en
like
0
PyTorch
marian
Model card
Files
Files and versions
xet
Community
feaeff2
th2en
/
usage.py
datasetsANDmodels
Update usage.py
740ec8e
verified
5 months ago
raw
Copy download link
history
blame
240 Bytes
from
transformers
import
pipeline
pipe= pipeline(
"translation"
, model=
"th2en"
)
text =
"ผมโทรมาจากสำนักงานสรรพากรครับ"
#Thai
result =pipe(text)
print
( result[
0
][
"translation_text"
])