Enum tokenizers::normalizers::NormalizerWrapper
source · pub enum NormalizerWrapper {
Show 13 variants
BertNormalizer(BertNormalizer),
StripNormalizer(Strip),
StripAccents(StripAccents),
NFC(NFC),
NFD(NFD),
NFKC(NFKC),
NFKD(NFKD),
Sequence(Sequence),
Lowercase(Lowercase),
Nmt(Nmt),
Precompiled(Precompiled),
Replace(Replace),
Prepend(Prepend),
}
Expand description
Wrapper for known Normalizers.
Variants§
BertNormalizer(BertNormalizer)
StripNormalizer(Strip)
StripAccents(StripAccents)
NFC(NFC)
NFD(NFD)
NFKC(NFKC)
NFKD(NFKD)
Sequence(Sequence)
Lowercase(Lowercase)
Nmt(Nmt)
Precompiled(Precompiled)
Replace(Replace)
Prepend(Prepend)
Trait Implementations§
source§impl Clone for NormalizerWrapper
impl Clone for NormalizerWrapper
source§fn clone(&self) -> NormalizerWrapper
fn clone(&self) -> NormalizerWrapper
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 NormalizerWrapper
impl Debug for NormalizerWrapper
source§impl<'de> Deserialize<'de> for NormalizerWrapper
impl<'de> Deserialize<'de> for NormalizerWrapper
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<BertNormalizer> for NormalizerWrapper
impl From<BertNormalizer> for NormalizerWrapper
source§fn from(from: BertNormalizer) -> Self
fn from(from: BertNormalizer) -> Self
Converts to this type from the input type.
source§impl From<Lowercase> for NormalizerWrapper
impl From<Lowercase> for NormalizerWrapper
source§impl From<NFC> for NormalizerWrapper
impl From<NFC> for NormalizerWrapper
source§impl From<NFD> for NormalizerWrapper
impl From<NFD> for NormalizerWrapper
source§impl From<NFKC> for NormalizerWrapper
impl From<NFKC> for NormalizerWrapper
source§impl From<NFKD> for NormalizerWrapper
impl From<NFKD> for NormalizerWrapper
source§impl From<Nmt> for NormalizerWrapper
impl From<Nmt> for NormalizerWrapper
source§impl From<Precompiled> for NormalizerWrapper
impl From<Precompiled> for NormalizerWrapper
source§fn from(from: Precompiled) -> Self
fn from(from: Precompiled) -> Self
Converts to this type from the input type.
source§impl From<Prepend> for NormalizerWrapper
impl From<Prepend> for NormalizerWrapper
source§impl From<Replace> for NormalizerWrapper
impl From<Replace> for NormalizerWrapper
source§impl From<Sequence> for NormalizerWrapper
impl From<Sequence> for NormalizerWrapper
source§impl From<Strip> for NormalizerWrapper
impl From<Strip> for NormalizerWrapper
source§impl From<StripAccents> for NormalizerWrapper
impl From<StripAccents> for NormalizerWrapper
source§fn from(from: StripAccents) -> Self
fn from(from: StripAccents) -> Self
Converts to this type from the input type.
source§impl Normalizer for NormalizerWrapper
impl Normalizer for NormalizerWrapper
Auto Trait Implementations§
impl Freeze for NormalizerWrapper
impl RefUnwindSafe for NormalizerWrapper
impl Send for NormalizerWrapper
impl Sync for NormalizerWrapper
impl Unpin for NormalizerWrapper
impl UnwindSafe for NormalizerWrapper
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