Struct analiticcl::vocab::VocabValue
source · pub struct VocabValue {
pub text: String,
pub norm: NormString,
pub frequency: u32,
pub tokencount: u8,
pub lexindex: u32,
pub variants: Option<Vec<VariantReference>>,
pub vocabtype: VocabType,
}
Fields§
§text: String
§norm: NormString
A version of the text normalized to the alphabet
frequency: u32
The absolute frequency count
tokencount: u8
The number of words
lexindex: u32
Bitflag to indicate which lexicons match (can refer to multiple lexicons)
variants: Option<Vec<VariantReference>>
Pointer to other vocabulary items that are considered a variant of this one (with a certain score between 0 and 1). This structure is used when loading variant/error lists and not in normal operation.
vocabtype: VocabType
Implementations§
Trait Implementations§
source§impl Clone for VocabValue
impl Clone for VocabValue
source§fn clone(&self) -> VocabValue
fn clone(&self) -> VocabValue
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 moreAuto Trait Implementations§
impl Freeze for VocabValue
impl RefUnwindSafe for VocabValue
impl Send for VocabValue
impl Sync for VocabValue
impl Unpin for VocabValue
impl UnwindSafe for VocabValue
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