class TranslationModel
extends Model
import { TranslationModel } from "https://deno.land/x/bertml@v0.1.0-alpha2/mod.ts";
A model for translating text from any of the given source languages to any of the given target languages.
Constructors
Type Parameters
T extends TranslationModelInit
Methods
translate(init: TranslateInit<T>): Promise<string[]>
Translates the given text in the source language into the target language.