Skip to main content

//clika-runtime/io.clika.modelverse/TranslationPipeline

TranslationPipeline

[common]
class TranslationPipeline : Pipeline

Translation over a TranslateModel: texts answer their translations, in order.

Properties​

NameSummary
model[common]
open override val model: TranslateModel
The loaded model the pipeline runs.
task[common]
val task: String
The task the pipeline serves, in transformers' spelling.

Functions​

NameSummary
close[common]
open fun close(): <Error class: unknown class>
invoke[common]
operator fun invoke(texts: List<String>, targetLanguage: String, sourceLanguage: String? = null, options: TranslateOptions = TranslateOptions()): List<Translation>