[−][src]Struct rust_tokenizers::preprocessing::tokenizer::base_tokenizer::TokenizedInput
Fields
token_ids: Vec<i64>
Vector of token IDs
segment_ids: Vec<i8>
Vector segments ids, segments are seperated with a [SEP] marker, each increments the segment ID. This vector has the same length as token_ids.
special_tokens_mask: Vec<i8>
Flags tokens as special tokens (1) or not (0). This vector has the same length as token_ids.
overflowing_tokens: Vec<i64>
num_truncated_tokens: usize
token_offsets: Vec<Option<Offset>>
Offset information in relation to the original text. Tokens that can not be related to the original source are registered as None.
reference_offsets: Vec<Vec<OffsetSize>>
mask: Vec<Mask>
Masks tokens so you can see what type of token something is. This vector has the same length as token_ids (and also makes special_tokens_mask redundant).
Trait Implementations
impl Clone for TokenizedInput
[src]
fn clone(&self) -> TokenizedInput
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TokenizedInput
[src]
impl PartialEq<TokenizedInput> for TokenizedInput
[src]
fn eq(&self, other: &TokenizedInput) -> bool
[src]
fn ne(&self, other: &TokenizedInput) -> bool
[src]
impl PartialOrd<TokenizedInput> for TokenizedInput
[src]
fn partial_cmp(&self, other: &TokenizedInput) -> Option<Ordering>
[src]
fn lt(&self, other: &TokenizedInput) -> bool
[src]
fn le(&self, other: &TokenizedInput) -> bool
[src]
fn gt(&self, other: &TokenizedInput) -> bool
[src]
fn ge(&self, other: &TokenizedInput) -> bool
[src]
impl StructuralPartialEq for TokenizedInput
[src]
Auto Trait Implementations
impl RefUnwindSafe for TokenizedInput
impl Send for TokenizedInput
impl Sync for TokenizedInput
impl Unpin for TokenizedInput
impl UnwindSafe for TokenizedInput
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,