pub struct TokenizedInputWithAlignment {
pub input_ids: Vec<u32>,
pub attention_mask: Vec<u8>,
pub token_type_ids: Option<Vec<u32>>,
pub offset_mapping: Option<Vec<(usize, usize)>>,
pub special_tokens_mask: Option<Vec<u8>>,
pub word_alignments: Vec<TokenAlignment>,
pub words: Vec<Word>,
}Fields§
§input_ids: Vec<u32>§attention_mask: Vec<u8>§token_type_ids: Option<Vec<u32>>§offset_mapping: Option<Vec<(usize, usize)>>§special_tokens_mask: Option<Vec<u8>>§word_alignments: Vec<TokenAlignment>§words: Vec<Word>Trait Implementations§
Source§impl Clone for TokenizedInputWithAlignment
impl Clone for TokenizedInputWithAlignment
Source§fn clone(&self) -> TokenizedInputWithAlignment
fn clone(&self) -> TokenizedInputWithAlignment
Returns a duplicate 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 TokenizedInputWithAlignment
impl Debug for TokenizedInputWithAlignment
Source§impl From<TokenizedInputWithAlignment> for TokenizedInput
impl From<TokenizedInputWithAlignment> for TokenizedInput
Source§fn from(input: TokenizedInputWithAlignment) -> Self
fn from(input: TokenizedInputWithAlignment) -> Self
Converts to this type from the input type.
Source§impl From<TokenizedInputWithAlignment> for TokenizedInputWithOffsets
impl From<TokenizedInputWithAlignment> for TokenizedInputWithOffsets
Source§fn from(input: TokenizedInputWithAlignment) -> Self
fn from(input: TokenizedInputWithAlignment) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TokenizedInputWithAlignment
impl RefUnwindSafe for TokenizedInputWithAlignment
impl Send for TokenizedInputWithAlignment
impl Sync for TokenizedInputWithAlignment
impl Unpin for TokenizedInputWithAlignment
impl UnsafeUnpin for TokenizedInputWithAlignment
impl UnwindSafe for TokenizedInputWithAlignment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more