[][src]Struct rust_tokenizers::preprocessing::vocab::gpt2_vocab::Gpt2Vocab

pub struct Gpt2Vocab {
    pub values: HashMap<String, i64>,
    pub indices: HashMap<i64, String>,
    pub unknown_value: &'static str,
    pub special_values: HashMap<String, i64>,
    pub special_indices: HashMap<i64, String>,
}

Fields

values: HashMap<String, i64>indices: HashMap<i64, String>unknown_value: &'static strspecial_values: HashMap<String, i64>special_indices: HashMap<i64, String>

Implementations

impl Gpt2Vocab[src]

pub fn bos_value() -> &'static str[src]

pub fn eos_value() -> &'static str[src]

Trait Implementations

impl Tokenizer<Gpt2Vocab> for Gpt2Tokenizer[src]

impl Vocab for Gpt2Vocab[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.