pub enum PostProcessorWrapper {
Roberta(RobertaProcessing),
Bert(BertProcessing),
ByteLevel(ByteLevel),
Template(TemplateProcessing),
Sequence(Sequence),
}
Variants§
Roberta(RobertaProcessing)
Bert(BertProcessing)
ByteLevel(ByteLevel)
Template(TemplateProcessing)
Sequence(Sequence)
Trait Implementations§
source§impl Clone for PostProcessorWrapper
impl Clone for PostProcessorWrapper
source§fn clone(&self) -> PostProcessorWrapper
fn clone(&self) -> PostProcessorWrapper
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 PostProcessorWrapper
impl Debug for PostProcessorWrapper
source§impl<'de> Deserialize<'de> for PostProcessorWrapper
impl<'de> Deserialize<'de> for PostProcessorWrapper
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<BertProcessing> for PostProcessorWrapper
impl From<BertProcessing> for PostProcessorWrapper
source§fn from(from: BertProcessing) -> Self
fn from(from: BertProcessing) -> Self
Converts to this type from the input type.
source§impl From<ByteLevel> for PostProcessorWrapper
impl From<ByteLevel> for PostProcessorWrapper
source§impl From<RobertaProcessing> for PostProcessorWrapper
impl From<RobertaProcessing> for PostProcessorWrapper
source§fn from(from: RobertaProcessing) -> Self
fn from(from: RobertaProcessing) -> Self
Converts to this type from the input type.
source§impl From<Sequence> for PostProcessorWrapper
impl From<Sequence> for PostProcessorWrapper
source§impl From<TemplateProcessing> for PostProcessorWrapper
impl From<TemplateProcessing> for PostProcessorWrapper
source§fn from(from: TemplateProcessing) -> Self
fn from(from: TemplateProcessing) -> Self
Converts to this type from the input type.
source§impl PartialEq for PostProcessorWrapper
impl PartialEq for PostProcessorWrapper
source§fn eq(&self, other: &PostProcessorWrapper) -> bool
fn eq(&self, other: &PostProcessorWrapper) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PostProcessor for PostProcessorWrapper
impl PostProcessor for PostProcessorWrapper
source§fn added_tokens(&self, is_pair: bool) -> usize
fn added_tokens(&self, is_pair: bool) -> usize
Returns the number of tokens that will be added during the processing step
source§impl Serialize for PostProcessorWrapper
impl Serialize for PostProcessorWrapper
impl Eq for PostProcessorWrapper
impl StructuralPartialEq for PostProcessorWrapper
Auto Trait Implementations§
impl Freeze for PostProcessorWrapper
impl RefUnwindSafe for PostProcessorWrapper
impl Send for PostProcessorWrapper
impl Sync for PostProcessorWrapper
impl Unpin for PostProcessorWrapper
impl UnwindSafe for PostProcessorWrapper
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