Skip to main content

TranslationPipeline

pipe(text or texts, src_lang=..., tgt_lang=...) -> [{"translation_text": ...}].