Struct analiticcl::vocab::VocabParams
source · pub struct VocabParams {
pub text_column: u8,
pub freq_column: Option<u8>,
pub freq_handling: FrequencyHandling,
pub vocab_type: VocabType,
pub index: u8,
}
Fields§
§text_column: u8
Column containing the Text (if any, 0-indexed)
freq_column: Option<u8>
Column containing the absolute frequency (if any, 0-indexed)
freq_handling: FrequencyHandling
Frequency handling in case of duplicate items (may be across multiple lexicons)
vocab_type: VocabType
§index: u8
Lexicon index
Implementations§
source§impl VocabParams
impl VocabParams
sourcepub fn with_vocab_type(self, vocab_type: VocabType) -> Self
pub fn with_vocab_type(self, vocab_type: VocabType) -> Self
Set the vocabulary type (removes any previous values)
pub fn with_freq_handling(self, freq_handling: FrequencyHandling) -> Self
Trait Implementations§
source§impl Clone for VocabParams
impl Clone for VocabParams
source§fn clone(&self) -> VocabParams
fn clone(&self) -> VocabParams
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 moresource§impl Debug for VocabParams
impl Debug for VocabParams
Auto Trait Implementations§
impl Freeze for VocabParams
impl RefUnwindSafe for VocabParams
impl Send for VocabParams
impl Sync for VocabParams
impl Unpin for VocabParams
impl UnwindSafe for VocabParams
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