Enum tokenizers::decoders::DecoderWrapper
source · pub enum DecoderWrapper {
BPE(BPEDecoder),
ByteLevel(ByteLevel),
WordPiece(WordPiece),
Metaspace(Metaspace),
CTC(CTC),
Sequence(Sequence),
Replace(Replace),
Fuse(Fuse),
Strip(Strip),
ByteFallback(ByteFallback),
}
Variants§
BPE(BPEDecoder)
ByteLevel(ByteLevel)
WordPiece(WordPiece)
Metaspace(Metaspace)
CTC(CTC)
Sequence(Sequence)
Replace(Replace)
Fuse(Fuse)
Strip(Strip)
ByteFallback(ByteFallback)
Trait Implementations§
source§impl Clone for DecoderWrapper
impl Clone for DecoderWrapper
source§fn clone(&self) -> DecoderWrapper
fn clone(&self) -> DecoderWrapper
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DecoderWrapper
impl Debug for DecoderWrapper
source§impl Decoder for DecoderWrapper
impl Decoder for DecoderWrapper
source§impl<'de> Deserialize<'de> for DecoderWrapper
impl<'de> Deserialize<'de> for DecoderWrapper
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<BPEDecoder> for DecoderWrapper
impl From<BPEDecoder> for DecoderWrapper
source§fn from(from: BPEDecoder) -> Self
fn from(from: BPEDecoder) -> Self
Converts to this type from the input type.
source§impl From<ByteFallback> for DecoderWrapper
impl From<ByteFallback> for DecoderWrapper
source§fn from(from: ByteFallback) -> Self
fn from(from: ByteFallback) -> Self
Converts to this type from the input type.
source§impl From<ByteLevel> for DecoderWrapper
impl From<ByteLevel> for DecoderWrapper
source§impl From<CTC> for DecoderWrapper
impl From<CTC> for DecoderWrapper
source§impl From<Fuse> for DecoderWrapper
impl From<Fuse> for DecoderWrapper
source§impl From<Metaspace> for DecoderWrapper
impl From<Metaspace> for DecoderWrapper
source§impl From<Replace> for DecoderWrapper
impl From<Replace> for DecoderWrapper
source§impl From<Sequence> for DecoderWrapper
impl From<Sequence> for DecoderWrapper
source§impl From<Strip> for DecoderWrapper
impl From<Strip> for DecoderWrapper
source§impl From<WordPiece> for DecoderWrapper
impl From<WordPiece> for DecoderWrapper
Auto Trait Implementations§
impl Freeze for DecoderWrapper
impl RefUnwindSafe for DecoderWrapper
impl Send for DecoderWrapper
impl Sync for DecoderWrapper
impl Unpin for DecoderWrapper
impl UnwindSafe for DecoderWrapper
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more