pub enum StemMode {
Aggressive,
Conservative,
}Expand description
Defines the operational mode of the stemmer.
Variants§
Aggressive
Aggressively strips suffixes to find the minimal root. Good for search engines and strict stemming (corpus 100). Example: “knjigama” -> “knjig”, “crveniji” -> “crven”
Conservative
Preserves word meaning by aiming for the lemma (dictionary form). Good for linguistic analysis (corpus 200). Example: “knjigama” -> “knjiga”, “nozi” -> “noga”
Trait Implementations§
impl Copy for StemMode
impl StructuralPartialEq for StemMode
Auto Trait Implementations§
impl Freeze for StemMode
impl RefUnwindSafe for StemMode
impl Send for StemMode
impl Sync for StemMode
impl Unpin for StemMode
impl UnwindSafe for StemMode
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