Struct analiticcl::vocab::VocabValue [−][src]
pub struct VocabValue { pub text: String, pub norm: NormString, pub frequency: u32, pub tokencount: u8, pub lexweight: f32, pub lexindex: u8, pub variants: Option<Vec<VariantReference>>, pub intermediate: bool, }
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
lexweight: f32
The weight assigned by the lexicon as a whole (usually 1.0 for validated lexicons and 0.0 for backgrond corpora)
lexindex: u8
The first lexicon index which matches
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.
intermediate: bool
Marks this entry as intermediate; intermediate entries will only be used to find further explicitly provided variants and will never be returned as a solution by itself. For example, all erroneous variants in an errorlist are marked as intermediate.
Trait Implementations
impl Clone for VocabValue
[src]
impl Clone for VocabValue
[src]fn clone(&self) -> VocabValue
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for VocabValue
impl RefUnwindSafe for VocabValue
impl Send for VocabValue
impl Send for VocabValue
impl Sync for VocabValue
impl Sync for VocabValue
impl Unpin for VocabValue
impl Unpin for VocabValue
impl UnwindSafe for VocabValue
impl UnwindSafe for VocabValue