Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 632 Bytes

File metadata and controls

26 lines (21 loc) · 632 Bytes
description
Task of converting text written in one language into another language.

Translation

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.

select pgml.transform(
    inputs => array[
            	'How are you?'
    ],
	task => '{"task": "translation", 
              "model": "Helsinki-NLP/opus-mt-en-fr"
    }'::JSONB	
);

Result

[
    {"translation_text": "Comment allez-vous ?"}
]