Struct tangram_features::word_embedding::WordEmbeddingFeatureGroup [−][src]
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
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
Auto Trait Implementations
impl RefUnwindSafe for WordEmbeddingFeatureGroup
impl Send for WordEmbeddingFeatureGroup
impl Sync for WordEmbeddingFeatureGroup
impl Unpin for WordEmbeddingFeatureGroup
impl UnwindSafe for WordEmbeddingFeatureGroup
Blanket Implementations
Mutably borrows from an owned value. Read more