Tokenize

Trait Tokenize 

Source
pub trait Tokenize: HasCapability {
    // Provided method
    fn tokenize<'life0, 'life1, 'async_trait>(
        &'life0 self,
        texts: Vec<&'life1 str>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<usize>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Provided Methods§

Source

fn tokenize<'life0, 'life1, 'async_trait>( &'life0 self, texts: Vec<&'life1 str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<usize>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§

Source§

impl<P, C> Tokenize for Model<P, C>
where P: Provider + Tokenize, C: Tokenize + ?Sized + Send + Sync,