pub enum Intent {
Names,
Typos,
Codes,
Documents,
Deduplication,
Auto,
}Expand description
User intent: declares what kind of comparison is being performed.
The intent maps directly to the best algorithm for that data type.
Use Intent::Auto to let SIMI inspect the inputs and pick automatically.
Variants§
Names
Personal names, brand names, short identifiers. Maps to: Jaro-Winkler (prefix-weighted matching).
Typos
Typos, misspellings, character-level errors. Maps to: Levenshtein (edit distance).
Codes
Equal-length codes, checksums, fixed-width identifiers. Maps to: Hamming (position-based comparison).
Documents
Documents, paragraphs, product descriptions. Maps to: BM25 (term-weighted retrieval).
Deduplication
Large-scale near-duplicate detection. Maps to: SimHash (64-bit LSH fingerprint).
Auto
Inspect input lengths and pick the best algorithm automatically.
Trait Implementations§
impl Copy for Intent
impl Eq for Intent
impl StructuralPartialEq for Intent
Auto Trait Implementations§
impl Freeze for Intent
impl RefUnwindSafe for Intent
impl Send for Intent
impl Sync for Intent
impl Unpin for Intent
impl UnsafeUnpin for Intent
impl UnwindSafe for Intent
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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