pub struct TopicSVM<State = Untrained> {
pub topic_model: TopicModel,
pub svm: SVC<State>,
pub use_topic_features: bool,
pub use_topic_kernel: bool,
pub topic_kernel: Option<TopicKernel>,
}Expand description
Topic-enhanced SVM for text classification
Fields§
§topic_model: TopicModel§svm: SVC<State>§use_topic_features: bool§use_topic_kernel: bool§topic_kernel: Option<TopicKernel>Implementations§
Auto Trait Implementations§
impl<State> Freeze for TopicSVM<State>
impl<State> RefUnwindSafe for TopicSVM<State>where
State: RefUnwindSafe,
impl<State> Send for TopicSVM<State>where
State: Send,
impl<State> Sync for TopicSVM<State>where
State: Sync,
impl<State> Unpin for TopicSVM<State>where
State: Unpin,
impl<State> UnsafeUnpin for TopicSVM<State>
impl<State> UnwindSafe for TopicSVM<State>where
State: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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