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
readonlymodelPath:string
Defined in: extensions/nlp/tasks/marianTranslation.ts:45
Local path or remote URL of the .pte model file.
name
readonlyname:"marian"
Defined in: extensions/nlp/tasks/marianTranslation.ts:43
Identifies the pipeline this config belongs to.
sourceLanguage
readonlysourceLanguage:string
Defined in: extensions/nlp/tasks/marianTranslation.ts:49
ISO 639-1 code of the language the model translates from.
targetLanguage
readonlytargetLanguage:string
Defined in: extensions/nlp/tasks/marianTranslation.ts:51
ISO 639-1 code of the language the model translates to.
tokenizerPath
readonlytokenizerPath:string
Defined in: extensions/nlp/tasks/marianTranslation.ts:47
Local path or remote URL of the tokenizer file.