pub enum TokenizerOption {
Show 18 variants Bert(BertTokenizer), Deberta(DeBERTaTokenizer), DebertaV2(DeBERTaV2Tokenizer), Roberta(RobertaTokenizer), XLMRoberta(XLMRobertaTokenizer), Marian(MarianTokenizer), T5(T5Tokenizer), Albert(AlbertTokenizer), XLNet(XLNetTokenizer), GPT2(Gpt2Tokenizer), OpenAiGpt(OpenAiGptTokenizer), Reformer(ReformerTokenizer), ProphetNet(ProphetNetTokenizer), Pegasus(PegasusTokenizer), MBart50(MBart50Tokenizer), M2M100(M2M100Tokenizer), FNet(FNetTokenizer), Bart(RobertaTokenizer),
}
Expand description

Variants§

§

Bert(BertTokenizer)

Bert Tokenizer

§

Deberta(DeBERTaTokenizer)

DeBERTa Tokenizer

§

DebertaV2(DeBERTaV2Tokenizer)

DeBERTa V2 Tokenizer

§

Roberta(RobertaTokenizer)

Roberta Tokenizer

§

XLMRoberta(XLMRobertaTokenizer)

XLMRoberta Tokenizer

§

Marian(MarianTokenizer)

Marian Tokenizer

§

T5(T5Tokenizer)

T5 Tokenizer

§

Albert(AlbertTokenizer)

Albert Tokenizer

§

XLNet(XLNetTokenizer)

XLNet Tokenizer

§

GPT2(Gpt2Tokenizer)

GPT2 Tokenizer

§

OpenAiGpt(OpenAiGptTokenizer)

GPT Tokenizer

§

Reformer(ReformerTokenizer)

Reformer Tokenizer

§

ProphetNet(ProphetNetTokenizer)

ProphetNet Tokenizer

§

Pegasus(PegasusTokenizer)

Pegasus Tokenizer

§

MBart50(MBart50Tokenizer)

MBart50 Tokenizer

§

M2M100(M2M100Tokenizer)

M2M100 Tokenizer

§

FNet(FNetTokenizer)

FNet Tokenizer

§

Bart(RobertaTokenizer)

Bart Tokenizer

Implementations§

Interface method to load a tokenizer from file

Returns the model type

Interface method

Interface method for pair encoding

Interface method for pair encoding (single input)

Interface method to tokenization

Interface method to tokenization

Interface method to tokenization

Interface method to decoding

Interface method to build input with special tokens

Interface method to convert tokens to ids

Interface method

Interface method

Interface method

Interface method

Interface method

Interface method

Interface method

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more