pub enum TextEmbeddingStrategy {
WordLevel,
CharLevel,
NGram(usize),
TokenPositional,
Hierarchical,
}
Expand description
Text embedding strategies for quantum NLP
Variants§
WordLevel
Word-level embeddings: each word is encoded separately
CharLevel
Character-level embeddings: each character is encoded
NGram(usize)
N-gram embeddings: overlapping n-grams are encoded
TokenPositional
Token embeddings with positional encoding
Hierarchical
Hierarchical embeddings: words -> sentences -> documents
Trait Implementations§
Source§impl Clone for TextEmbeddingStrategy
impl Clone for TextEmbeddingStrategy
Source§fn clone(&self) -> TextEmbeddingStrategy
fn clone(&self) -> TextEmbeddingStrategy
Returns a duplicate 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 moreSource§impl Debug for TextEmbeddingStrategy
impl Debug for TextEmbeddingStrategy
Source§impl PartialEq for TextEmbeddingStrategy
impl PartialEq for TextEmbeddingStrategy
impl Copy for TextEmbeddingStrategy
impl StructuralPartialEq for TextEmbeddingStrategy
Auto Trait Implementations§
impl Freeze for TextEmbeddingStrategy
impl RefUnwindSafe for TextEmbeddingStrategy
impl Send for TextEmbeddingStrategy
impl Sync for TextEmbeddingStrategy
impl Unpin for TextEmbeddingStrategy
impl UnwindSafe for TextEmbeddingStrategy
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