Enum rust_bert::pipelines::common::ConfigOption[][src]

pub enum ConfigOption {
    Bart(BartConfig),
    Bert(BertConfig),
    DistilBert(DistilBertConfig),
    Electra(ElectraConfig),
    Marian(BartConfig),
    MobileBert(MobileBertConfig),
    T5(T5Config),
    Albert(AlbertConfig),
    XLNet(XLNetConfig),
    GPT2(Gpt2Config),
    Reformer(ReformerConfig),
    ProphetNet(ProphetNetConfig),
    Longformer(LongformerConfig),
}

Variants

Bart configuration

Bert configuration

DistilBert(DistilBertConfig)

DistilBert configuration

Electra(ElectraConfig)

Electra configuration

Marian(BartConfig)

Marian configuration

MobileBert(MobileBertConfig)

MobileBert configuration

T5 configuration

Albert(AlbertConfig)

Albert configuration

XLNet configuration

GPT2 configuration

Reformer(ReformerConfig)

Reformer configuration

ProphetNet(ProphetNetConfig)

ProphetNet configuration

Longformer(LongformerConfig)

Longformer configuration

Implementations

impl ConfigOption[src]

pub fn from_file<P: AsRef<Path>>(model_type: ModelType, path: P) -> Self[src]

Interface method to load a configuration from file

pub fn get_label_mapping(self) -> HashMap<i64, String>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,