pub struct Word2VecBuilder { /* private fields */ }Expand description
Builder for Word2Vec model
Implementations§
Source§impl Word2VecBuilder
impl Word2VecBuilder
Sourcepub fn vector_size(self, size: usize) -> Self
pub fn vector_size(self, size: usize) -> Self
Set vector size (default: 100)
Sourcepub fn window_size(self, size: usize) -> Self
pub fn window_size(self, size: usize) -> Self
Set window size (default: 5)
Sourcepub fn negative_samples(self, n: usize) -> Self
pub fn negative_samples(self, n: usize) -> Self
Set number of negative samples (default: 5)
Trait Implementations§
Source§impl Default for Word2VecBuilder
impl Default for Word2VecBuilder
Source§fn default() -> Word2VecBuilder
fn default() -> Word2VecBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Word2VecBuilder
impl RefUnwindSafe for Word2VecBuilder
impl Send for Word2VecBuilder
impl Sync for Word2VecBuilder
impl Unpin for Word2VecBuilder
impl UnwindSafe for Word2VecBuilder
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> 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