Enum rust_bert::pipelines::translation::TranslationOption [−][src]
pub enum TranslationOption {
Marian(MarianGenerator),
T5(T5Generator),
MBart(MBartGenerator),
M2M100(M2M100Generator),
}Expand description
Variants
Marian(MarianGenerator)
Tuple Fields
Translator based on Marian model
T5(T5Generator)
Tuple Fields
0: T5GeneratorTranslator based on T5 model
MBart(MBartGenerator)
Tuple Fields
Translator based on MBart50 model
M2M100(M2M100Generator)
Tuple Fields
Translator based on M2M100 model
Implementations
Returns the ModelType for this TranslationOption
Auto Trait Implementations
impl RefUnwindSafe for TranslationOption
impl Send for TranslationOption
impl !Sync for TranslationOption
impl Unpin for TranslationOption
impl UnwindSafe for TranslationOption
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
