pub struct WordEmbeddingFeatureGroup {
pub source_column_name: String,
pub tokenizer: Tokenizer,
pub model: WordEmbeddingModel,
}
Fields§
§source_column_name: String
This is the name of the text column used to compute features with this feature group.
tokenizer: Tokenizer
This is the tokenizer used to split the text into tokens.
model: WordEmbeddingModel
This is the word embedding model.
Implementations§
Source§impl WordEmbeddingFeatureGroup
impl WordEmbeddingFeatureGroup
pub fn compute_table( &self, column: TableColumnView<'_>, progress: &impl Fn(u64), ) -> Vec<TableColumn>
pub fn compute_array_f32( &self, features: ArrayViewMut2<'_, f32>, column: TableColumnView<'_>, progress: &impl Fn(), )
pub fn compute_array_value( &self, features: ArrayViewMut2<'_, TableValue<'_>>, column: TableColumnView<'_>, progress: &impl Fn(), )
Trait Implementations§
Source§impl Clone for WordEmbeddingFeatureGroup
impl Clone for WordEmbeddingFeatureGroup
Source§fn clone(&self) -> WordEmbeddingFeatureGroup
fn clone(&self) -> WordEmbeddingFeatureGroup
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 moreAuto Trait Implementations§
impl Freeze for WordEmbeddingFeatureGroup
impl RefUnwindSafe for WordEmbeddingFeatureGroup
impl Send for WordEmbeddingFeatureGroup
impl Sync for WordEmbeddingFeatureGroup
impl Unpin for WordEmbeddingFeatureGroup
impl UnwindSafe for WordEmbeddingFeatureGroup
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> 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