Skip to main content
Version: Next

Type Alias: MarianTranslatorModel

MarianTranslatorModel = object

Defined in: extensions/nlp/tasks/marianTranslation.ts:41

Paths and metadata required to instantiate a Marian (Opus-MT) translator. Each model translates one fixed language pair.

Properties​

modelPath​

readonly modelPath: string

Defined in: extensions/nlp/tasks/marianTranslation.ts:45

Local path or remote URL of the .pte model file.


name​

readonly name: "marian"

Defined in: extensions/nlp/tasks/marianTranslation.ts:43

Identifies the pipeline this config belongs to.


sourceLanguage​

readonly sourceLanguage: string

Defined in: extensions/nlp/tasks/marianTranslation.ts:49

ISO 639-1 code of the language the model translates from.


targetLanguage​

readonly targetLanguage: string

Defined in: extensions/nlp/tasks/marianTranslation.ts:51

ISO 639-1 code of the language the model translates to.


tokenizerPath​

readonly tokenizerPath: string

Defined in: extensions/nlp/tasks/marianTranslation.ts:47

Local path or remote URL of the tokenizer file.