Translation is the task of converting text written in one language into another language. You have the option to select from over 2000 models available on the Hugging Face hub for translation.
content_copy
select pgml.transform(
inputs => array[
'How are you?'
],
task => '{
"task": "translation",
"model": "google-t5/t5-base"
}'::JSONB
);
Result
content_copy
[
{"translation_text": "Comment allez-vous ?"}
]